IntegerVector Class Reference
integer vector variable More...
#include <IntegerVector.h>
Inheritance diagram for IntegerVector:
Public Member Functions | |
IntegerVector (const std::string &tag, const std::string &description, int count, int value, Persistent *parent=nullptr) | |
IntegerVector (IntegerVector &&other) | |
move constructor More... | |
IntegerVector & | operator= (IntegerVector &&other) |
move assignment More... | |
const std::string & | type () const override |
Public Member Functions inherited from TypeVector< int > | |
TypeVector (const std::string &tag, const std::string &description, Persistent *parent, int count, const int &value) | |
main constructor More... | |
TypeVector (TypeVector &&other) | |
move constructor More... | |
TypeVector & | operator= (TypeVector &&other) |
move assignment More... | |
int & | operator[] (std::size_t index) |
const int & | at (std::size_t index) const |
std::size_t | size (void) const |
virtual void | resize (std::size_t count) |
resizes the number of elements contained to count More... | |
void | set (const int &value) |
sets the value for all elements More... | |
Public Member Functions inherited from Type< std::vector< int > > | |
Type (const std::string &tag, const std::string &description, Persistent *parent, const std::vector< int > &value) | |
main constructor More... | |
Type (Type &&other) | |
move constructor More... | |
Type & | operator= (Type &&other) |
move assignment More... | |
std::vector< int > & | value (void) |
Type value getter. More... | |
const std::vector< int > & | value (void) const |
bool | operator!= (const Type &rhs) const |
bool | operator== (const Type &rhs) const |
Public Member Functions inherited from Item | |
Item (const Item &other) | |
copy constructor copies all elements but parent which is set to nullptr More... | |
Item & | operator= (const Item &other) |
copy assignment operator copies all elements but parent which is set to nullptr More... | |
Item (const std::string &tag, const std::string &description, Persistent *parent) | |
Item (Item &&other) | |
move constructor More... | |
Item & | operator= (Item &&other) |
move assignment operator More... | |
virtual | ~Item () |
const std::string & | tag () const |
const std::string & | description () const |
std::string | fullTag () const |
const Persistent * | parent () const |
virtual const std::string & | type () const =0 |
void | setTag (const std::string &tag) |
void | setDescription (const std::string &description) |
void | setWideTag (const std::wstring &tag) |
wide-character variant, More... | |
void | setWideDescription (const std::wstring &description) |
wide-character variant, More... | |
bool | operator!= (const Item &rhs) const |
bool | operator== (const Item &rhs) const |
Additional Inherited Members | |
Public Types inherited from Type< std::vector< int > > | |
typedef std::vector< int > | ValueType |
name the value type to make it possible for function templates acting on Type<T> to access T properties and methods More... | |
Protected Attributes inherited from Type< std::vector< int > > | |
std::vector< int > | value_ |
Protected Attributes inherited from Item | |
Persistent * | parent_ |
pointer to the parent Persistent; set to this by the constructor if Item is self-standing or a root Persistent of a tree More... | |
Detailed Description
integer vector variable
used for vector configuration parameters
#include <libpf/persistency/IntegerVector.h>
- Remarks
- Warning
- Thread safe:
- Extendable:
- Platform dependencies:
Constructor & Destructor Documentation
◆ IntegerVector() [1/2]
IntegerVector::IntegerVector | ( | const std::string & | tag, |
const std::string & | description, | ||
int | count, | ||
int | value, | ||
Persistent * | parent = nullptr |
||
) |
main constructor
- Parameters
-
tag UTF-8 encoded human-readable label, unique among siblings description UTF-8 encoded description count number of elements value initialization value for all elements parent pointer to the parent Persistent; set to this by the constructor if Item is self-standing or a root Persistent of a tree
◆ IntegerVector() [2/2]
IntegerVector::IntegerVector | ( | IntegerVector && | other | ) |
move constructor
Member Function Documentation
◆ operator=()
IntegerVector & IntegerVector::operator= | ( | IntegerVector && | other | ) |
move assignment
◆ type()
|
overridevirtual |
The documentation for this class was generated from the following file: