Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BackCallerVector< _Tp, _Alloc > Class Template Reference

Establishes for some methods the notifications for registered Callbackable instances (use addCallbackable(...)). More...

#include <backcallervector.h>

Inheritance diagram for BackCallerVector< _Tp, _Alloc >:
Collaboration diagram for BackCallerVector< _Tp, _Alloc >:

Public Types

typedef std::vector< _Tp,
_Alloc >::iterator 
iterator
 
- Public Types inherited from BackCaller
typedef unsigned long CallbackableType
 

Public Member Functions

 BackCallerVector ()
 
virtual ~BackCallerVector ()
 
void push_back (const _Tp &i)
 
iterator erase (iterator pos)
 
void pop_back ()
 
void clear ()
 
- Public Member Functions inherited from BackCaller
 BackCaller ()
 
virtual ~BackCaller ()
 
virtual void addCallbackable (Callbackable *callbackableInstance, CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
 Adds a Callbackable instance to this caller instance. More...
 
virtual void removeCallbackable (Callbackable *callbackableInstance, CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
 Removes a Callbackable instance from this caller instance. More...
 
virtual void removeAllCallbackables (CallbackableType type)
 Removes all Callbackable instances from this caller instance. More...
 
virtual void callBack (CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
 Calls all registered callbackable classes of the determined type. More...
 
virtual void callBackQMP (CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
 Calls all registered callbackable classes of the determined type. More...
 

Static Public Attributes

static const CallbackableType BACKCALLER_VECTOR_MODIFIED = 10219
 Indicates that the list/vector has been modified, a new instance was either added or removed. More...
 
static const CallbackableType BACKCALLER_VECTOR_BEING_DELETED = 10220
 Indicates that the list is being deleted. More...
 
- Static Public Attributes inherited from BackCaller
static const CallbackableType DEFAULT_CALLBACKABLE_TYPE = 0
 This is the default Callbackable type. More...
 

Detailed Description

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
class BackCallerVector< _Tp, _Alloc >

Establishes for some methods the notifications for registered Callbackable instances (use addCallbackable(...)).

Warning
Only the following methods are currently supported: push_back(...), pop_back(), erase() and clear()! You can use iterators with the limitation to not delete or insert.

Member Typedef Documentation

typedef std::vector<_Tp,_Alloc>::iterator iterator

Constructor & Destructor Documentation

BackCallerVector ( )
inline
virtual ~BackCallerVector ( )
inlinevirtual

Member Function Documentation

void clear ( )
inline
iterator erase ( iterator  pos)
inline
void pop_back ( )
inline
void push_back ( const _Tp &  i)
inline

Member Data Documentation

const CallbackableType BACKCALLER_VECTOR_BEING_DELETED = 10220
static

Indicates that the list is being deleted.

const CallbackableType BACKCALLER_VECTOR_MODIFIED = 10219
static

Indicates that the list/vector has been modified, a new instance was either added or removed.


The documentation for this class was generated from the following file: