11 LCRelationImpl* relation =
new LCRelationImpl() ;
12 return reinterpret_cast<PTRTYPE>( relation ) ;
16 LCObject* objf = f2c_pointer<LCObject,LCObject>( objectfrom ) ;
17 LCObject* objt = f2c_pointer<LCObject,LCObject>( objectto ) ;
18 LCRelationImpl* relation =
new LCRelationImpl( objf, objt, weight ) ;
19 return reinterpret_cast<PTRTYPE>( relation ) ;
23 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
25 return LCIO::SUCCESS ;
29 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
34 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
35 LCObject*
object = rel->getFrom() ;
36 return reinterpret_cast<PTRTYPE>( object ) ;
40 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
41 LCObject*
object = rel->getTo() ;
42 return reinterpret_cast<PTRTYPE>( object ) ;
46 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
47 return rel->getWeight() ;
51 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
52 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
54 return LCIO::SUCCESS ;
58 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
59 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
61 return LCIO::SUCCESS ;
65 LCRelationImpl* rel =
reinterpret_cast<LCRelationImpl*
>( relation ) ;
66 rel->setWeight( weight ) ;
67 return LCIO::SUCCESS ;
LCIO_DEPRECATED_CAPI int lcrelsetweight(PTRTYPE relation, float weight)
LCIO_DEPRECATED_CAPI int lcreldelete(PTRTYPE relation)
LCIO_DEPRECATED_CAPI PTRTYPE lcrelgetfrom(PTRTYPE relation)
LCIO_DEPRECATED_CAPI PTRTYPE lcrelcreate0()
Header file for the f77-wrapper functions of the LCRelation class.
LCIO_DEPRECATED_CAPI int lcrelid(PTRTYPE relation)
long PTRTYPE
Fortran interface - define the length of pointers this has to made machine independent ...
LCIO_DEPRECATED_CAPI PTRTYPE lcrelgetto(PTRTYPE relation)
LCIO_DEPRECATED_CAPI PTRTYPE lcrelcreate(PTRTYPE objectfrom, PTRTYPE objectto, float weight)
LCIO_DEPRECATED_CAPI int lcrelsetfrom(PTRTYPE relation, PTRTYPE object)
LCIO_DEPRECATED_CAPI float lcrelgetweight(PTRTYPE relation)
LCIO_DEPRECATED_CAPI int lcrelsetto(PTRTYPE relation, PTRTYPE object)