Inherits YGP::IRelation.
| Public Member Functions | |
| Relation1_1 (const char *name) | |
| virtual | ~Relation1_1 () | 
| void | relate (const S &source, const T &target) throw (std::overflow_error) | 
| void | unrelate (const S &source, const T &target) | 
| void | unrelateAll () | 
| bool | isRelated (const S &owner) const | 
| bool | isRelated (const T &object) const | 
| bool | isRelated (const S &owner, const T &object) const | 
| T & | getObject (const S &owner) | 
| const T & | getObject (const S &owner) const | 
| S & | getParent (const T &object) | 
| const S & | getParent (const T &object) const | 
Each object is connected to exactly one other (if at all).
| YGP::Relation1_1< S, T >::Relation1_1 | ( | const char * | name | ) |  [inline] | 
Defaultconstructor.
| virtual YGP::Relation1_1< S, T >::~Relation1_1 | ( | ) |  [inline, virtual] | 
Destructor.
| const T& YGP::Relation1_1< S, T >::getObject | ( | const S & | owner | ) | const  [inline] | 
Returns the child which is related with the passed object.
| owner | Parent whose object should be returned | 
| T& YGP::Relation1_1< S, T >::getObject | ( | const S & | owner | ) |  [inline] | 
Returns the child which is related with the passed object.
| owner | Parent whose object should be returned | 
| const S& YGP::Relation1_1< S, T >::getParent | ( | const T & | object | ) | const  [inline] | 
Returns the parent of the passed object.
| object | Child whose parent should be returned | 
| S& YGP::Relation1_1< S, T >::getParent | ( | const T & | object | ) |  [inline] | 
Returns the parent of the passed object.
| object | Child whose parent should be returned | 
| bool YGP::Relation1_1< S, T >::isRelated | ( | const S & | owner, | |
| const T & | object | |||
| ) | const  [inline] | 
Checks if the passed objects are related to each other (within this relation).
| owner | Parent which should be checked for being related | |
| object | Child which should be checked for relations | 
| bool YGP::Relation1_1< S, T >::isRelated | ( | const T & | object | ) | const  [inline] | 
Checks if the passed object is related to any other (within this relation).
| object | Child which should be checked for being related | 
| bool YGP::Relation1_1< S, T >::isRelated | ( | const S & | owner | ) | const  [inline] | 
Checks if the passed object is related to any other (within this relation).
| owner | Parent which should be checked for relations | 
| void YGP::Relation1_1< S, T >::relate | ( | const S & | source, | |
| const T & | target | |||
| ) | throw (std::overflow_error)  [inline] | 
Connects two objects.
| source | Parent to relate | |
| target | Child to relate with parent | 
| void YGP::Relation1_1< S, T >::unrelate | ( | const S & | source, | |
| const T & | target | |||
| ) |  [inline] | 
Disconnects two objects.
| source | Parent to unrelate | |
| target | Child to unrelate from parent | 
| void YGP::Relation1_1< S, T >::unrelateAll | ( | ) |  [inline] | 
Disconnect all objects.