ldas-tools-ldasgen  2.6.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Attributes | List of all members
GenericAPI::SymbolMapper Class Referenceabstract

#include <SymbolMapper.hh>

Inheritance diagram for GenericAPI::SymbolMapper:
GenericAPI::TCL::SymbolMapper

Classes

class  info
 

Public Types

enum  arg_type { ARGS_I, ARGS_S, ARGS_NS, ARGS_LS }
 
typedef void(* func_type) (...)
 

Public Member Functions

virtual ~SymbolMapper ()
 

Static Public Member Functions

static void Add (const std::string &Symbol, arg_type Arg, func_type Function)
 
static void OnExit ()
 

Protected Types

typedef LDASTools::AL::unordered_map< std::string, infosymbol_table_type
 

Protected Member Functions

void add (const std::string &Symbol, arg_type Arg, func_type Function)
 
virtual void addSymbol (const std::string &Symbol, arg_type Arg, func_type Function)=0
 
const infolookup (const std::string &Symbol) const
 

Static Protected Attributes

static SymbolMapperm_symbol_mapper
 

Member Typedef Documentation

◆ func_type

typedef void( * GenericAPI::SymbolMapper::func_type) (...)

◆ symbol_table_type

typedef LDASTools::AL::unordered_map< std::string, info > GenericAPI::SymbolMapper::symbol_table_type
protected

Member Enumeration Documentation

◆ arg_type

  • I Integer parameter
  • LS List of string parameters
  • NS Variable name parameter
  • S String parameter
Enumerator
ARGS_I 
ARGS_S 
ARGS_NS 
ARGS_LS 

Constructor & Destructor Documentation

◆ ~SymbolMapper()

virtual GenericAPI::SymbolMapper::~SymbolMapper ( )
virtual

Reimplemented in GenericAPI::TCL::SymbolMapper.

Member Function Documentation

◆ Add()

static void GenericAPI::SymbolMapper::Add ( const std::string &  Symbol,
arg_type  Arg,
func_type  Function 
)
inlinestatic

◆ add()

void GenericAPI::SymbolMapper::add ( const std::string &  Symbol,
arg_type  Arg,
func_type  Function 
)
protected

◆ addSymbol()

virtual void GenericAPI::SymbolMapper::addSymbol ( const std::string &  Symbol,
arg_type  Arg,
func_type  Function 
)
protectedpure virtual

◆ lookup()

const info* GenericAPI::SymbolMapper::lookup ( const std::string &  Symbol) const
protected

◆ OnExit()

static void GenericAPI::SymbolMapper::OnExit ( )
static

Member Data Documentation

◆ m_symbol_mapper

SymbolMapper* GenericAPI::SymbolMapper::m_symbol_mapper
staticprotected

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