19 #ifndef RTC_OBJECTMANAGER_H 20 #define RTC_OBJECTMANAGER_H 50 template <
typename Identifier,
typename Object,
typename Predicate>
200 Object*
find(
const Identifier&
id)
const 245 template <
class Pred>
259 template <
class Pred>
289 #endif // RTC_OBJECTMANAGER_H std::vector< RTC::PortBase *> ObjectVector
Definition: ObjectManager.h:54
std::vector< Object * > getObjects() const
Get a list of obejects that are registerd.
Definition: ObjectManager.h:232
ObjectVector _obj
Definition: ObjectManager.h:278
Objects m_objects
The list of registered objects.
Definition: ObjectManager.h:287
~ObjectManager()=default
Destructor.
Class for managing objects.
Definition: ObjectManager.h:51
bool registerObject(Object *obj)
Register the specified object.
Definition: ObjectManager.h:116
Object * unregisterObject(const Identifier &id)
Unregister the specified object.
Definition: ObjectManager.h:156
ObjectManager()=default
Constructor.
Object * find(const Identifier &id) const
Find the object.
Definition: ObjectManager.h:200
Pred for_each(Pred p)
Functor for searching object.
Definition: ObjectManager.h:246
typename ObjectVector::iterator ObjectVectorItr
Definition: ObjectManager.h:55
The structure for object management.
Definition: ObjectManager.h:274
std::mutex _mutex
Definition: ObjectManager.h:277
typename ObjectVector::const_iterator ObjectVectorConstItr
Definition: ObjectManager.h:56
Pred for_each(Pred p) const
Functor for searching object.
Definition: ObjectManager.h:260
Functor for_each(CorbaSequence &seq, Functor f)
Apply the functor to all CORBA sequence elements.
Definition: CORBA_SeqUtil.h:98