LCIO
02.17
|
Implementation of the LCRelation. More...
#include <LCRelationImpl.h>
Public Member Functions | |
LCRelationImpl () | |
LCRelationImpl (EVENT::LCObject *from, EVENT::LCObject *to, float weight=1.0f) | |
LCRelationImpl (const LCRelationImpl &)=default | |
default copy constructor - use with care More... | |
LCRelationImpl & | operator= (const LCRelationImpl &)=default |
default assignment operator - use with care More... | |
~LCRelationImpl () | |
int | id () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
EVENT::LCObject * | getFrom () const |
The 'from' object of the given relation. More... | |
EVENT::LCObject * | getTo () const |
The 'to' object of the given relation. More... | |
float | getWeight () const |
The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set. More... | |
void | setFrom (EVENT::LCObject *from) |
void | setTo (EVENT::LCObject *to) |
void | setWeight (float weight) |
![]() | |
virtual | ~LCRelation () |
Destructor. More... | |
![]() | |
virtual | ~LCObject () |
Destructor. More... | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
template<class V > | |
V::ext_type | ext () |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
const V::ext_type | ext () const |
Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More... | |
template<class V > | |
V::rel_type | rel () |
Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. More... | |
![]() | |
AccessChecked () | |
virtual | ~AccessChecked () |
virtual int | simpleUID () const |
Protected Attributes | |
EVENT::LCObject * | _from |
EVENT::LCObject * | _to |
float | _weight |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef LCRelation | lcobject_type |
Useful typedef for template programming with LCIO. More... | |
![]() | |
typedef std::type_index | ext_index |
typedef std::shared_ptr< void > | ext_type |
typedef std::map< ext_index, ext_type > | ext_map |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
![]() | |
static std::atomic_int | _lCObjectId |
|
inline |
Definition at line 25 of file LCRelationImpl.h.
|
inline |
Definition at line 26 of file LCRelationImpl.h.
|
default |
default copy constructor - use with care
|
inline |
Definition at line 35 of file LCRelationImpl.h.
|
inlinevirtual |
The 'from' object of the given relation.
Implements EVENT::LCRelation.
Definition at line 39 of file LCRelationImpl.h.
References _from.
|
inlinevirtual |
The 'to' object of the given relation.
Implements EVENT::LCRelation.
Definition at line 40 of file LCRelationImpl.h.
References _to.
|
inlinevirtual |
The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set.
Implements EVENT::LCRelation.
Definition at line 41 of file LCRelationImpl.h.
References _weight.
|
inlinevirtual |
Returns an object id for internal (debugging) use in LCIO.
Implements EVENT::LCObject.
Definition at line 37 of file LCRelationImpl.h.
References IMPL::AccessChecked::simpleUID().
|
default |
default assignment operator - use with care
|
inline |
Definition at line 43 of file LCRelationImpl.h.
References _from.
|
inline |
Definition at line 44 of file LCRelationImpl.h.
References _to.
|
inline |
Definition at line 45 of file LCRelationImpl.h.
References _weight.
|
protected |
Definition at line 49 of file LCRelationImpl.h.
|
protected |
Definition at line 50 of file LCRelationImpl.h.
|
protected |
Definition at line 51 of file LCRelationImpl.h.
Referenced by getWeight(), and setWeight().