Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CPyCppyy::CallContext Struct Reference

Definition at line 48 of file CallContext.h.

Classes

struct  Temporary
 

Public Types

enum  ECallFlags {
  kNone = 0x000000 , kIsSorted = 0x000001 , kIsCreator = 0x000002 , kIsConstructor = 0x000004 ,
  kHaveImplicit = 0x000008 , kAllowImplicit = 0x000010 , kNoImplicit = 0x000020 , kCallDirect = 0x000040 ,
  kFromDescr = 0x000080 , kUseHeuristics = 0x000100 , kUseStrict = 0x000200 , kReleaseGIL = 0x000400 ,
  kSetLifeLine = 0x000800 , kNeverLifeLine = 0x001000 , kPyException = 0x002000 , kCppException = 0x004000 ,
  kProtected = 0x008000 , kUseFFI = 0x010000 , kIsPseudoFunc = 0x020000
}
 

Public Member Functions

 CallContext ()
 
 CallContext (const CallContext &)=delete
 
 ~CallContext ()
 
void AddTemporary (PyObject *pyobj)
 
void Cleanup ()
 
ParameterGetArgs ()
 
ParameterGetArgs (size_t sz)
 
size_t GetEncodedSize ()
 
size_t GetSize ()
 
CallContextoperator= (const CallContext &)=delete
 

Static Public Member Functions

static bool SetGlobalSignalPolicy (bool setProtected)
 
static bool SetMemoryPolicy (ECallFlags e)
 

Public Attributes

Cppyy::TCppScope_t fCurScope
 
uint32_t fFlags
 
PyObjectfPyContext
 

Static Public Attributes

static ECallFlags sMemoryPolicy = CallContext::kUseStrict
 
static ECallFlags sSignalPolicy = CallContext::kNone
 

Private Attributes

Parameter fArgs [SMALL_ARGS_N]
 
std::vector< Parameter > * fArgsVec
 
size_t fNArgs
 
TemporaryfTemps
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/bindings/pyroot/cppyy/CPyCppyy/src/CallContext.h>

Member Enumeration Documentation

◆ ECallFlags

Enumerator
kNone 
kIsSorted 
kIsCreator 
kIsConstructor 
kHaveImplicit 
kAllowImplicit 
kNoImplicit 
kCallDirect 
kFromDescr 
kUseHeuristics 
kUseStrict 
kReleaseGIL 
kSetLifeLine 
kNeverLifeLine 
kPyException 
kCppException 
kProtected 
kUseFFI 
kIsPseudoFunc 

Definition at line 55 of file CallContext.h.

Constructor & Destructor Documentation

◆ CallContext() [1/2]

CPyCppyy::CallContext::CallContext ( )
inline

Definition at line 49 of file CallContext.h.

◆ CallContext() [2/2]

CPyCppyy::CallContext::CallContext ( const CallContext )
delete

◆ ~CallContext()

CPyCppyy::CallContext::~CallContext ( )
inline

Definition at line 53 of file CallContext.h.

Member Function Documentation

◆ AddTemporary()

void CPyCppyy::CallContext::AddTemporary ( PyObject pyobj)

Definition at line 16 of file CallContext.cxx.

◆ Cleanup()

void CPyCppyy::CallContext::Cleanup ( )

Definition at line 29 of file CallContext.cxx.

◆ GetArgs() [1/2]

Parameter * CPyCppyy::CallContext::GetArgs ( )
inline

Definition at line 96 of file CallContext.h.

◆ GetArgs() [2/2]

Parameter * CPyCppyy::CallContext::GetArgs ( size_t  sz)
inline

Definition at line 88 of file CallContext.h.

◆ GetEncodedSize()

size_t CPyCppyy::CallContext::GetEncodedSize ( )
inline

Definition at line 102 of file CallContext.h.

◆ GetSize()

size_t CPyCppyy::CallContext::GetSize ( )
inline

Definition at line 101 of file CallContext.h.

◆ operator=()

CallContext & CPyCppyy::CallContext::operator= ( const CallContext )
delete

◆ SetGlobalSignalPolicy()

bool CPyCppyy::CallContext::SetGlobalSignalPolicy ( bool  setProtected)
static

Definition at line 53 of file CallContext.cxx.

◆ SetMemoryPolicy()

bool CPyCppyy::CallContext::SetMemoryPolicy ( ECallFlags  e)
static

Definition at line 41 of file CallContext.cxx.

Member Data Documentation

◆ fArgs

Parameter CPyCppyy::CallContext::fArgs[SMALL_ARGS_N]
private

Definition at line 114 of file CallContext.h.

◆ fArgsVec

std::vector<Parameter>* CPyCppyy::CallContext::fArgsVec
private

Definition at line 115 of file CallContext.h.

◆ fCurScope

Cppyy::TCppScope_t CPyCppyy::CallContext::fCurScope

Definition at line 106 of file CallContext.h.

◆ fFlags

uint32_t CPyCppyy::CallContext::fFlags

Definition at line 108 of file CallContext.h.

◆ fNArgs

size_t CPyCppyy::CallContext::fNArgs
private

Definition at line 116 of file CallContext.h.

◆ fPyContext

PyObject* CPyCppyy::CallContext::fPyContext

Definition at line 107 of file CallContext.h.

◆ fTemps

Temporary* CPyCppyy::CallContext::fTemps
private

Definition at line 117 of file CallContext.h.

◆ sMemoryPolicy

CallContext::ECallFlags CPyCppyy::CallContext::sMemoryPolicy = CallContext::kUseStrict
static

Definition at line 78 of file CallContext.h.

◆ sSignalPolicy

CallContext::ECallFlags CPyCppyy::CallContext::sSignalPolicy = CallContext::kNone
static

Definition at line 85 of file CallContext.h.

Collaboration diagram for CPyCppyy::CallContext:
[legend]

The documentation for this struct was generated from the following files: