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

function_list Class Reference

Helper class for populating function to execute at a waypoint etc. More...

#include <function_list.h>


Public Member Functions

 function_list (void)
foo function (uint8 fn) const
 Return pointer to function number fn.

void * data (uint8 fn) const
 Return pointer to data provided.

bool function (foo f, void *datum, uint8 fn)
 Assign callback function f to slot fn with pointer to data if provided. Returns false if fn is outside range of table.


Private Attributes

foo _function [FOO_MAX]
uint8 _free [FOO_MAX]
void * _data [FOO_MAX]


Detailed Description

Helper class for populating function to execute at a waypoint etc.

function_list stores a series of functions and data to pass to the function. This is used as the activity to perform at a waypoint in remote_command_chain.


Constructor & Destructor Documentation

function_list void   ) 
 


Member Function Documentation

void* data uint8  fn  )  const
 

Return pointer to data provided.

bool function foo  f,
void *  datum,
uint8  fn
 

Assign callback function f to slot fn with pointer to data if provided. Returns false if fn is outside range of table.

foo function uint8  fn  )  const
 

Return pointer to function number fn.


Field Documentation

void* _data[FOO_MAX] [private]
 

uint8 _free[FOO_MAX] [private]
 

foo _function[FOO_MAX] [private]
 


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