|
#include <CParams.h>
Public Member Functions | |
| CParamList () | |
| Default constructor. | |
| ~CParamList () | |
| Destructor. | |
| void | clear () |
| Removes all the parameters from the list. | |
| CParam * | find (const char *paramName) |
| Returns parameter by name. | |
| void | remove (uint32_t ndx) |
| Removes a parameter from the list and from the memory. | |
| CParam & | operator[] (uint32_t index) const |
| Parameter access by index. | |
| CParam & | operator[] (const char *paramName) const |
| Parameter access by name. | |
| CParam & | operator[] (const std::string ¶mName) const |
| Parameter access by name. | |
| uint32_t | size () const |
| Returns parameter count. | |
| void | rewind () |
| Sets the parameter stream iterator to the first parameter. | |
| void | enumerate (CParamVector ¶ms) |
| Returns the parameter pointers. | |
| CParam & | next () |
Protected Member Functions | |
| void | add (CParam *item) |
| Adds a parameter to the list. | |
Friends | |
| class | CQuery |
Has internal index to speed up the parameter search by name.
| void sptk::CParamList::clear | ( | ) |
Removes all the parameters from the list.
Releases any allocated resources
| void sptk::CParamList::enumerate | ( | CParamVector & | params | ) |
Returns the parameter pointers.
A parameter is included for every parameter position in the query.
| params | CParamVector&, parameters vector |
| CParam* sptk::CParamList::find | ( | const char * | paramName | ) |
Returns parameter by name.
If the parameter isn't found, returns 0
| paramName | const char *, parameter name |
| CParam& sptk::CParamList::next | ( | ) |
Sets the parameter stream iterator to the next parameter. After the last parameter is reached, the iterator is switch to the first parameter
| CParam& sptk::CParamList::operator[] | ( | const std::string & | paramName | ) | const [inline] |
Parameter access by name.
| paramName | const std::string&, parameter name |
| CParam& sptk::CParamList::operator[] | ( | const char * | paramName | ) | const |
Parameter access by name.
| paramName | const char *, parameter name |
| CParam& sptk::CParamList::operator[] | ( | uint32_t | index | ) | const [inline] |
Parameter access by index.
| index | uint32_t, parameter index |
| void sptk::CParamList::remove | ( | uint32_t | ndx | ) |
Removes a parameter from the list and from the memory.
| ndx | uint32_t, parameter index in the list |