#include <ParentChild.h>
Inherited by CifParentChild.
Inheritance diagram for ParentChild:
Public Member Functions | |
ParentChild () | |
virtual | ~ParentChild () |
const std::vector< std::vector< std::string > > & | GetComboKeys (const std::string &catName) |
std::vector< std::vector< std::vector< std::string > > > & | GetChildrenKeys (const std::vector< std::string > &parComboKey) |
void | GetParents (std::vector< std::vector< std::string > > &parParKeys, std::vector< std::vector< std::string > > &comboComboKeys, const std::string &childCat) |
void | GetLinkGroupIdLabel (std::string &linkGroupIdLabel, const std::vector< std::string > &parKeys, const std::vector< std::string > &childKeys) |
bool | IsParKeyPresent (const std::vector< std::string > &parKey, const std::string &childCatName) |
bool | IsInParentComboKeys (const std::string &itemName) |
Public Attributes | |
ISTable * | _groupTableP |
ISTable * | _groupListTableP |
Protected Member Functions | |
void | GetComboKeys (const std::string &parCatName, const unsigned int maxKeyGroup, ISTable &keysTable, std::vector< std::vector< std::string > > &comboKeys, std::vector< std::string > &parKeys) |
virtual void | GetParentCifItems (std::vector< std::string > &parCifItems, const std::string &cifItemName)=0 |
void | AddParentCategoryToItemLinkedGroup (ISTable &itemLinkedGroup, ISTable &itemLinkedGroupList) |
void | CreateAllRelations (ISTable &itemLinkedGroup, ISTable &itemLinkedGroupList) |
void | ISTableFindPairs (std::map< std::string, std::vector< std::vector< std::string > > > &childrenKeys, const std::vector< std::string > &parKeys, ISTable &itemLinkedGroupList) |
void | UpdateMap (std::map< std::string, std::vector< std::vector< std::string > > > &childrenKeys, const std::string &childCat, std::vector< std::string > &childKeys) |
void | UpdateParComboKeys (const std::string &parName, std::vector< std::string > &parKeys) |
void | UpdateRelations (std::vector< std::string > &parKeys, std::vector< std::vector< std::string > > &comboKeys) |
bool | KeysMatch (const std::vector< std::string > &firstKey, const std::vector< std::string > &secondKey) |
Protected Attributes | |
std::map< std::string, std::vector< std::vector< std::string > > > | _parComboKeys |
std::map< std::vector< std::string >, std::vector< std::vector< std::vector< std::string > > > > | _relations |
ParentChild::ParentChild | ( | ) |
ParentChild::~ParentChild | ( | ) | [virtual] |
void ParentChild::AddParentCategoryToItemLinkedGroup | ( | ISTable & | itemLinkedGroup, | |
ISTable & | itemLinkedGroupList | |||
) | [protected] |
void ParentChild::CreateAllRelations | ( | ISTable & | itemLinkedGroup, | |
ISTable & | itemLinkedGroupList | |||
) | [protected] |
std::vector<std::vector<std::vector<std::string> > >& ParentChild::GetChildrenKeys | ( | const std::vector< std::string > & | parComboKey | ) |
void ParentChild::GetComboKeys | ( | const std::string & | parCatName, | |
const unsigned int | maxKeyGroup, | |||
ISTable & | keysTable, | |||
std::vector< std::vector< std::string > > & | comboKeys, | |||
std::vector< std::string > & | parKeys | |||
) | [protected] |
const std::vector<std::vector<std::string> >& ParentChild::GetComboKeys | ( | const std::string & | catName | ) |
void ParentChild::GetLinkGroupIdLabel | ( | std::string & | linkGroupIdLabel, | |
const std::vector< std::string > & | parKeys, | |||
const std::vector< std::string > & | childKeys | |||
) |
virtual void ParentChild::GetParentCifItems | ( | std::vector< std::string > & | parCifItems, | |
const std::string & | cifItemName | |||
) | [protected, pure virtual] |
Implemented in CifParentChild.
void ParentChild::GetParents | ( | std::vector< std::vector< std::string > > & | parParKeys, | |
std::vector< std::vector< std::string > > & | comboComboKeys, | |||
const std::string & | childCat | |||
) |
bool ParentChild::IsInParentComboKeys | ( | const std::string & | itemName | ) |
bool ParentChild::IsParKeyPresent | ( | const std::vector< std::string > & | parKey, | |
const std::string & | childCatName | |||
) |
void ParentChild::ISTableFindPairs | ( | std::map< std::string, std::vector< std::vector< std::string > > > & | childrenKeys, | |
const std::vector< std::string > & | parKeys, | |||
ISTable & | itemLinkedGroupList | |||
) | [protected] |
bool ParentChild::KeysMatch | ( | const std::vector< std::string > & | firstKey, | |
const std::vector< std::string > & | secondKey | |||
) | [protected] |
void ParentChild::UpdateMap | ( | std::map< std::string, std::vector< std::vector< std::string > > > & | childrenKeys, | |
const std::string & | childCat, | |||
std::vector< std::string > & | childKeys | |||
) | [protected] |
void ParentChild::UpdateParComboKeys | ( | const std::string & | parName, | |
std::vector< std::string > & | parKeys | |||
) | [protected] |
void ParentChild::UpdateRelations | ( | std::vector< std::string > & | parKeys, | |
std::vector< std::vector< std::string > > & | comboKeys | |||
) | [protected] |
ISTable* ParentChild::_groupListTableP |
ISTable* ParentChild::_groupTableP |
std::map<std::string, std::vector<std::vector<std::string> > > ParentChild::_parComboKeys [protected] |
std::map<std::vector<std::string>, std::vector<std::vector<std::vector<std::string> > > > ParentChild::_relations [protected] |