Wolframe, 0.0.3

_Wolframe::db::vm::SubroutineFrame Class Reference

Structure for addressing the parameters passed to a subroutine by name. More...

#include <subroutineFrame.hpp>

Public Member Functions

 SubroutineFrame ()
 Default constructor. More...
 
 SubroutineFrame (const std::vector< std::string > &paramnames_)
 Constructor. More...
 
 SubroutineFrame (const SubroutineFrame &o)
 Copy constructor. More...
 
void clear ()
 Clear current subroutine frame (start initialization) More...
 
void init (const std::vector< std::string > &paramnames_)
 Initialize parameter names by the parameters defined for a subroutine. More...
 
void push (const types::Variant &p)
 Push a parameter value (in the order of the parameter names) More...
 
ValueTupleSetR getParameters () const
 Get the parameters of a called subroutine as value tuple set. More...
 

Private Attributes

std::vector< std::string > m_paramnames
 parameter names More...
 
std::vector< types::Variantm_paramvalues
 parameter values (parallel array to m_paramnames) More...
 

Detailed Description

Structure for addressing the parameters passed to a subroutine by name.

Constructor & Destructor Documentation

_Wolframe::db::vm::SubroutineFrame::SubroutineFrame ( )
inline

Default constructor.

_Wolframe::db::vm::SubroutineFrame::SubroutineFrame ( const std::vector< std::string > &  paramnames_)
inlineexplicit

Constructor.

_Wolframe::db::vm::SubroutineFrame::SubroutineFrame ( const SubroutineFrame o)
inline

Copy constructor.

Member Function Documentation

void _Wolframe::db::vm::SubroutineFrame::clear ( )
inline

Clear current subroutine frame (start initialization)

ValueTupleSetR _Wolframe::db::vm::SubroutineFrame::getParameters ( ) const
inline

Get the parameters of a called subroutine as value tuple set.

Returns
the value tuple set of the parameters
void _Wolframe::db::vm::SubroutineFrame::init ( const std::vector< std::string > &  paramnames_)
inline

Initialize parameter names by the parameters defined for a subroutine.

void _Wolframe::db::vm::SubroutineFrame::push ( const types::Variant p)
inline

Push a parameter value (in the order of the parameter names)

Member Data Documentation

std::vector<std::string> _Wolframe::db::vm::SubroutineFrame::m_paramnames
private

parameter names

std::vector<types::Variant> _Wolframe::db::vm::SubroutineFrame::m_paramvalues
private

parameter values (parallel array to m_paramnames)


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