19 #ifndef ObjectManager_h 20 #define ObjectManager_h 26 #include <coil/Mutex.h> 27 #include <coil/Guard.h> 48 template <
typename Identifier,
typename Object,
typename Predicate>
202 Object*
find(
const Identifier&
id)
const 204 ObjectVectorConstItr it;
247 template <
class Pred>
261 template <
class Pred>
290 #endif // ObjectManager_h std::vector< Object * > getObjects() const
Get a list of obejects that are registerd.
ObjectManager()
Constructor.
~ObjectManager()
Destructor.
Objects m_objects
The list of registered objects.
Class for managing objects.
bool registerObject(Object *obj)
Register the specified object.
std::vector< Object * > ObjectVector
Object * unregisterObject(const Identifier &id)
Unregister the specified object.
Object * find(const Identifier &id) const
Find the object.
Pred for_each(Pred p)
Functor for searching object.
coil::Guard< coil::Mutex > Guard
The structure for object management.
ObjectVector::const_iterator ObjectVectorConstItr
Pred for_each(Pred p) const
Functor for searching object.
ObjectVector::iterator ObjectVectorItr
Functor for_each(CorbaSequence &seq, Functor f)
Apply the functor to all CORBA sequence elements.