cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Public Member Functions | Public Attributes | List of all members
conftest.Output Class Reference
Inheritance diagram for conftest.Output:
object handle conftest.Unordered

Public Member Functions

def __init__ (self, string)
 
def __str__ (self)
 
def __eq__ (self, other)
 
- Public Member Functions inherited from object
 object ()=default
 
 PYBIND11_DEPRECATED ("Use reinterpret_borrow<object>() or reinterpret_steal<object>()") object(handle h
 
 object (const object &o)
 Copy constructor; always increases the reference count. More...
 
 object (object &&other) noexcept
 Move constructor; steals the object from other and preserves its reference count. More...
 
 ~object ()
 Destructor; automatically calls handle::dec_ref() More...
 
handle release ()
 
objectoperator= (const object &other)
 
objectoperator= (object &&other) noexcept
 
template<typename T >
cast () const &
 
template<typename T >
cast () &&
 
 object (handle h, borrowed_t)
 
 object (handle h, stolen_t)
 
template<typename T >
cast () const &
 
template<typename T >
cast () &&
 
template<>
void cast () const &
 
template<>
void cast () &&
 
- Public Member Functions inherited from handle
 handle ()=default
 The default constructor creates a handle with a nullptr-valued pointer. More...
 
 handle (PyObject *ptr)
 Creates a handle from the given raw Python object pointer. More...
 
PyObject * ptr () const
 Return the underlying PyObject * pointer. More...
 
PyObject *& ptr ()
 
const handleinc_ref () const &
 
const handledec_ref () const &
 
template<typename T >
cast () const
 
 operator bool () const
 Return true when the handle wraps a valid Python object. More...
 
bool operator== (const handle &h) const
 
bool operator!= (const handle &h) const
 
bool check () const
 
template<>
void cast () const
 

Public Attributes

 string
 
 explanation
 
- Public Attributes inherited from object
bool is_borrowed: handle(h) { if (is_borrowed) inc_ref()
 

Additional Inherited Members

- Protected Attributes inherited from handle
PyObject * m_ptr = nullptr
 

Detailed Description

Basic output post-processing and comparison

Definition at line 48 of file conftest.py.

Constructor & Destructor Documentation

◆ __init__()

def conftest.Output.__init__ (   self,
  string 
)

Definition at line 51 of file conftest.py.

Member Function Documentation

◆ __eq__()

def conftest.Output.__eq__ (   self,
  other 
)

Reimplemented in conftest.Unordered.

Definition at line 58 of file conftest.py.

◆ __str__()

def conftest.Output.__str__ (   self)

Definition at line 55 of file conftest.py.

Member Data Documentation

◆ explanation

conftest.Output.explanation

Definition at line 53 of file conftest.py.

◆ string

conftest.Output.string

Definition at line 52 of file conftest.py.


The documentation for this class was generated from the following file: