Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Utility.cxx File Reference
#include "CPyCppyy.h"
#include "Utility.h"
#include "CPPFunction.h"
#include "CPPInstance.h"
#include "CPPOverload.h"
#include "ProxyWrappers.h"
#include "PyCallable.h"
#include "PyStrings.h"
#include "CustomPyTypes.h"
#include "TemplateProxy.h"
#include "TypeManip.h"
#include <limits.h>
#include <string.h>
#include <algorithm>
#include <list>
#include <mutex>
#include <set>
#include <sstream>
#include <utility>
Include dependency graph for Utility.cxx:

Namespaces

namespace  CPyCppyy
 

Typedefs

typedef std::map< std::string, std::string > TC2POperatorMapping_t
 

Functions

static bool AddTypeName (std::string &tmpl_name, PyObject *tn, PyObject *arg, CPyCppyy::Utility::ArgPreference pref, int *pcnt=nullptr)
 
static std::string AnnotationAsText (PyObject *pyobj)
 
static CPyCppyy::PyCallableBuildOperator (const std::string &lcname, const std::string &rcname, const char *op, Cppyy::TCppScope_t scope, bool reverse=false)
 
static bool check_scope (const std::string &name)
 

Variables

static TC2POperatorMapping_t gC2POperatorMapping
 
static std::set< std::string > gOpRemove
 
static std::set< std::string > gOpSkip
 
static bool includesDone = false
 
static std::set< std::string > sIteratorTypes
 
static std::map< void *, PyObject * > sStdFuncLookup
 
static std::map< std::string, PyObject * > sStdFuncMakerLookup
 

Typedef Documentation

◆ TC2POperatorMapping_t

typedef std::map<std::string, std::string> TC2POperatorMapping_t

Definition at line 31 of file Utility.cxx.

Function Documentation

◆ AddTypeName()

static bool AddTypeName ( std::string &  tmpl_name,
PyObject tn,
PyObject arg,
CPyCppyy::Utility::ArgPreference  pref,
int pcnt = nullptr 
)
static

Definition at line 402 of file Utility.cxx.

◆ AnnotationAsText()

static std::string AnnotationAsText ( PyObject pyobj)
inlinestatic

Definition at line 386 of file Utility.cxx.

◆ BuildOperator()

static CPyCppyy::PyCallable * BuildOperator ( const std::string &  lcname,
const std::string &  rcname,
const char *  op,
Cppyy::TCppScope_t  scope,
bool  reverse = false 
)
inlinestatic

Definition at line 261 of file Utility.cxx.

◆ check_scope()

static bool check_scope ( const std::string &  name)
inlinestatic

Definition at line 624 of file Utility.cxx.

Variable Documentation

◆ gC2POperatorMapping

TC2POperatorMapping_t gC2POperatorMapping
static

Definition at line 32 of file Utility.cxx.

◆ gOpRemove

std::set<std::string> gOpRemove
static

Definition at line 34 of file Utility.cxx.

◆ gOpSkip

std::set<std::string> gOpSkip
static

Definition at line 33 of file Utility.cxx.

◆ includesDone

bool includesDone = false
static

Definition at line 1162 of file Utility.cxx.

◆ sIteratorTypes

std::set<std::string> sIteratorTypes
static

Definition at line 1017 of file Utility.cxx.

◆ sStdFuncLookup

std::map<void*, PyObject*> sStdFuncLookup
static

Definition at line 730 of file Utility.cxx.

◆ sStdFuncMakerLookup

std::map<std::string, PyObject*> sStdFuncMakerLookup
static

Definition at line 731 of file Utility.cxx.