Belle II Software development
|
Class to store relations between StoreArrays in the DataStore. More...
#include <RelationContainer.h>
Public Member Functions | |
RelationContainer () | |
Default constructor, initialize all values to sane default. | |
const std::string & | getFromName () const |
Get name of the StoreArray we relate from. | |
int | getFromDurability () const |
Get durability of the StoreArray we relate from. | |
const std::string & | getToName () const |
Get name of the StoreArray we relate to. | |
int | getToDurability () const |
Get durability of the StoreArray we relate to. | |
void | setFromName (const std::string &name) |
Set name of the StoreArray we relate from. | |
void | setFromDurability (int durability) |
Set durability of the StoreArray we relate from. | |
void | setToName (const std::string &name) |
Set name of the StoreArray we relate to. | |
void | setToDurability (int durability) |
Set durability of the StoreArray we relate to. | |
void | setModified (bool modified) |
check for modification since creation or deserialization. | |
bool | isDefaultConstructed () const |
Returns true if no information was set yet or Clear() was called. | |
virtual void | Clear (Option_t *="") |
Clear container to free memory. | |
TClonesArray & | elements () |
Get reference to the elements. | |
const TClonesArray & | elements () const |
Get const reference to the elements. | |
const RelationElement & | getElement (int i) const |
Get reference to RelationElement at index i. | |
int | getEntries () const |
Get number of elements. | |
bool | getModified () const |
check for modification since creation or deserialization. | |
Protected Member Functions | |
ClassDef (RelationContainer, 1) | |
Class to store relations between StoreArrays in the DataStore. | |
Protected Attributes | |
TClonesArray | m_elements |
TClonesArray to store all elements. | |
std::string | m_fromName |
name of the StoreArray we relate from. | |
int | m_fromDurability |
durability of the StoreArray we relate from. | |
std::string | m_toName |
name of the StoreArray we relate to. | |
int | m_toDurability |
durability of the StoreArray we relate to. | |
bool | m_modified |
check for modification since creation or deserialization. | |
Friends | |
class | RelationArray |
transient | |
class | DataStore |
Class to store relations between StoreArrays in the DataStore.
This class is only used internally, users should use RelationsObject/RelationsInterface to access/add relations.
Definition at line 27 of file RelationContainer.h.
Default constructor, initialize all values to sane default.
Definition at line 16 of file RelationContainer.cc.
|
virtual |
Clear container to free memory.
Prefer to deleting objects of this type.
Definition at line 27 of file RelationContainer.cc.
|
inline |
|
inline |
const RelationElement & getElement | ( | int | i | ) | const |
Get reference to RelationElement at index i.
Definition at line 23 of file RelationContainer.cc.
|
inline |
|
inline |
|
inline |
|
inline |
check for modification since creation or deserialization.
Definition at line 83 of file RelationContainer.h.
|
inline |
|
inline |
|
inline |
Returns true if no information was set yet or Clear() was called.
Definition at line 61 of file RelationContainer.h.
|
inline |
Set durability of the StoreArray we relate from.
Definition at line 49 of file RelationContainer.h.
|
inline |
Set name of the StoreArray we relate from.
Definition at line 46 of file RelationContainer.h.
|
inline |
check for modification since creation or deserialization.
Definition at line 58 of file RelationContainer.h.
|
inline |
Set durability of the StoreArray we relate to.
Definition at line 55 of file RelationContainer.h.
|
inline |
Set name of the StoreArray we relate to.
Definition at line 52 of file RelationContainer.h.
|
friend |
Definition at line 106 of file RelationContainer.h.
|
friend |
transient
Definition at line 105 of file RelationContainer.h.
|
protected |
TClonesArray to store all elements.
Definition at line 88 of file RelationContainer.h.
|
protected |
durability of the StoreArray we relate from.
Definition at line 94 of file RelationContainer.h.
|
protected |
name of the StoreArray we relate from.
Definition at line 91 of file RelationContainer.h.
|
protected |
check for modification since creation or deserialization.
Definition at line 103 of file RelationContainer.h.
|
protected |
durability of the StoreArray we relate to.
Definition at line 100 of file RelationContainer.h.
|
protected |
name of the StoreArray we relate to.
Definition at line 97 of file RelationContainer.h.