Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

AssociativeArray Class Reference

AssociativeArray implements Associative Array variables. More...

#include <AssociativeArray.h>

Inheritance diagram for AssociativeArray:

Variable List of all members.

Public Member Functions

 AssociativeArray (const std::string &name, const short keyType, const short valueType)
 ~AssociativeArray ()
 AssociativeArray (const AssociativeArray &s)
AssociativeArrayoperator= (const AssociativeArray &s)
const std::string get (void) const
 Returns a std::string representation of the Associative Array.
const std::string getValueType () const
 Returns a string representation of the value type.
const std::string getVariableType () const
void insert (const short keyType, const std::string key, const short valueType, const std::string value)
 Inserts a key-value pair into the Associative Array.
const std::string getKeyType () const
 Returns a string representation of the key type.

Private Member Functions

bool _keyIsValid (Data *, const std::string key)

Private Attributes

std::map< Data *, Data *,
compare
_map
short _keyType

Friends

bool operator== (const AssociativeArray &a, const AssociativeArray &b)

Detailed Description

AssociativeArray implements Associative Array variables.

Associative Array variables are strongly typed. Key values cannot be set to missing. Ranges and Approximations are not allowed as key values. Keys are sorted alphanumerically depending on the Data type.


Constructor & Destructor Documentation

AssociativeArray::AssociativeArray const std::string &  name,
const short  keyType,
const short  valueType
[inline]
 

AssociativeArray::~AssociativeArray  )  [inline]
 

AssociativeArray::AssociativeArray const AssociativeArray s  )  [inline]
 


Member Function Documentation

bool AssociativeArray::_keyIsValid Data ,
const std::string  key
[private]
 

const std::string AssociativeArray::get void   )  const [virtual]
 

Returns a std::string representation of the Associative Array.

Implements Variable.

const std::string AssociativeArray::getKeyType  )  const
 

Returns a string representation of the key type.

const std::string AssociativeArray::getValueType  )  const [virtual]
 

Returns a string representation of the value type.

Implements Variable.

const std::string AssociativeArray::getVariableType  )  const [inline, virtual]
 

Implements Variable.

void AssociativeArray::insert const short  keyType,
const std::string  key,
const short  valueType,
const std::string  value
 

Inserts a key-value pair into the Associative Array.

AssociativeArray & AssociativeArray::operator= const AssociativeArray s  ) 
 


Friends And Related Function Documentation

bool operator== const AssociativeArray a,
const AssociativeArray b
[friend]
 


Member Data Documentation

short AssociativeArray::_keyType [private]
 

Data type of the key

std::map<Data*,Data*,compare> AssociativeArray::_map [private]
 

Stores key-value pairs


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4