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