13 using namespace lcio ;
16 LCRelationNavigator* relation =
new LCRelationNavigator( fromType, toType ) ;
17 return reinterpret_cast<PTRTYPE>( relation ) ;
22 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
24 return LCIO::SUCCESS ;
29 LCCollection* col =
reinterpret_cast<LCCollection*
>( collection ) ;
30 LCRelationNavigator* relation =
new LCRelationNavigator( col ) ;
31 return reinterpret_cast<PTRTYPE>( relation ) ;
36 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
37 return const_cast<char*
>(rel->getFromType().c_str() ) ;
41 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
42 return const_cast<char*
>(rel->getToType().c_str() ) ;
46 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
47 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
48 const LCObjectVec& vec = rel->getRelatedToObjects( obj ) ;
49 return reinterpret_cast<PTRTYPE>( &vec ) ;
53 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
54 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
55 const LCObjectVec& vec = rel->getRelatedFromObjects( obj ) ;
56 return reinterpret_cast<PTRTYPE>( &vec ) ;
60 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
61 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
62 const FloatVec & vec = rel->getRelatedToWeights( obj ) ;
63 return reinterpret_cast<PTRTYPE>( &vec ) ;
67 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
68 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ;
69 const FloatVec & vec = rel->getRelatedFromWeights( obj ) ;
70 return reinterpret_cast<PTRTYPE>( &vec ) ;
74 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
75 LCObject* objf = f2c_pointer<LCObject,LCObject>( objectfrom ) ;
76 LCObject* objt = f2c_pointer<LCObject,LCObject>( objectto ) ;
77 rel->addRelation( objf, objt, weight ) ;
78 return LCIO::SUCCESS ;
82 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
83 LCObject* objf = f2c_pointer<LCObject,LCObject>( objectfrom ) ;
84 LCObject* objt = f2c_pointer<LCObject,LCObject>( objectto ) ;
85 rel->removeRelation( objf, objt ) ;
86 return LCIO::SUCCESS ;
90 LCRelationNavigator* rel =
reinterpret_cast<LCRelationNavigator*
>( relation ) ;
91 LCCollection* col = rel->createLCCollection() ;
92 return reinterpret_cast<PTRTYPE>( col ) ;
LCIO_DEPRECATED_CAPI PTRTYPE lcrnvcreatecollection(PTRTYPE relation)
std::vector< LCObject * > LCObjectVec
Vector of (pointers to) LCObjects.
CFORTRANPNTR CFORTRANPNTR lcrnvgremoverelation
std::vector< float > FloatVec
Vector of floats.
CFORTRANPNTR lcrnvgetrelatedfromweights
LCIO_DEPRECATED_CAPI char * lcrnvgettotype(PTRTYPE relation)
LCIO_DEPRECATED_CAPI PTRTYPE lcrnvcreatefromcollection(PTRTYPE collection)
LCIO_DEPRECATED_CAPI PTRTYPE lcrnvgetrelatedtoweights(PTRTYPE relation, PTRTYPE object)
long PTRTYPE
Fortran interface - define the length of pointers this has to made machine independent ...
lcrnvgetrelatedfromobjects
LCIO_DEPRECATED_CAPI char * lcrnvgetfromtype(PTRTYPE relation)
LCIO_DEPRECATED_CAPI int lcrnvgaddrelation(PTRTYPE relation, PTRTYPE objectfrom, PTRTYPE objectto, float weight)
LCIO_DEPRECATED_CAPI PTRTYPE lcrnvgetrelatedtoobjects(PTRTYPE relation, PTRTYPE object)
LCIO_DEPRECATED_CAPI int lcrnvdelete(PTRTYPE relation)
LCIO_DEPRECATED_CAPI PTRTYPE lcrnvcreate(const char *fromType, const char *toType)
Header file for the f77-wrapper functions of the LCRelationNavigator class.