#include "CPPFORT/lcrnv.h"
#include "UTIL/LCRelationNavigator.h"
#include "lcio.h"
#include "IMPL/LCRelationImpl.h"
#include "EVENT/LCCollection.h"
#include "EVENT/LCObject.h"
#include "LCIOSTLTypes.h"
#include <iostream>
Include dependency graph for lcrnv.cc:
Go to the source code of this file.
Functions | |
PTRTYPE | lcrnvcreate (const char *fromType, const char *toType) |
int | lcrnvdelete (PTRTYPE relation) |
PTRTYPE | lcrnvcreatefromcollection (PTRTYPE collection) |
char * | lcrnvgetfromtype (PTRTYPE relation) |
char * | lcrnvgettotype (PTRTYPE relation) |
PTRTYPE | lcrnvgetrelatedtoobjects (PTRTYPE relation, PTRTYPE object) |
PTRTYPE | lcrnvgetrelatedfromobjects (PTRTYPE relation, PTRTYPE object) |
PTRTYPE | lcrnvgetrelatedtoweights (PTRTYPE relation, PTRTYPE object) |
PTRTYPE | lcrnvgetrelatedfromweights (PTRTYPE relation, PTRTYPE object) |
int | lcrnvgaddrelation (PTRTYPE relation, PTRTYPE objectfrom, PTRTYPE objectto, float weight) |
int | lcrnvgremoverelation (PTRTYPE relation, PTRTYPE objectfrom, PTRTYPE objectto) |
PTRTYPE | lcrnvcreatecollection (PTRTYPE relation) |
PTRTYPE lcrnvcreate | ( | const char * | fromType, | |
const char * | toType | |||
) |
int lcrnvdelete | ( | PTRTYPE | relation | ) |
PTRTYPE lcrnvcreatefromcollection | ( | PTRTYPE | collection | ) |
char* lcrnvgetfromtype | ( | PTRTYPE | relation | ) |
char* lcrnvgettotype | ( | PTRTYPE | relation | ) |
PTRTYPE lcrnvgetrelatedtoobjects | ( | PTRTYPE | relation, | |
PTRTYPE | object | |||
) |
Definition at line 45 of file lcrnv.cc.
00045 { 00046 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00047 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ; 00048 const LCObjectVec& vec = rel->getRelatedToObjects( obj ) ; 00049 return reinterpret_cast<PTRTYPE>( &vec ) ; 00050 }
PTRTYPE lcrnvgetrelatedfromobjects | ( | PTRTYPE | relation, | |
PTRTYPE | object | |||
) |
Definition at line 52 of file lcrnv.cc.
00052 { 00053 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00054 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ; 00055 const LCObjectVec& vec = rel->getRelatedFromObjects( obj ) ; 00056 return reinterpret_cast<PTRTYPE>( &vec ) ; 00057 }
PTRTYPE lcrnvgetrelatedtoweights | ( | PTRTYPE | relation, | |
PTRTYPE | object | |||
) |
Definition at line 59 of file lcrnv.cc.
00059 { 00060 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00061 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ; 00062 const FloatVec & vec = rel->getRelatedToWeights( obj ) ; 00063 return reinterpret_cast<PTRTYPE>( &vec ) ; 00064 }
PTRTYPE lcrnvgetrelatedfromweights | ( | PTRTYPE | relation, | |
PTRTYPE | object | |||
) |
Definition at line 66 of file lcrnv.cc.
00066 { 00067 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00068 LCObject* obj = f2c_pointer<LCObject,LCObject>( object ) ; 00069 const FloatVec & vec = rel->getRelatedFromWeights( obj ) ; 00070 return reinterpret_cast<PTRTYPE>( &vec ) ; 00071 }
int lcrnvgaddrelation | ( | PTRTYPE | relation, | |
PTRTYPE | objectfrom, | |||
PTRTYPE | objectto, | |||
float | weight | |||
) |
Definition at line 73 of file lcrnv.cc.
00073 { 00074 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00075 LCObject* objf = f2c_pointer<LCObject,LCObject>( objectfrom ) ; 00076 LCObject* objt = f2c_pointer<LCObject,LCObject>( objectto ) ; 00077 rel->addRelation( objf, objt, weight ) ; 00078 return LCIO::SUCCESS ; 00079 }
int lcrnvgremoverelation | ( | PTRTYPE | relation, | |
PTRTYPE | objectfrom, | |||
PTRTYPE | objectto | |||
) |
Definition at line 81 of file lcrnv.cc.
00081 { 00082 LCRelationNavigator* rel = reinterpret_cast<LCRelationNavigator*>( relation ) ; 00083 LCObject* objf = f2c_pointer<LCObject,LCObject>( objectfrom ) ; 00084 LCObject* objt = f2c_pointer<LCObject,LCObject>( objectto ) ; 00085 rel->removeRelation( objf, objt ) ; 00086 return LCIO::SUCCESS ; 00087 }
PTRTYPE lcrnvcreatecollection | ( | PTRTYPE | relation | ) |