RobWorkProject  24.5.15-
Public Types | Public Member Functions | List of all members
Target< T > Class Template Reference

Template class implementing Target. More...

#include <Target.hpp>

Inherits TargetBase.

Public Types

typedef rw::core::Ptr< Target< T > > Ptr
 smart pointer type to this class
 
- Public Types inherited from TargetBase
typedef rw::core::Ptr< TargetBasePtr
 smart pointer type to this class
 
- Public Types inherited from Entity
typedef rw::core::Ptr< EntityPtr
 smart pointer type to this class
 

Public Member Functions

 Target (const T &value)
 Construct Target with value value. More...
 
T & get ()
 Returns the value of the target. More...
 
const T & get () const
 Returns the value of the target. More...
 
rw::core::Ptr< Target< T > > clone ()
 Make a copy of the target. More...
 
- Public Member Functions inherited from TargetBase
 TargetBase (int targetType=-1)
 Constructs TargetBase with a given type. More...
 
virtual ~TargetBase ()
 Destructor.
 
Type targetType ()
 Returns the type of target.
 
template<class T >
T & getValue ()
 Returns the value of the target. More...
 
- Public Member Functions inherited from Entity
 Entity (EntityType type, const std::string &id="")
 Constructs an Entity with a given type,. More...
 
virtual ~Entity ()
 Destructor.
 
rw::core::PropertyMapgetPropertyMap ()
 Returns reference to rw::core::PropertyMap associated with the Entity. More...
 
const rw::core::PropertyMapgetPropertyMap () const
 Returns reference to rw::core::PropertyMap associated with the Entity. More...
 
void setPropertyMap (const rw::core::PropertyMap &propertymap)
 Sets the content of the propertymap. More...
 
int getIndex () const
 Returns index specifying the position of the Entity in a Task. More...
 
void setIndex (int index)
 Sets the order index of the Entity. More...
 
virtual EntityType entityType () const
 Returns the type of Entity. More...
 
void setId (const std::string &id)
 Set the id for the entity. More...
 
const std::string & getId () const
 Get the id of the entity. More...
 
template<class T >
cast ()
 Method which can be used to explicitly and safely casting an Entity. More...
 

Additional Inherited Members

- Protected Attributes inherited from TargetBase
Type _targetType
 The type of the target.
 
- Protected Attributes inherited from Entity
rw::core::PropertyMap _properties
 Properties of entity.
 
EntityType _entityType
 The type of entity.
 
int _index
 The index of the entity.
 
std::string _id
 The id of the entity.
 

Detailed Description

template<class T>
class rwlibs::task::Target< T >

Template class implementing Target.

Constructor & Destructor Documentation

◆ Target()

Target ( const T &  value)
inline

Construct Target with value value.

Parameters
value[in] Value of target

Member Function Documentation

◆ clone()

rw::core::Ptr<Target<T> > clone ( )
inline

Make a copy of the target.

Returns
new identical target.

◆ get() [1/2]

T& get ( )
inline

Returns the value of the target.

Returns
Value of target

◆ get() [2/2]

const T& get ( ) const
inline

Returns the value of the target.

Returns
Value of target

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