2
3
4
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
29#include "core/clockwerkerrors.h"
30#include "core/Matrix.hpp"
37 enum dataio_types_e :
unsigned char {
88 template <
typename T>
typename std::enable_if<std::is_integral<T>::value>::type _typeID(T var);
89 template <
typename T>
typename std::enable_if<std::is_floating_point<T>::value>::type _typeID(T var);
90 template <
typename T>
void _typeID(std::vector<T> var);
91 template <
typename T,
long unsigned int N>
void _typeID(std::array<T, N> var);
92 template <
typename T,
unsigned int R,
unsigned int C>
void _typeID(
Matrix<T, R, C> var);
93 void _typeID(std::string &var);
95 void _typeID(
void* var);
96 void _typeID(
int var);
117 dataio_types_e
_type_id = UNDEFINED;
120 template <
typename T>
121 typename std::enable_if<std::is_integral<T>::value>::type
DataIOBase::_typeID(T var) {
_type_id = INTEGER;}
122 template <
typename T>
123 typename std::enable_if<std::is_floating_point<T>::value>::type
DataIOBase::_typeID(T var) {
_type_id = FLOATING_POINT;}
124 template <
typename T>
126 template <
typename T,
long unsigned int N>
128 template <
typename T,
unsigned int R,
unsigned int C>
The Data IO Base class is designed to provide the basic interface of the Data IO class (see documenta...
Definition DataIOBase.h:54
DataIOBase()
Default constructor.
Definition DataIOBase.h:57
void * writePtr()
Function to write value to mapped location – root data or map.
Definition DataIOBase.cpp:20
void resetMap()
Definition DataIOBase.h:72
bool _root
Variable to indicate whether variable in question is root data source or not.
Definition DataIOBase.h:112
void allowWrite()
Functions to manipulate write permissions on DataIO object.
Definition DataIOBase.h:61
bool _writeAllowed
Variable to indicate whether writing is allowed to this variable Set to false upon mapping by default...
Definition DataIOBase.h:108
DataIOBase * data
Pointer to data held by the object – by default, this will point internally to _default_data,...
Definition DataIOBase.h:100
void mapTo(DataIOBase &data_source)
Function to map DataIO object to new upstream data source.
Definition DataIOBase.h:68
void * _data_ptr
Generic pointer to hold any data type – will be resolved to point to actual object in inherited class...
Definition DataIOBase.h:104
uint8_t dataType()
Function to return the type of data held by the DataIO.
Definition DataIOBase.h:84
void * read()
Function to read value from mapped location – root data or map.
Definition DataIOBase.cpp:32
dataio_types_e _type_id
Variable to store the type of data that the DataIO object is holding. Valid types are documented in t...
Definition DataIOBase.h:117
Base class for object organization.
Definition GraphTreeObject.h:87
uint8_t _graph_tree_type
Variable to store graph tree object type.
Definition GraphTreeObject.h:251
Matrix math implementation.
Definition Matrix.hpp:54