Executors.cxx File Reference

#include "PyROOT.h"
#include "PyStrings.h"
#include "Executors.h"
#include "ObjectProxy.h"
#include "PyBufferFactory.h"
#include "RootWrapper.h"
#include "Utility.h"
#include "TClass.h"
#include "TClassEdit.h"
#include "DllImport.h"
#include "Api.h"
#include <utility>
#include <sstream>
#include <Riostream.h>

Go to the source code of this file.

Defines

#define PYROOT_IMPLEMENT_BASIC_REFEXECUTOR(name, type, stype, F1, F2, CF)
#define PYROOT_IMPLEMENT_ARRAY_EXECUTOR(name, type)
#define PYROOT_EXECUTOR_FACTORY(name)

Typedefs

typedef std::pair< const char *,
ExecutorFactory_t > 
NFp_t

Functions

PyROOT::TExecutorPyROOT::CreateExecutor (const std::string &fullType)

Variables

NFp_t factories_ []
{ ... } ::InitExecFactories_t initExecvFactories_


Define Documentation

#define PYROOT_EXECUTOR_FACTORY ( name   ) 

Value:

TExecutor* Create##name##Executor()                    \
{                                                      \
   return new T##name##Executor;                       \
}

Definition at line 349 of file Executors.cxx.

#define PYROOT_IMPLEMENT_ARRAY_EXECUTOR ( name,
type   ) 

Value:

PyObject* PyROOT::T##name##ArrayExecutor::Execute( G__CallFunc* func, void* self )\
{                                                                            \
   return BufFac_t::Instance()->PyBuffer_FromMemory( (type*)func->ExecInt( self ) );\
}

Definition at line 176 of file Executors.cxx.

#define PYROOT_IMPLEMENT_BASIC_REFEXECUTOR ( name,
type,
stype,
F1,
F2,
CF   ) 

Value:

PyObject* PyROOT::T##name##RefExecutor::Execute( G__CallFunc* func, void* self )\
{                                                                            \
   if ( ! fAssignable )                                                      \
      return F1( (stype)func->CF( self ) );                                  \
   else {                                                                    \
      const G__value& result = func->Execute( self );                        \
      *((type*)result.ref) = (type)F2( fAssignable );                        \
      Py_DECREF( fAssignable );                                              \
      fAssignable = 0;                                                       \
      Py_INCREF( Py_None );                                                  \
      return Py_None;                                                        \
   }                                                                         \
}

Definition at line 103 of file Executors.cxx.


Typedef Documentation

typedef std::pair< const char*, ExecutorFactory_t > NFp_t [static]

Definition at line 394 of file Executors.cxx.


Variable Documentation

NFp_t factories_[] [static]

Definition at line 396 of file Executors.cxx.

struct { ... } InitExecFactories_t initExecvFactories_ [static]


Generated on Tue Jul 5 15:55:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1