Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DefaultNumberingPolicy Class Reference

Class for naming policy management when creating objects. More...

#include <NumberingPolicy.h>

Inheritance diagram for DefaultNumberingPolicy:
Inheritance graph
[legend]

Public Member Functions

 DefaultNumberingPolicy ()
 Constructor. More...
 
virtual std::string onCreate (void *obj)
 Create the name when creating object. More...
 
virtual void onDelete (void *obj)
 Delete the name when deleting object. More...
 
virtual ~DefaultNumberingPolicy (void)
 Destractor. More...
 
- Public Member Functions inherited from NumberingPolicy
virtual ~NumberingPolicy (void)
 Virtual destractor. More...
 

Protected Member Functions

long int find (void *obj)
 Find the object. More...
 

Private Attributes

int m_num
 
std::vector< void * > m_objects
 

Detailed Description

Class for naming policy management when creating objects.

This is a class to manage the naming policy when creating objects.

Since
0.4.0

Definition at line 149 of file NumberingPolicy.h.

Constructor & Destructor Documentation

DefaultNumberingPolicy::DefaultNumberingPolicy ( )
inline

Constructor.

Constructor

Definition at line 168 of file NumberingPolicy.h.

virtual DefaultNumberingPolicy::~DefaultNumberingPolicy ( void  )
inlinevirtual

Destractor.

Definition at line 181 of file NumberingPolicy.h.

Member Function Documentation

long int DefaultNumberingPolicy::find ( void *  obj)
protected

Find the object.

Find the specified object in the object list and return its index when it is stored.

Parameters
objThe target object for the find
Returns
Object index for storage

Definition at line 78 of file NumberingPolicy.cpp.

std::string DefaultNumberingPolicy::onCreate ( void *  obj)
virtual

Create the name when creating object.

Create the name when creating objects.

Create the name when creating object. Create the name corresponding to the number of generated instances.

Parameters
objThe target object for the name creation
Returns
Names of the created object

Implements NumberingPolicy.

Definition at line 33 of file NumberingPolicy.cpp.

void DefaultNumberingPolicy::onDelete ( void *  obj)
virtual

Delete the name when deleting object.

Delete the name when deleting objects.

Delete the name when deleting object. Substract the generated number of instances when deleting the object.

Parameters
objThe target object for the name delete

Implements NumberingPolicy.

Definition at line 60 of file NumberingPolicy.cpp.

Member Data Documentation

int DefaultNumberingPolicy::m_num
private

Definition at line 262 of file NumberingPolicy.h.

std::vector<void*> DefaultNumberingPolicy::m_objects
private

Definition at line 263 of file NumberingPolicy.h.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:02