Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

command_chain Class Reference

A class representing a list of commands to perform. These commands are formed from the command structure. More...

#include <command_chain.h>

Inheritance diagram for command_chain:

chain

Public Member Functions

 command_chain (void)
bool append (const command &)
 append a command structure.

bool append (const pose &ipose, foo f, void *d)
 Append a pose and function.

const command serve (void)
 Returns next motion to be executed on list.

command operator[] (int) const
 Accessor operator.

void clear (void)
 Resets the list and command execution index.

void set (int)
 Sets the command execution index value.

int size () const
 Returns current size of structure.

int execute () const
 Returns the current index value.


Protected Attributes

int _top
int _next

Private Attributes

command _command_chain [COMMAND_CHAIN_MAX]

Friends

class mission_profile

Detailed Description

A class representing a list of commands to perform. These commands are formed from the command structure.


Constructor & Destructor Documentation

command_chain void   ) 
 


Member Function Documentation

bool append const pose ipose,
foo  f,
void *  d
 

Append a pose and function.

bool append const command  ) 
 

append a command structure.

void clear void   )  [inherited]
 

Resets the list and command execution index.

int execute  )  const [inherited]
 

Returns the current index value.

command operator[] int   )  const
 

Accessor operator.

const command serve void   ) 
 

Returns next motion to be executed on list.

void set int   )  [inherited]
 

Sets the command execution index value.

int size  )  const [inherited]
 

Returns current size of structure.


Friends And Related Function Documentation

friend class mission_profile [friend, inherited]
 


Field Documentation

command _command_chain[COMMAND_CHAIN_MAX] [private]
 

int _next [protected, inherited]
 

int _top [protected, inherited]
 


Generated on Mon Oct 8 19:32:24 2007 for OOMRM Mapping API by doxygen1.3