21 #include <boost/utility.hpp>
22 #include "raul/SharedPtr.hpp"
23 #include "raul/SRSWQueue.hpp"
24 #include "raul/Deletable.hpp"
25 #include "raul/List.hpp"
46 class Maid : boost::noncopyable
49 explicit Maid(
size_t size);
60 void manage(SharedPtr<Raul::Deletable> ptr);
Something with a virtual destructor.
Definition: Deletable.hpp:29
A realtime safe, (partially) thread safe doubly-linked list.
Definition: List.hpp:42
Explicitly driven garbage collector.
Definition: Maid.hpp:47
void push(Raul::Deletable *obj)
Push a raw pointer to be deleted when cleanup() is called next.
Definition: Maid.hpp:55
void manage(SharedPtr< Raul::Deletable > ptr)
Manage a SharedPtr.
Definition: Maid.cpp:41
void cleanup()
Free all the objects in the queue (passed by push()).
Definition: Maid.cpp:51
bool push(const T &obj)
Push an item onto the back of the SRSWQueue - realtime-safe, not thread-safe.
Definition: SRSWQueue.hpp:130