Belle II Software  release-08-01-10
RelationContainer Class Reference

Class to store relations between StoreArrays in the DataStore. More...

#include <RelationContainer.h>

Inheritance diagram for RelationContainer:
Collaboration diagram for RelationContainer:

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 RelationElementgetElement (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
 

Detailed Description

Class to store relations between StoreArrays in the DataStore.

This class is only used internally, users should use RelationsObject/RelationsInterface to access/add relations.

See also
RelationElement

Definition at line 27 of file RelationContainer.h.

Member Function Documentation

◆ Clear()

void Clear ( Option_t *  = "")
virtual

Clear container to free memory.

Prefer to deleting objects of this type.

Definition at line 27 of file RelationContainer.cc.

28 {
29  m_elements.Delete();
30  m_fromName.clear();
31  m_toName.clear();
32  m_modified = true;
34 }
TClonesArray m_elements
TClonesArray to store all elements.
int m_toDurability
durability of the StoreArray we relate to.
std::string m_fromName
name of the StoreArray we relate from.
bool m_modified
check for modification since creation or deserialization.
std::string m_toName
name of the StoreArray we relate to.
int m_fromDurability
durability of the StoreArray we relate from.

The documentation for this class was generated from the following files: