KeyAction< V > Class Template Reference

#include <parser.h>

Collaboration diagram for KeyAction< V >:
[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 225 of file parser.h.


Constructor & Destructor Documentation

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

Definition at line 229 of file parser.h.


Member Function Documentation

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

Definition at line 232 of file parser.h.

References KeyAction< V >::m_keyword.

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

Definition at line 236 of file parser.h.

References KeyAction< V >::m_action.


Field Documentation

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

Definition at line 227 of file parser.h.

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

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

Definition at line 226 of file parser.h.

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


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1