|
libvisiontransfer
10.0.0
|
#include <visiontransfer/parametervalue.h>
Public Types | |
| enum | ParameterType { TYPE_INT, TYPE_DOUBLE, TYPE_BOOL, TYPE_STRING, TYPE_SAFESTRING, TYPE_TENSOR, TYPE_COMMAND, TYPE_UNDEFINED } |
Public Member Functions | |
| ParameterValue & | setType (ParameterType t) |
| ParameterValue & | setTensorShape (const std::vector< unsigned int > &shape) |
| bool | isDefined () const |
| bool | isUndefined () const |
| bool | isTensor () const |
| bool | isScalar () const |
| bool | isCommand () const |
| unsigned int | getTensorDimension () const |
| std::vector< unsigned int > | getTensorShape () const |
| std::vector< double > | getTensorData () const |
| Return a copy of the internal tensor data. More... | |
| std::vector< double > & | getTensorDataReference () |
| Return a reference to the internal tensor data (caution) More... | |
| ParameterValue & | setTensorData (const std::vector< double > &data) |
| unsigned int | getTensorNumElements () const |
| unsigned int | getTensorCurrentDataSize () const |
| ParameterType | getType () const |
| double & | tensorElementAt (unsigned int x) |
| double & | tensorElementAt (unsigned int y, unsigned int x) |
| double & | tensorElementAt (unsigned int z, unsigned int y, unsigned int x) |
| template<typename T > | |
| ParameterValue & | setValue (T t) |
| template<typename T > | |
| T | getValue () const |
| template<typename T > | |
| T | getWithDefault (const T &deflt) const |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (int t) |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (bool t) |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (double t) |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (const char *t) |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (const std::string &t) |
| template<> | |
| VT_EXPORT ParameterValue & | setValue (std::string t) |
| template<> | |
| VT_EXPORT int | getValue () const |
| template<> | |
| VT_EXPORT double | getValue () const |
| template<> | |
| VT_EXPORT bool | getValue () const |
| template<> | |
| VT_EXPORT std::string | getValue () const |
| template<> | |
| VT_EXPORT const char * | getValue () const |
A raw castable variant value for parameters, used for several things internally in Parameter
Definition at line 35 of file parametervalue.h.
| std::vector< double > visiontransfer::param::ParameterValue::getTensorData | ( | ) | const |
Return a copy of the internal tensor data.
Definition at line 97 of file parametervalue.cpp.
|
inline |
Return a reference to the internal tensor data (caution)
Definition at line 61 of file parametervalue.h.