SML::NUMHASH Class Reference

#include <sml/hash.h>

Inheritance diagram for SML::NUMHASH:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 NUMHASH ()
virtual ~NUMHASH ()
double * GetArray ()
INT32 GetArraySize () const
double GetValue (const MISTRING &indx, bool bConstructIfEmpty) const
ERRVALUE ResizeArray (INT32 numitems, double fillval, bool bKeepExisting=true)
void SetValue (const MISTRING &indx, double val)

Private Member Functions

virtual void v_Clear ()
virtual void v_Delete (const MISTRING &)
virtual bool v_Exists (const MISTRING &) const
virtual const CLASSv_GetClass () const
virtual MISTRINGLISTv_GetKeyList () const
virtual int v_GetNumItems () const

Private Attributes

PRIVDATA * m_priv

Constructor & Destructor Documentation

SML::NUMHASH::NUMHASH (  ) 
virtual SML::NUMHASH::~NUMHASH (  )  [virtual]

Member Function Documentation

double* SML::NUMHASH::GetArray (  ) 

Get the hash as an array.

This will ONLY contain the values which were populated using integer indexes. Anything filled in using a non-integer or non-numeric key will not be in this list. This allows a numeric hash to be passed to functions that want a one-dimensional array.

INT32 SML::NUMHASH::GetArraySize (  )  const

Get the hash as an array.

This will ONLY contain the values which were populated using integer indexes. Anything filled in using a non-integer or non-numeric key will not be in this list. This allows a numeric hash to be passed to functions that want a one-dimensional array.

double SML::NUMHASH::GetValue ( const MISTRING indx,
bool  bConstructIfEmpty 
) const
ERRVALUE SML::NUMHASH::ResizeArray ( INT32  numitems,
double  fillval,
bool  bKeepExisting = true 
)

Resize the array.

Note: this will clear any non-integer index entries from the hash.

Parameters:
numitems # of desired entries (starting at 0)
fillval Value to initialize array to
bKeepExisting true to keep existing data
void SML::NUMHASH::SetValue ( const MISTRING indx,
double  val 
)
virtual void SML::NUMHASH::v_Clear (  )  [private, virtual]

Implements SML::HASH.

virtual void SML::NUMHASH::v_Delete ( const MISTRING  )  [private, virtual]

Implements SML::HASH.

virtual bool SML::NUMHASH::v_Exists ( const MISTRING  )  const [private, virtual]

Implements SML::HASH.

virtual const CLASS* SML::NUMHASH::v_GetClass (  )  const [private, virtual]

Implements SML::HASH.

virtual MISTRINGLIST* SML::NUMHASH::v_GetKeyList (  )  const [private, virtual]

Implements SML::HASH.

virtual int SML::NUMHASH::v_GetNumItems (  )  const [private, virtual]

Implements SML::HASH.


Member Data Documentation

PRIVDATA* SML::NUMHASH::m_priv [private]

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

Generated on Sun Oct 7 21:39:16 2012 for TNTsdk 2012 by  doxygen 1.6.1