cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes
KeyAction< V > Class Template Reference

#include <parser.h>

Collaboration diagram for KeyAction< V >:
Collaboration graph
[legend]

Public Member Functions

 KeyAction (const char *keyword, const V &action)
 
const char * key (void) const
 
void operator() (realnum *v) const
 

Private Attributes

const char *const m_keyword
 
m_action
 

Detailed Description

template<typename V>
class KeyAction< V >

Links text string to an action on a specified argument

Definition at line 233 of file parser.h.

Constructor & Destructor Documentation

template<typename V>
KeyAction< V >::KeyAction ( const char *  keyword,
const V &  action 
)
inline

Definition at line 237 of file parser.h.

Member Function Documentation

template<typename V>
const char* KeyAction< V >::key ( void  ) const
inline

Definition at line 240 of file parser.h.

References KeyAction< V >::m_keyword.

template<typename V>
void KeyAction< V >::operator() ( realnum v) const
inline

Definition at line 244 of file parser.h.

References KeyAction< V >::m_action.

Field Documentation

template<typename V>
V KeyAction< V >::m_action
private

Definition at line 235 of file parser.h.

Referenced by KeyAction< V >::operator()().

template<typename V>
const char* const KeyAction< V >::m_keyword
private

Definition at line 234 of file parser.h.

Referenced by KeyAction< V >::key().


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