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