Functions
_

Functions

void delattr (handle obj, handle name)
 
void delattr (handle obj, const char *name)
 
object getattr (handle obj, handle name)
 
object getattr (handle obj, const char *name)
 
object getattr (handle obj, handle name, handle default_)
 
object getattr (handle obj, const char *name, handle default_)
 
dict globals ()
 
bool hasattr (handle obj, handle name)
 
bool hasattr (handle obj, const char *name)
 
ssize_t hash (handle obj)
 
template<typename T , detail::enable_if_t< std::is_base_of< object, T >::value, int > = 0>
bool isinstance (handle obj)
 
bool isinstance (handle obj, handle type)
 
iterator iter (handle obj)
 
size_t len (handle h)
 
size_t len_hint (handle h)
 
str repr (handle h)
 
void setattr (handle obj, handle name, handle value)
 
void setattr (handle obj, const char *name, handle value)
 

Detailed Description

Unless stated otherwise, the following C++ functions behave the same as their Python counterparts.

Function Documentation

void delattr ( handle  obj,
handle  name 
)
inline

Definition at line 411 of file pytypes.h.

void delattr ( handle  obj,
const char *  name 
)
inline

Definition at line 415 of file pytypes.h.

object getattr ( handle  obj,
handle  name 
)
inline

Definition at line 419 of file pytypes.h.

object getattr ( handle  obj,
const char *  name 
)
inline

Definition at line 425 of file pytypes.h.

object getattr ( handle  obj,
handle  name,
handle  default_ 
)
inline

Definition at line 431 of file pytypes.h.

object getattr ( handle  obj,
const char *  name,
handle  default_ 
)
inline

Definition at line 440 of file pytypes.h.

dict globals ( )
inline

Return a dictionary representing the global variables in the current execution frame, or __main__.__dict__ if there is no frame (usually when the interpreter is embedded).

Definition at line 948 of file pybind11.h.

bool hasattr ( handle  obj,
handle  name 
)
inline

Definition at line 403 of file pytypes.h.

bool hasattr ( handle  obj,
const char *  name 
)
inline

Definition at line 407 of file pytypes.h.

ssize_t hash ( handle  obj)
inline

Definition at line 457 of file pytypes.h.

template<typename T , detail::enable_if_t< std::is_base_of< object, T >::value, int > = 0>
bool isinstance ( handle  obj)

Return true if obj is an instance of T. Type T must be a subclass of object or a class which was exposed to Python as py::class_<T>.

Definition at line 384 of file pytypes.h.

bool isinstance ( handle  obj,
handle  type 
)
inline

Return true if obj is an instance of the type.

Definition at line 394 of file pytypes.h.

iterator iter ( handle  obj)
inline

Definition at line 1547 of file pytypes.h.

size_t len ( handle  h)
inline

Definition at line 1514 of file pytypes.h.

size_t len_hint ( handle  h)
inline

Definition at line 1521 of file pytypes.h.

str repr ( handle  h)
inline

Definition at line 1536 of file pytypes.h.

void setattr ( handle  obj,
handle  name,
handle  value 
)
inline

Definition at line 449 of file pytypes.h.

void setattr ( handle  obj,
const char *  name,
handle  value 
)
inline

Definition at line 453 of file pytypes.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:44