cloudy trunk
Loading...
Searching...
No Matches
KeyAction< V > Class Template Reference

#include <parser.h>

Collaboration diagram for KeyAction< V >:

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 232 of file parser.h.

Constructor & Destructor Documentation

◆ KeyAction()

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

Definition at line 236 of file parser.h.

References m_action, and m_keyword.

Member Function Documentation

◆ key()

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

Definition at line 239 of file parser.h.

References m_keyword.

◆ operator()()

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

Definition at line 243 of file parser.h.

References m_action.

Field Documentation

◆ m_action

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

Definition at line 234 of file parser.h.

Referenced by KeyAction(), and operator()().

◆ m_keyword

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

Definition at line 233 of file parser.h.

Referenced by key(), and KeyAction().


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