BOSS 7.0.6
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. | |
Definition at line 29 of file RelTable.h.
|
inline |
Definition at line 33 of file RelTable.h.
|
inline |
Definition at line 124 of file RelTable.h.
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 RelTable.h.
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 RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
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 RelTable.h.
Referenced by main().
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 RelTable.h.
Referenced by main().
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 RelTable.h.
Referenced by main().
|
inline |
Returns the pointer to the collection of relations.
Definition at line 263 of file RelTable.h.
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 RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
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 RelTable.h.
Referenced by main().
|
inline |
Initialize the internal pointer to an ObjectList of relations.
Definition at line 38 of file RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().
|
inline |
This method returns the number of relations in the table.
Definition at line 256 of file RelTable.h.
Referenced by MucRecTrkExt::execute(), and main().