#include "CPPFORT/lcobv.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 <vector>Include dependency graph for lcobv.cc:

Go to the source code of this file.
Typedefs | |
| typedef std::map< EVENT::LCObject *, std::pair< EVENT::LCObjectVec, EVENT::FloatVec > > | RelMap |
Functions | |
| int | lcobvgetlength (PTRTYPE vector) |
| PTRTYPE | lcobvgetobject (PTRTYPE vector, int index) |
| int | lcobvgetobjectid (PTRTYPE vector, int index) |
| float | lcobvgetweight (PTRTYPE vector, int index) |
| typedef std::map< EVENT::LCObject* , std::pair< EVENT::LCObjectVec , EVENT::FloatVec > > RelMap |
| int lcobvgetlength | ( | PTRTYPE | vector | ) |
| PTRTYPE lcobvgetobject | ( | PTRTYPE | vector, | |
| int | index | |||
| ) |
Definition at line 23 of file lcobv.cc.
00023 { 00024 const LCObjectVec* vec = reinterpret_cast<LCObjectVec*>( vector ) ; 00025 // LCObject* obj = vec->at(index-1) ; 00026 if( index < 1 || index > (int) vec->size() ) 00027 throw Exception("lcobvgetobject : out_of_range " ) ; 00028 00029 LCObject* obj = (*vec)[ index-1 ] ; 00030 return C2F_POINTER( LCObject*, obj ) ; 00031 }
| int lcobvgetobjectid | ( | PTRTYPE | vector, | |
| int | index | |||
| ) |
Definition at line 33 of file lcobv.cc.
00033 { 00034 const LCObjectVec* vec = reinterpret_cast<LCObjectVec*>( vector ) ; 00035 // LCObject* obj = vec->at(index-1) ; 00036 if( index < 1 || index > (int) vec->size() ) 00037 throw Exception("lcobvgetobjectid : out_of_range " ) ; 00038 00039 LCObject* obj = (*vec)[ index-1 ] ; 00040 return obj->id() ; 00041 }
| float lcobvgetweight | ( | PTRTYPE | vector, | |
| int | index | |||
| ) |
Definition at line 43 of file lcobv.cc.
00043 { 00044 const FloatVec* vec = reinterpret_cast<FloatVec*>( vector ) ; 00045 // return vec->at(index-1) ; 00046 if( index < 1 || index > (int) vec->size() ) 00047 throw Exception("lcobvgetweight : out_of_range " ) ; 00048 00049 return (*vec)[ index-1 ] ; 00050 }
1.4.7