BOSS 7.0.1
BESIII Offline Software System
|
#include <RelTable.h>
Public Member Functions | |
RelTable () | |
RelTable (ObjectList< Relation< T1, T2 > > *rels) | |
void | init () |
Initialize the internal pointer to an ObjectList of relations. | |
void | addDupRel (Relation< T1, T2 > *rel) |
bool | addRelation (Relation< T1, T2 > *rel) |
std::vector< Relation< T1, T2 > * > | getRelByFirst (const T1 *pobj) const |
std::vector< Relation< T1, T2 > * > | getRelBySecond (const T2 *pobj) const |
void | erase (Relation< T1, T2 > *rel) |
void | changeFirst (Relation< T1, T2 > *rel, T1 *pobj) |
void | changeSecond (Relation< T1, T2 > *rel, T2 *pobj) |
unsigned long | size () const |
This method returns the number of relations in the table. | |
ObjectList< Relation< T1, T2 > > * | getAllRelations () const |
Returns the pointer to the collection of relations. | |
RelTable () | |
RelTable (ObjectList< Relation< T1, T2 > > *rels) | |
void | init () |
Initialize the internal pointer to an ObjectList of relations. | |
void | addDupRel (Relation< T1, T2 > *rel) |
bool | addRelation (Relation< T1, T2 > *rel) |
std::vector< Relation< T1, T2 > * > | getRelByFirst (const T1 *pobj) const |
std::vector< Relation< T1, T2 > * > | getRelBySecond (const T2 *pobj) const |
void | erase (Relation< T1, T2 > *rel) |
void | changeFirst (Relation< T1, T2 > *rel, T1 *pobj) |
void | changeSecond (Relation< T1, T2 > *rel, T2 *pobj) |
unsigned long | size () const |
This method returns the number of relations in the table. | |
ObjectList< Relation< T1, T2 > > * | getAllRelations () const |
Returns the pointer to the collection of relations. | |
Definition at line 29 of file InstallArea/include/RelTable/RelTable/RelTable.h.
|
inline |
Definition at line 33 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
|
inline |
Definition at line 124 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
|
inline |
Definition at line 33 of file InstallArea/include/RelTable/RelTable/RelTable.h.
Event::RelTable< T1, T2 >::RelTable | ( | ObjectList< Relation< T1, T2 > > * | rels | ) |
void RelTable::addDupRel | ( | Relation< T1, T2 > * | rel | ) |
The following method add a new Relation to the table, even if there is already a relation with the same two objects (they could have different infos vector)
Definition at line 131 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
void Event::RelTable< T1, T2 >::addDupRel | ( | Relation< T1, T2 > * | rel | ) |
The following method add a new Relation to the table, even if there is already a relation with the same two objects (they could have different infos vector)
The following method add a Relation to the table if it doesn't contain a relation between the same two objects, otherwise it appends the info vector to the exsisting relation
rel | is a pointer to a relation between two objects |
Definition at line 143 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
bool Event::RelTable< T1, T2 >::addRelation | ( | Relation< T1, T2 > * | rel | ) |
The following method add a Relation to the table if it doesn't contain a relation between the same two objects, otherwise it appends the info vector to the exsisting relation
rel | is a pointer to a relation between two objects |
void RelTable::changeFirst | ( | Relation< T1, T2 > * | rel, |
T1 * | pobj | ||
) |
This method change the first data pointer of a given relation contained into the table.
rel | it's a pointer to the relation to be modified |
pobj | is the new data value provided by the user |
Definition at line 230 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by main().
void Event::RelTable< T1, T2 >::changeFirst | ( | Relation< T1, T2 > * | rel, |
T1 * | pobj | ||
) |
This method change the first data pointer of a given relation contained into the table.
rel | it's a pointer to the relation to be modified |
pobj | is the new data value provided by the user |
void RelTable::changeSecond | ( | Relation< T1, T2 > * | rel, |
T2 * | pobj | ||
) |
This method change the second data pointer of a given relation contained into the table.
rel | it's a pointer to the relation to be modified |
pobj | is the new data value provided by the user |
Definition at line 243 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by main().
void Event::RelTable< T1, T2 >::changeSecond | ( | Relation< T1, T2 > * | rel, |
T2 * | pobj | ||
) |
This method change the second data pointer of a given relation contained into the table.
rel | it's a pointer to the relation to be modified |
pobj | is the new data value provided by the user |
void RelTable::erase | ( | Relation< T1, T2 > * | rel | ) |
This method erase a particular relation from the table (keeping the integrity).
rel | it's a pointer to the relation to be erased |
Definition at line 218 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by main().
void Event::RelTable< T1, T2 >::erase | ( | Relation< T1, T2 > * | rel | ) |
This method erase a particular relation from the table (keeping the integrity).
rel | it's a pointer to the relation to be erased |
|
inline |
Returns the pointer to the collection of relations.
Definition at line 263 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
ObjectList< Relation< T1, T2 > > * Event::RelTable< T1, T2 >::getAllRelations | ( | ) | const |
Returns the pointer to the collection of relations.
std::vector< Relation< T1, T2 > * > RelTable::getRelByFirst | ( | const T1 * | pobj | ) | const |
This method search for all relations having obj in the first field.
obj | it's a pointer to the object given by the user |
Definition at line 163 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
std::vector< Relation< T1, T2 > * > Event::RelTable< T1, T2 >::getRelByFirst | ( | const T1 * | pobj | ) | const |
This method search for all relations having obj in the first field.
obj | it's a pointer to the object given by the user |
std::vector< Relation< T1, T2 > * > RelTable::getRelBySecond | ( | const T2 * | pobj | ) | const |
This method search for all relations having pobj in the second field.
pobj | it's a pointer to the object given by the user |
Definition at line 191 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by main().
std::vector< Relation< T1, T2 > * > Event::RelTable< T1, T2 >::getRelBySecond | ( | const T2 * | pobj | ) | const |
This method search for all relations having pobj in the second field.
pobj | it's a pointer to the object given by the user |
|
inline |
Initialize the internal pointer to an ObjectList of relations.
Definition at line 38 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
|
inline |
Initialize the internal pointer to an ObjectList of relations.
Definition at line 38 of file InstallArea/include/RelTable/RelTable/RelTable.h.
|
inline |
This method returns the number of relations in the table.
Definition at line 256 of file Event/RelTable/RelTable-00-00-02/RelTable/RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
unsigned long Event::RelTable< T1, T2 >::size | ( | ) | const |
This method returns the number of relations in the table.