This class wrapps a vector (array) of Controls and gives its Controls automatic names at construction. More...
#include <ControlArray.hxx>
Public Member Functions | |
| ControlArray () | |
| ControlArray (int size, const std::string &name, Processing *parent) | |
| ControlArray (int size, const std::list< std::string > &names, Processing *parent) | |
| template<typename ProcessingType , typename ValueType > | |
| ControlArray (int size, const std::string &name, ProcessingType *parent, void(ProcessingType::*method)(unsigned, ValueType)) | |
| ~ControlArray () | |
| ControlT & | operator[] (int i) |
| const ControlT & | operator[] (int i) const |
| void | Resize (int size, const std::string &name, Processing *parent) |
| void | Resize (int size, const std::list< std::string > &names, Processing *parent) |
| template<typename ProcessingType , typename ValueType > | |
| void | Resize (int size, const std::string &name, ProcessingType *parent, void(ProcessingType::*method)(unsigned, ValueType)) |
| void | Append (int size, const std::string &names, Processing *parent) |
| void | Append (int size, const std::list< std::string > &names, Processing *parent) |
| int | Size () const |
| void | Clear () |
Protected Member Functions | |
| void | Shrink (int size) |
This class wrapps a vector (array) of Controls and gives its Controls automatic names at construction.
Definition at line 41 of file ControlArray.hxx.
| CLAM::ControlArray< ControlT >::ControlArray | ( | ) | [inline] |
Definition at line 47 of file ControlArray.hxx.
| CLAM::ControlArray< ControlT >::ControlArray | ( | int | size, | |
| const std::string & | name, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 48 of file ControlArray.hxx.
| CLAM::ControlArray< ControlT >::ControlArray | ( | int | size, | |
| const std::list< std::string > & | names, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 51 of file ControlArray.hxx.
| CLAM::ControlArray< ControlT >::ControlArray | ( | int | size, | |
| const std::string & | name, | |||
| ProcessingType * | parent, | |||
| void(ProcessingType::*)(unsigned, ValueType) | method | |||
| ) | [inline] |
Definition at line 57 of file ControlArray.hxx.
| CLAM::ControlArray< ControlT >::~ControlArray | ( | ) | [inline] |
Definition at line 62 of file ControlArray.hxx.
| void CLAM::ControlArray< ControlT >::Append | ( | int | size, | |
| const std::list< std::string > & | names, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 143 of file ControlArray.hxx.
References CLAM::ControlArray< ControlT >::Resize(), and CLAM::ControlArray< ControlT >::Size().
| void CLAM::ControlArray< ControlT >::Append | ( | int | size, | |
| const std::string & | names, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 136 of file ControlArray.hxx.
References CLAM::ControlArray< ControlT >::Resize(), and CLAM::ControlArray< ControlT >::Size().
| void CLAM::ControlArray< ControlT >::Clear | ( | ) | [inline] |
Definition at line 92 of file ControlArray.hxx.
Referenced by CLAM::ControlTraceReaderConfig::DefaultInit(), and CLAM::ControlArray< FloatInControl >::~ControlArray().
| const ControlT& CLAM::ControlArray< ControlT >::operator[] | ( | int | i | ) | const [inline] |
Definition at line 65 of file ControlArray.hxx.
| ControlT& CLAM::ControlArray< ControlT >::operator[] | ( | int | i | ) | [inline] |
Definition at line 64 of file ControlArray.hxx.
| void CLAM::ControlArray< ControlT >::Resize | ( | int | size, | |
| const std::string & | name, | |||
| ProcessingType * | parent, | |||
| void(ProcessingType::*)(unsigned, ValueType) | method | |||
| ) | [inline] |
Definition at line 70 of file ControlArray.hxx.
| void CLAM::ControlArray< ControlT >::Resize | ( | int | size, | |
| const std::list< std::string > & | names, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 118 of file ControlArray.hxx.
References CLAM_ASSERT, and CLAM::ControlArray< ControlT >::Shrink().
| void CLAM::ControlArray< ControlT >::Resize | ( | int | size, | |
| const std::string & | name, | |||
| Processing * | parent | |||
| ) | [inline] |
Definition at line 99 of file ControlArray.hxx.
References CLAM::ControlArray< ControlT >::Shrink().
Referenced by CLAM::ControlArray< ControlT >::Append(), CLAM::Control2Data::ConcreteConfigure(), and CLAM::ControlArray< FloatInControl >::ControlArray().
| void CLAM::ControlArray< ControlT >::Shrink | ( | int | size | ) | [inline, protected] |
Definition at line 151 of file ControlArray.hxx.
References CLAM_ASSERT.
Referenced by CLAM::ControlArray< FloatInControl >::Clear(), CLAM::ControlArray< ControlT >::Resize(), and CLAM::ControlArray< FloatInControl >::Resize().
| int CLAM::ControlArray< ControlT >::Size | ( | ) | const [inline] |
Definition at line 90 of file ControlArray.hxx.
Referenced by CLAM::ControlArray< ControlT >::Append().
1.6.3