Go to the documentation of this file.
19 #ifndef RTC_OBJECTMANAGER_H
20 #define RTC_OBJECTMANAGER_H
50 template <
typename Identifier,
typename Object,
typename Predicate>
202 Object*
find(
const Identifier&
id)
const
247 template <
class Pred>
261 template <
class Pred>
290 #endif // RTC_OBJECTMANAGER_H
Mutex class.
Definition: Mutex.h:40
Pred for_each(Pred p) const
Functor for searching object.
Definition: ObjectManager.h:262
ObjectVector _obj
Definition: ObjectManager.h:279
ObjectVector::const_iterator ObjectVectorConstItr
Definition: ObjectManager.h:56
bool registerObject(Object *obj)
Register the specified object.
Definition: ObjectManager.h:118
Objects m_objects
The list of registered objects.
Definition: ObjectManager.h:288
Class for managing objects.
Definition: ObjectManager.h:51
coil::Guard< coil::Mutex > Guard
Definition: ObjectManager.h:58
ObjectManager()
Constructor.
Definition: ObjectManager.h:74
std::vector< Object * > ObjectVector
Definition: ObjectManager.h:54
Functor for_each(CorbaSequence &seq, Functor f)
Apply the functor to all CORBA sequence elements.
Definition: CORBA_SeqUtil.h:98
The structure for object management.
Definition: ObjectManager.h:276
Pred for_each(Pred p)
Functor for searching object.
Definition: ObjectManager.h:248
std::vector< Object * > getObjects() const
Get a list of obejects that are registerd.
Definition: ObjectManager.h:234
Object * find(const Identifier &id) const
Find the object.
Definition: ObjectManager.h:202
Object * unregisterObject(const Identifier &id)
Unregister the specified object.
Definition: ObjectManager.h:158
coil::Mutex Mutex
Definition: ObjectManager.h:57
ObjectVector::iterator ObjectVectorItr
Definition: ObjectManager.h:55
Mutex _mutex
Definition: ObjectManager.h:278
~ObjectManager(void)
Destructor.
Definition: ObjectManager.h:91