librcsb-core-wrapper  1.000
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ParentChild Class Referenceabstract

#include <ParentChild.h>

Inheritance diagram for ParentChild:
Inheritance graph
Collaboration diagram for ParentChild:
Collaboration graph

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
 

Constructor & Destructor Documentation

ParentChild::ParentChild ( )
virtual ParentChild::~ParentChild ( )
virtual

Member Function Documentation

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)
const std::vector<std::vector<std::string> >& ParentChild::GetComboKeys ( const std::string &  catName)
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
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 
)
protectedpure virtual

Implemented in CifParentChild, and DictParentChild.

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

Member Data Documentation

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

The documentation for this class was generated from the following file: