bool Library::removeMember(int aMemberId) { int aMemberIndex = getMemberIndex(aMemberId); if (aMemberIndex >= 0) { members->remove(aMemberIndex); cout<<endl<<"Member ID "<<aMemberId<<" has been removed!"<<endl<<endl; return true; } else { cout<<endl<<"Member ID not found!"<<endl<<endl; return false; } }
int CompType::getMemberIndex(const H5std_string& name) const { return(getMemberIndex(name.c_str())); }
Declaration *ASTUserType::getMember(std::string member) { long mi = getMemberIndex(member); if(mi < 0) return NULL; return getMember(mi); }