Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyAction< V > Class Template Reference

#include <parser.h>

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

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

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


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