![]() |
Belle II Software
release-08-02-05
|
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. More... | |
| 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.
|
virtual |
Clear container to free memory.
Prefer to deleting objects of this type.
Definition at line 27 of file RelationContainer.cc.