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 #include <unordered_set>
32 using Storage = std::unordered_set<ObjectHandler, ObjectHandler::Hasher>;
97 Storage::const_iterator
begin()
const;
106 Storage::const_iterator
end()
const;
Handler of CPython object pointers used by Python to handle references counts.
Definition: Python_ObjectHandler.h:71
size_t size() const
Returns the size of this collection.
Storage::const_iterator begin() const
Returns an iterator to the first element of this collection.
std::unordered_set< ObjectHandler, ObjectHandler::Hasher > Storage
Definition of the storage container.
Definition: Python_ObjectHandlersCollection.h:32
ObjectHandlersCollection()
Empty constructor.
ObjectHandler const & registerObject(ObjectHandler const &oh)
Registers a use case represented by an ObjectHandler.
bool isRegistered(ObjectHandler const &oh) const
Returns the registration status of a use case represented by an ObjectHandler.
void unregisterObject(ObjectHandler const &oh)
Unregisters a use case represented by an ObjectHandler.
ObjectHandlersCollection(ObjectHandlersCollection const &)=delete
Copy constructor is deleted.
Collection of ObjectHandler used internally by Python.
Definition: Python_ObjectHandlersCollection.h:27
void clear()
Clears the collection.
ObjectHandlersCollection(ObjectHandlersCollection &&)=delete
Move constructor is deleted.
Storage::const_iterator end() const
Returns an iterator to the past-the-end element of this collection.