#include <Structure.h>
Collaboration diagram for Arxx::Structure::Relation:

A Relation is a container for Arxx::Reference objects, which are identified by the unique ID of the referenced Arxx::Item. A Relation is a multiset so that one Arxx::Item may be referenced multiple times.
Public Types | |
| typedef std::multimap< Arxx::u4byte, Arxx::Reference >::size_type | size_type |
Public Member Functions | |
| void | vAdd (Arxx::u4byte u4UniqueID) |
| Adds a unique ID reference to the relation. | |
| bool | bDelete (Arxx::u4byte u4UniqueID) |
| Removes a reference with a certain unique ID from the relation. | |
| size_type | size (void) const |
| Returns the number of references in the relation. | |
| Arxx::Structure::Relation::iterator | begin (void) |
| Returns the first reference iterator of the relation. | |
| Arxx::Structure::Relation::iterator | end (void) |
| Returns the end reference iterator of the relation. | |
| Arxx::Structure::Relation::const_iterator | begin (void) const |
| Returns the first reference iterator of the relation. | |
| Arxx::Structure::Relation::const_iterator | end (void) const |
| Returns the end reference iterator of the relation. | |
| const std::string & | sGetName (void) const |
| Returns the name of the relation. | |
Private Member Functions | |
| Relation (Arxx::Structure &Structure, const std::string &sName) | |
| A constructor that links a relation to a specific Arxx::Structure. | |
Private Attributes | |
| Arxx::Structure & | m_Structure |
| The related Structure object. | |
| std::multimap< Arxx::u4byte, Arxx::Reference > | m_References |
| The Item references stored in the Relation. | |
| std::string | m_sName |
| The name of the relation. | |
Friends | |
| class | Arxx::Structure |
Classes | |
| class | const_iterator |
| An iterator class defining basic operations to iterate the Reference objects in a Relation. More... | |
| class | iterator |
| An iterator class defining basic operations to iterate the Reference objects in a Relation. More... | |
| typedef std::multimap< Arxx::u4byte, Arxx::Reference >::size_type Arxx::Structure::Relation::size_type |
| Arxx::Structure::Relation::Relation | ( | Arxx::Structure & | Structure, | |
| const std::string & | sName | |||
| ) | [private] |
A constructor that links a relation to a specific Arxx::Structure.
| bool Arxx::Structure::Relation::bDelete | ( | Arxx::u4byte | u4UniqueID | ) |
Removes a reference with a certain unique ID from the relation.
| u4UniqueID | The unique ID that is to be deleted from the relation. |
| Arxx::Structure::Relation::const_iterator Arxx::Structure::Relation::begin | ( | void | ) | const |
Returns the first reference iterator of the relation.
| Arxx::Structure::Relation::iterator Arxx::Structure::Relation::begin | ( | void | ) |
Returns the first reference iterator of the relation.
| Arxx::Structure::Relation::const_iterator Arxx::Structure::Relation::end | ( | void | ) | const |
Returns the end reference iterator of the relation.
| Arxx::Structure::Relation::iterator Arxx::Structure::Relation::end | ( | void | ) |
Returns the end reference iterator of the relation.
| const std::string & Arxx::Structure::Relation::sGetName | ( | void | ) | const |
Returns the name of the relation.
| Arxx::Structure::Relation::size_type Arxx::Structure::Relation::size | ( | void | ) | const |
Returns the number of references in the relation.
| void Arxx::Structure::Relation::vAdd | ( | Arxx::u4byte | u4UniqueID | ) |
Adds a unique ID reference to the relation.
| u4UniqueID | The unique ID that is to be added to the relation. |
friend class Arxx::Structure [friend] |
std::multimap< Arxx::u4byte, Arxx::Reference > Arxx::Structure::Relation::m_References [private] |
std::string Arxx::Structure::Relation::m_sName [private] |
The name of the relation.
1.4.7