19 #ifndef RTC_OBJECTMANAGER_H 20 #define RTC_OBJECTMANAGER_H 28 #include <coil/Mutex.h> 29 #include <coil/Guard.h> 50 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 // RTC_OBJECTMANAGER_H
Object * find(const Identifier &id) const
Find the object.
ObjectManager()
Constructor.
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.
~ObjectManager(void)
Destructor.
Pred for_each(Pred p)
Functor for searching object.
coil::Guard< coil::Mutex > Guard
ObjectVector::const_iterator ObjectVectorConstItr
std::vector< Object * > getObjects() const
Get a list of obejects that are registerd.
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.