#include <CIntArrayParam.h>
Inheritance diagram for CIntArrayParam:
Public Member Functions | |
CIntArrayParam (const string &rName, unsigned int size, int nDefault=0) | |
largest allowed value for an element of the array. | |
CIntArrayParam (const string &, unsigned int size, int nLow, int nHigh, int nDefault=0) | |
virtual | ~CIntArrayParam () |
CIntArrayParam (const CIntArrayParam &aCIntArrayParam) | |
CIntArrayParam & | operator= (const CIntArrayParam &aCIntArrayParam) |
int | operator== (const CIntArrayParam &aCIntArrayParam) const |
int | operator!= (const CIntArrayParam &rhs) const |
int | getSize () const |
const int * | getValues () const |
bool | getCheckRange () const |
int | getLow () const |
int | getHigh () const |
int & | operator[] (int n) |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValues) |
virtual string | GetParameterFormat () |
void | setRange (int nLow, int nHigh) |
CIntArrayParam (const string &rName, unsigned int size, int nDefault=0) | |
largest allowed value for an element of the array. | |
CIntArrayParam (const string &, unsigned int size, int nLow, int nHigh, int nDefault=0) | |
virtual | ~CIntArrayParam () |
CIntArrayParam (const CIntArrayParam &aCIntArrayParam) | |
CIntArrayParam & | operator= (const CIntArrayParam &aCIntArrayParam) |
int | operator== (const CIntArrayParam &aCIntArrayParam) const |
int | operator!= (const CIntArrayParam &rhs) const |
int | getSize () const |
const int * | getValues () const |
bool | getCheckRange () const |
int | getLow () const |
int | getHigh () const |
int & | operator[] (int n) |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValues) |
virtual string | GetParameterFormat () |
void | setRange (int nLow, int nHigh) |
Protected Member Functions | |
void | setSize (const int am_nSize) |
void | setValues (int *am_aValues) |
void | setCheckRange (const bool am_fCheckRange) |
void | setLow (const int am_nLow) |
void | setHigh (const int am_nHigh) |
void | SetupArray (int nDefault) |
void | CopyArray (const CIntArrayParam &rhs) |
void | SetupStringValue () |
void | setSize (const int am_nSize) |
void | setValues (int *am_aValues) |
void | setCheckRange (const bool am_fCheckRange) |
void | setLow (const int am_nLow) |
void | setHigh (const int am_nHigh) |
void | SetupArray (int nDefault) |
void | CopyArray (const CIntArrayParam &rhs) |
void | SetupStringValue () |
Private Attributes | |
int | m_nSize |
int * | m_aValues |
Size of the array. | |
bool | m_fCheckRange |
Fixed size array for the values. | |
int | m_nLow |
true if range checking is to be enabled. | |
int | m_nHigh |
Smallest allowed value for the parameter. | |
int * | m_aValues |
Size of the array. |
Definition at line 311 of file CIntArrayParam.h.
|
largest allowed value for an element of the array. Constructor: Constructs an array that is not range checked. The array is filled in from a TCL formatted list.
Definition at line 308 of file CIntArrayParam.cpp. References SetupArray(), and SetupStringValue(). |
|
Constructor for a range checked array. Range checking causes modification of the array to fail if the value of the parameter is not in the interval [m_nLow, m_nHigh].
Definition at line 334 of file CIntArrayParam.cpp. References SetupArray(), and SetupStringValue(). |
|
Destructor Definition at line 353 of file CIntArrayParam.cpp. References m_aValues. |
|
Copy construction: Used to build temporary objects e.g. for pass by value function parameters.
Definition at line 365 of file CIntArrayParam.cpp. References CopyArray(), m_fCheckRange, m_nHigh, m_nLow, and m_nSize. |
|
largest allowed value for an element of the array.
|
|
|
|
|
|
|
|
|
|
Protected helper function to copy the array from some other source.
Definition at line 591 of file CIntArrayParam.cpp. References m_aValues, m_nSize, and SetupArray(). Referenced by CIntArrayParam(), and operator=(). |
|
Definition at line 353 of file include/CIntArrayParam.h. References m_fCheckRange. |
|
Definition at line 353 of file CIntArrayParam.h. References m_fCheckRange. |
|
Definition at line 361 of file include/CIntArrayParam.h. References m_nHigh. |
|
Definition at line 361 of file CIntArrayParam.h. References m_nHigh. |
|
Definition at line 357 of file include/CIntArrayParam.h. References m_nLow. |
|
Definition at line 357 of file CIntArrayParam.h. References m_nLow. |
|
Implements CConfigurationParameter. |
|
Implements CConfigurationParameter. Definition at line 562 of file CIntArrayParam.cpp. References m_nSize. |
|
Definition at line 345 of file include/CIntArrayParam.h. References m_nSize. |
|
Definition at line 345 of file CIntArrayParam.h. References m_nSize. |
|
Definition at line 349 of file include/CIntArrayParam.h. References m_aValues. |
|
Definition at line 349 of file CIntArrayParam.h. References m_aValues. |
|
Definition at line 338 of file include/CIntArrayParam.h. References operator==(). |
|
Definition at line 338 of file CIntArrayParam.h. References operator==(). |
|
|
|
Assignment operator. Do a deep copy.
Definition at line 387 of file CIntArrayParam.cpp. References CopyArray(), m_fCheckRange, m_nHigh, m_nLow, and m_nSize. |
|
|
|
Test for functional equality. Functional equality is achieved when all members are equal except the arrays whose contents must be identical. This function is invoked for *this == rhs expressions.
Definition at line 412 of file CIntArrayParam.cpp. References m_aValues, m_fCheckRange, m_nHigh, m_nLow, m_nSize, and CConfigurationParameter::operator==(). Referenced by operator!=(). |
|
|
|
Returns a reference to the corresponding array elemnt. If the index is out of range CRangeError is thrown. This function satisfies attempts to do things like this[i].
Definition at line 447 of file CIntArrayParam.cpp. |
|
Definition at line 378 of file include/CIntArrayParam.h. References m_fCheckRange. |
|
Definition at line 378 of file CIntArrayParam.h. References m_fCheckRange. |
|
Definition at line 386 of file include/CIntArrayParam.h. References m_nHigh. |
|
Definition at line 386 of file CIntArrayParam.h. References m_nHigh. |
|
Definition at line 382 of file include/CIntArrayParam.h. References m_nLow. |
|
Definition at line 382 of file CIntArrayParam.h. References m_nLow. |
|
Definition at line 399 of file include/CIntArrayParam.h. References m_fCheckRange, m_nHigh, and m_nLow. |
|
Definition at line 399 of file CIntArrayParam.h. References m_fCheckRange, m_nHigh, and m_nLow. Referenced by CCAENModule::CCAENModule(), and CCAENV830Module::CCAENV830Module(). |
|
Definition at line 370 of file include/CIntArrayParam.h. References m_nSize. |
|
Definition at line 370 of file CIntArrayParam.h. References m_nSize. |
|
|
|
Protected helper functio to create and initialize the array:
Definition at line 576 of file CIntArrayParam.cpp. References m_aValues, and m_nSize. Referenced by CIntArrayParam(), and CopyArray(). |
|
|
|
Given the current values of the array, sets the string version of the parameter's value. Definition at line 605 of file CIntArrayParam.cpp. References m_aValues, m_nSize, and CConfigurationParameter::setValue(). Referenced by CIntArrayParam(). |
|
Implements CConfigurationParameter. |
|
Sets the array value from a parameter that is assumed to be a well formed Tcl list. This function will fail if:
Implements CConfigurationParameter. Definition at line 481 of file CIntArrayParam.cpp. References CConfigurationParameter::getSwitch(), m_aValues, m_fCheckRange, m_nHigh, and m_nSize. |
|
Definition at line 374 of file include/CIntArrayParam.h. References m_aValues. |
|
Definition at line 374 of file CIntArrayParam.h. References m_aValues. |
|
Size of the array.
Definition at line 317 of file include/CIntArrayParam.h. |
|
Size of the array.
Definition at line 317 of file CIntArrayParam.h. Referenced by CopyArray(), getValues(), operator==(), operator[](), SetupArray(), SetupStringValue(), SetValue(), setValues(), and ~CIntArrayParam(). |
|
Fixed size array for the values.
Definition at line 318 of file include/CIntArrayParam.h. Referenced by CIntArrayParam(), getCheckRange(), operator=(), operator==(), setCheckRange(), setRange(), and SetValue(). |
|
Smallest allowed value for the parameter.
Definition at line 320 of file include/CIntArrayParam.h. Referenced by CIntArrayParam(), getHigh(), operator=(), operator==(), setHigh(), setRange(), and SetValue(). |
|
true if range checking is to be enabled.
Definition at line 319 of file include/CIntArrayParam.h. Referenced by CIntArrayParam(), getLow(), operator=(), operator==(), setLow(), and setRange(). |
|
Definition at line 316 of file include/CIntArrayParam.h. Referenced by CIntArrayParam(), CopyArray(), GetParameterFormat(), getSize(), operator=(), operator==(), operator[](), setSize(), SetupArray(), SetupStringValue(), and SetValue(). |