9 #ifndef CActionCollection_H
10 #define CActionCollection_H
38 std::deque<CActionPtr> m_actions;
47 CActionCollection(
CAction &a );
51 CActionCollection(const CActionCollection &o );
55 CActionCollection& operator = (const CActionCollection &o );
59 virtual ~CActionCollection();
80 const_iterator
begin()
const {
return m_actions.begin(); }
134 CActionPtr
get(
size_t index);
143 template <
typename T>
147 size_t foundCount = 0;
150 if ( (*it)->GetRuntimeClass()->derivedFrom( class_ID ) )
151 if (foundCount++ == ith)
152 return typename T::SmartPtr(*it);
153 return typename T::SmartPtr();
169 CActionRobotMovement2DPtr getBestMovementEstimation()
const;
189 void eraseByIndex(
const size_t & index);
iterator begin()
Returns a iterator to the first action: this is an example of usage:
EIGEN_STRONG_INLINE iterator end()
const_iterator end() const
Returns a iterator pointing to the end of the list: this is an example of usage:
The virtual base class which provides a unified interface for all persistent objects in MRPT...
EIGEN_STRONG_INLINE iterator begin()
T::SmartPtr getActionByClass(const size_t &ith=0) const
Access to the i'th action of a given class, or a NULL smart pointer if there is no action of that cla...
Declares a class for storing a collection of robot actions.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
TEstimationMethod
A list of posible ways for estimating the content of a CActionRobotMovement2D object.
class BASE_IMPEXP CSerializable
std::deque< CActionPtr >::iterator iterator
You can use CActionCollection::begin to get a iterator to the first element.
std::deque< CActionPtr >::const_iterator const_iterator
You can use CActionCollection::begin to get a iterator to the first element.
Declares a class for storing a robot action.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
size_t size(const MATRIXLIKE &m, int dim)
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
iterator end()
Returns a iterator pointing to the end of the list: this is an example of usage:
Declares a class that represents a Probability Density function (PDF) of a 3D pose ...
A structure that holds runtime class type information.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)