LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::LCRelationImpl Class Reference

Implementation of the LCRelation. More...

#include <LCRelationImpl.h>

+ Inheritance diagram for IMPL::LCRelationImpl:

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...
 
LCRelationImploperator= (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::LCObjectgetFrom () const
 The 'from' object of the given relation. More...
 
EVENT::LCObjectgetTo () 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)
 
- Public Member Functions inherited from EVENT::LCRelation
virtual ~LCRelation ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor. More...
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
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...
 
- Public Member Functions inherited from IMPL::AccessChecked
 AccessChecked ()
 
virtual ~AccessChecked ()
 
virtual int simpleUID () const
 

Protected Attributes

EVENT::LCObject_from
 
EVENT::LCObject_to
 
float _weight
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::LCRelation
typedef LCRelation lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from lcrtrel::LCRTRelations
typedef std::type_index ext_index
 
typedef std::shared_ptr< void > ext_type
 
typedef std::map< ext_index,
ext_type
ext_map
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of the LCRelation.

Author
gaede
Version
id:

Definition at line 21 of file LCRelationImpl.h.

Constructor & Destructor Documentation

IMPL::LCRelationImpl::LCRelationImpl ( )
inline

Definition at line 25 of file LCRelationImpl.h.

IMPL::LCRelationImpl::LCRelationImpl ( EVENT::LCObject from,
EVENT::LCObject to,
float  weight = 1.0f 
)
inline

Definition at line 26 of file LCRelationImpl.h.

IMPL::LCRelationImpl::LCRelationImpl ( const LCRelationImpl )
default

default copy constructor - use with care

IMPL::LCRelationImpl::~LCRelationImpl ( )
inline

Definition at line 35 of file LCRelationImpl.h.

Member Function Documentation

EVENT::LCObject* IMPL::LCRelationImpl::getFrom ( ) const
inlinevirtual

The 'from' object of the given relation.

Implements EVENT::LCRelation.

Definition at line 39 of file LCRelationImpl.h.

References _from.

EVENT::LCObject* IMPL::LCRelationImpl::getTo ( ) const
inlinevirtual

The 'to' object of the given relation.

Implements EVENT::LCRelation.

Definition at line 40 of file LCRelationImpl.h.

References _to.

float IMPL::LCRelationImpl::getWeight ( ) const
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.

int IMPL::LCRelationImpl::id ( ) const
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().

LCRelationImpl& IMPL::LCRelationImpl::operator= ( const LCRelationImpl )
default

default assignment operator - use with care

void IMPL::LCRelationImpl::setFrom ( EVENT::LCObject from)
inline

Definition at line 43 of file LCRelationImpl.h.

References _from.

void IMPL::LCRelationImpl::setTo ( EVENT::LCObject to)
inline

Definition at line 44 of file LCRelationImpl.h.

References _to.

void IMPL::LCRelationImpl::setWeight ( float  weight)
inline

Definition at line 45 of file LCRelationImpl.h.

References _weight.

Member Data Documentation

EVENT::LCObject* IMPL::LCRelationImpl::_from
protected

Definition at line 49 of file LCRelationImpl.h.

Referenced by getFrom(), and setFrom().

EVENT::LCObject* IMPL::LCRelationImpl::_to
protected

Definition at line 50 of file LCRelationImpl.h.

Referenced by getTo(), and setTo().

float IMPL::LCRelationImpl::_weight
protected

Definition at line 51 of file LCRelationImpl.h.

Referenced by getWeight(), and setWeight().


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