Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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

◆ KeyAction()

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

References m_action, and m_keyword.

Member Function Documentation

◆ key()

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

References m_keyword.

◆ operator()()

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

References m_action.

Member Data Documentation

◆ m_action

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

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

◆ m_keyword

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

Referenced by key(), and KeyAction().


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