/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/lcio/src/cpp/src/CPPFORT/lcrel.cc File Reference

#include "CPPFORT/lcrel.h"
#include "lcio.h"
#include "IMPL/LCRelationImpl.h"
#include <iostream>

Include dependency graph for lcrel.cc:

Go to the source code of this file.

Functions

PTRTYPE lcrelcreate0 ()
PTRTYPE lcrelcreate (PTRTYPE objectfrom, PTRTYPE objectto, float weight)
int lcreldelete (PTRTYPE relation)
int lcrelid (PTRTYPE relation)
PTRTYPE lcrelgetfrom (PTRTYPE relation)
PTRTYPE lcrelgetto (PTRTYPE relation)
float lcrelgetweight (PTRTYPE relation)
int lcrelsetfrom (PTRTYPE relation, PTRTYPE object)
int lcrelsetto (PTRTYPE relation, PTRTYPE object)
int lcrelsetweight (PTRTYPE relation, float weight)


Function Documentation

PTRTYPE lcrelcreate0 (  ) 

Definition at line 10 of file lcrel.cc.

00010                       {
00011   LCRelationImpl* relation = new LCRelationImpl() ;
00012   return reinterpret_cast<PTRTYPE>( relation ) ;
00013 }

PTRTYPE lcrelcreate ( PTRTYPE  objectfrom,
PTRTYPE  objectto,
float  weight 
)

Definition at line 15 of file lcrel.cc.

00015                                                                           {
00016   LCObject* objf      = f2c_pointer<LCObject,LCObject>( objectfrom ) ;
00017   LCObject* objt      = f2c_pointer<LCObject,LCObject>( objectto ) ;
00018   LCRelationImpl* relation = new LCRelationImpl( objf, objt, weight ) ;
00019   return reinterpret_cast<PTRTYPE>( relation ) ;
00020 }

int lcreldelete ( PTRTYPE  relation  ) 

Definition at line 22 of file lcrel.cc.

00022                                    {
00023   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00024   delete rel ;
00025   return LCIO::SUCCESS ;
00026 }

int lcrelid ( PTRTYPE  relation  ) 

Definition at line 28 of file lcrel.cc.

00028                                {
00029   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00030   return rel->id() ;
00031 }

PTRTYPE lcrelgetfrom ( PTRTYPE  relation  ) 

Definition at line 33 of file lcrel.cc.

00033                                         {
00034   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00035   LCObject* object    = rel->getFrom() ;
00036   return reinterpret_cast<PTRTYPE>( object ) ;
00037 }

PTRTYPE lcrelgetto ( PTRTYPE  relation  ) 

Definition at line 39 of file lcrel.cc.

00039                                       {
00040   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00041   LCObject* object    = rel->getTo() ;
00042   return reinterpret_cast<PTRTYPE>( object ) ;
00043 }

float lcrelgetweight ( PTRTYPE  relation  ) 

Definition at line 45 of file lcrel.cc.

00045                                         {
00046   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00047   return rel->getWeight() ;
00048 }

int lcrelsetfrom ( PTRTYPE  relation,
PTRTYPE  object 
)

Definition at line 50 of file lcrel.cc.

00050                                                    {
00051   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00052   LCObject* obj       = f2c_pointer<LCObject,LCObject>( object ) ;
00053   rel->setFrom( obj ) ;
00054   return LCIO::SUCCESS ;
00055 }

int lcrelsetto ( PTRTYPE  relation,
PTRTYPE  object 
)

Definition at line 57 of file lcrel.cc.

00057                                                  {
00058   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00059   LCObject* obj       = f2c_pointer<LCObject,LCObject>( object ) ;
00060   rel->setTo( obj ) ;
00061   return LCIO::SUCCESS ;
00062 }

int lcrelsetweight ( PTRTYPE  relation,
float  weight 
)

Definition at line 64 of file lcrel.cc.

00064                                                    {
00065   LCRelationImpl* rel = reinterpret_cast<LCRelationImpl*>( relation ) ;
00066   rel->setWeight( weight ) ;
00067   return LCIO::SUCCESS ;
00068 }


Generated on Mon Jan 7 13:16:38 2013 for MicromegasFramework by  doxygen 1.4.7