ShlubluLib
v0.5
ShlubluLib is a lightweight, modular, general purpose, open-source C++ library for Linux and Windows.
|
Go to the documentation of this file.
9 #define PY_SSIZE_T_CLEAN
166 operator PyObject* ()
const;
176 static uint64_t sSequence;
bool operator!=(ObjectHandler const &lhs, ObjectHandler const &rhs)
Inequality operator.
Handler of CPython object pointers used by Python to handle references counts.
Definition: Python_ObjectHandler.h:71
uint64_t id() const
Returns the ID of the use case represented by this handler.
Key hasher to be used with unordered containers such as std::unordered_map or std::unordered_set.
Definition: Python_ObjectHandler.h:84
void swap(ObjectHandler &other) noexcept
Exchanges two instances.
ObjectHandler(ObjectHandler const &src)
Copy constructor.
bool operator==(ObjectHandler const &lhs, ObjectHandler const &rhs)
Equality operator.
ObjectHandler & operator=(ObjectHandler src) noexcept
Assignment operator.
ObjectHandler(ObjectHandler &&src) noexcept
Move constructor.
ObjectHandler()
Empty constructor.
ObjectHandler(PyObject *pyObj)
PyObject* constructor.
PyObject * get() const
Returns the object pointer this handler encapsulates.
int64_t operator()(ObjectHandler const &key) const
Returns the key hash of an instance of ObjectHandler.