Overture
Version 25
|
#include <ParentChildSiblingInfo.h>
Public Member Functions | |
ParentChildSiblingInfoData () | |
default constructor | |
ParentChildSiblingInfoData (const ParentChildSiblingInfoData &x, const CopyType ct=DEEP) | |
copy constructor | |
~ParentChildSiblingInfoData () | |
destructor | |
ParentChildSiblingInfoData & | operator= (const ParentChildSiblingInfoData &x) |
assignment operator | |
virtual aString | getClassName (void) const |
returns the name of this class | |
void | reference (const ParentChildSiblingInfoData &x) |
virtual void | breakReference (void) |
break the reference to an object | |
virtual void | consistencyCheck (void) const |
performs internal error and consistency checks | |
virtual Integer | get (const GenericDataBase &db, const aString &name) |
read from a database | |
virtual Integer | put (const GenericDataBase &db, const aString &name) const |
write to a database | |
const list< ParentInfo * > & | getParents (void) const |
returns a reference to the ParentList | |
const list< ChildInfo * > & | getChildren (void) const |
returns a reference to the ChildList | |
const list< SiblingInfo * > & | getSiblings (void) const |
returns a reference to the SiblingList | |
void | addParent (ParentInfo *) |
add a ParentInfo object to ParentList | |
void | addChild (ChildInfo *) |
add a ChildInfo object to ChildList | |
void | addSibling (SiblingInfo *) |
add a SiblingInfo object to SiblingList | |
Public Member Functions inherited from ReferenceCounting | |
ReferenceCounting () | |
ReferenceCounting (const ReferenceCounting &x, const CopyType ct=DEEP) | |
virtual | ~ReferenceCounting () |
Integer | incrementReferenceCount () |
Integer | decrementReferenceCount () |
Integer | getReferenceCount () const |
Logical | uncountedReferencesMayExist () |
Integer | getGlobalID () const |
void | setGlobalID (int id) |
Friends | |
ostream & | operator<< (ostream &s, const ParentChildSiblingInfoData &pcsInfoData) |
write a description of pcsInfoData to the output stream s | |
ParentChildSiblingInfoData::ParentChildSiblingInfoData | ( | ) |
default constructor
ParentChildSiblingInfoData::ParentChildSiblingInfoData | ( | const ParentChildSiblingInfoData & | x, |
const CopyType | ct = DEEP |
||
) |
copy constructor
References NOCOPY.
ParentChildSiblingInfoData::~ParentChildSiblingInfoData | ( | ) |
destructor
References NULL.
void ParentChildSiblingInfoData::addChild | ( | ChildInfo * | childInfo | ) |
add a ChildInfo object to ChildList
void ParentChildSiblingInfoData::addParent | ( | ParentInfo * | parentInfo | ) |
add a ParentInfo object to ParentList
void ParentChildSiblingInfoData::addSibling | ( | SiblingInfo * | siblingInfo | ) |
add a SiblingInfo object to SiblingList
|
virtual |
break the reference to an object
Reimplemented from ReferenceCounting.
References ReferenceCounting::breakReference().
|
virtual |
performs internal error and consistency checks
Reimplemented from ReferenceCounting.
References assert, ReferenceCounting::consistencyCheck(), and NULL.
Referenced by ParentChildSiblingInfo::consistencyCheck().
|
virtual |
read from a database
|
inline |
returns a reference to the ChildList
Referenced by ParentChildSiblingInfo::getChildren(), operator<<(), and operator=().
|
inlinevirtual |
returns the name of this class
Reimplemented from ReferenceCounting.
Referenced by ParentChildSiblingInfo::operator=(), and put().
|
inline |
returns a reference to the ParentList
Referenced by ParentChildSiblingInfo::getParents(), operator<<(), and operator=().
|
inline |
returns a reference to the SiblingList
Referenced by ParentChildSiblingInfo::getSiblings(), operator<<(), and operator=().
ParentChildSiblingInfoData & ParentChildSiblingInfoData::operator= | ( | const ParentChildSiblingInfoData & | x | ) |
assignment operator
References assert, getChildren(), getParents(), getSiblings(), NULL, and ReferenceCounting::operator=().
|
virtual |
write to a database
References GenericDataBase::create(), getClassName(), GenericDataBase::put(), and GenericDataBase::virtualConstructor().
Referenced by ParentChildSiblingInfo::put().
void ParentChildSiblingInfoData::reference | ( | const ParentChildSiblingInfoData & | x | ) |
creates a reference to another ParentChildSiblingInfoData object should not be called in general
References ReferenceCounting::reference().
|
friend |
write a description of pcsInfoData to the output stream s