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

Namespaces

namespace  cppjit
 
namespace  cppjit::cpyrt
 

Typedefs

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

Functions

static bool AddTypeName (std::string &tmpl_name, PyObject *tn, PyObject *arg, cpyrt::Utility::ArgPreference pref, int *pcnt=nullptr)
 
static bool AddTypeName (std::vector< Cpp::TemplateArgInfo > &types, PyObject *tn, PyObject *arg, cpyrt::Utility::ArgPreference pref, int *pcnt=nullptr)
 
static std::string AnnotationAsText (PyObject *pyobj)
 
static cpyrt::PyCallable * BuildOperator (const std::string &lcname, const std::string &rcname, const char *op, interop::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::unordered_map< void *, PyObject * > sStdFuncLookup
 
static std::unordered_map< std::string, PyObject * > sStdFuncMakerLookup
 

Typedef Documentation

◆ TC2POperatorMapping_t

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

Definition at line 28 of file Utility.cxx.

Function Documentation

◆ AddTypeName() [1/2]

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

Definition at line 425 of file Utility.cxx.

◆ AddTypeName() [2/2]

static bool AddTypeName ( std::vector< Cpp::TemplateArgInfo > & types,
PyObject * tn,
PyObject * arg,
cpyrt::Utility::ArgPreference pref,
int * pcnt = nullptr )
static

Definition at line 691 of file Utility.cxx.

◆ AnnotationAsText()

static std::string AnnotationAsText ( PyObject * pyobj)
inlinestatic

Definition at line 410 of file Utility.cxx.

◆ BuildOperator()

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

Definition at line 258 of file Utility.cxx.

◆ check_scope()

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

Definition at line 1000 of file Utility.cxx.

Variable Documentation

◆ gC2POperatorMapping

TC2POperatorMapping_t gC2POperatorMapping
static

Definition at line 29 of file Utility.cxx.

◆ gOpRemove

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

Definition at line 31 of file Utility.cxx.

◆ gOpSkip

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

Definition at line 30 of file Utility.cxx.

◆ includesDone

bool includesDone = false
static

Definition at line 1592 of file Utility.cxx.

◆ sIteratorTypes

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

Definition at line 1421 of file Utility.cxx.

◆ sStdFuncLookup

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

Definition at line 1110 of file Utility.cxx.

◆ sStdFuncMakerLookup

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

Definition at line 1111 of file Utility.cxx.