Public Member Functions

el7::scripting::ValueMap Class Reference

#include <ValueMap.h>

List of all members.

Public Member Functions

 ValueMap (void)
 ~ValueMap (void)
 ValueMap (const ValueMap &rhs)
ValueMapoperator= (const ValueMap &rhs)
void swap (ValueMap &rhs)
Valuefind (const Symbol symbol) const
void join (const Symbol symbol, Value *value)
bool clear (const Symbol symbol)
void clear ()
void for_each (void callback(const Symbol symbol, Value *value, ValueHandler *value_handler), ValueHandler *value_handler)

Detailed Description

Represents a symbol-to-value-map.


Constructor & Destructor Documentation

el7::scripting::ValueMap::ValueMap ( void   ) 

Default constructor.

el7::scripting::ValueMap::~ValueMap ( void   ) 

Destructor.

el7::scripting::ValueMap::ValueMap ( const ValueMap rhs  ) 

Copy constructor.


Member Function Documentation

bool el7::scripting::ValueMap::clear ( const Symbol  symbol  ) 

Removes the given symbol and its corresponding value object.

void el7::scripting::ValueMap::clear (  ) 

Removes all symbols and value objects.

Value * el7::scripting::ValueMap::find ( const Symbol  symbol  )  const

Searches for the value object of a given symbol. If the symbol is not found, the function returns null, a pointer to the value object otherwise.

void el7::scripting::ValueMap::for_each ( void   callbackconst Symbol symbol, Value *value, ValueHandler *value_handler,
ValueHandler value_handler 
)

Performs the specified operation for each of the symbol-value-pairs.

void el7::scripting::ValueMap::join ( const Symbol  symbol,
Value value 
)

Adds a given symbol and its desired value object. If the symbol is already present, its current value object will be replaced.

ValueMap & el7::scripting::ValueMap::operator= ( const ValueMap rhs  ) 

Copy assignment operator.

void el7::scripting::ValueMap::swap ( ValueMap rhs  ) 

Swap operation.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines