|
| RData () |
| Create an RData instance of type NONE.
|
|
| RData (const bool v) |
| Create an RData instance by assigning a single element.
|
|
| RData (const int v) |
| Create an RData instance by assigning a single element.
|
|
| RData (const double v) |
| Create an RData instance by assigning a single element.
|
|
| RData (const std::complex< double > v) |
| Create an RData instance by assigning a single element.
|
|
template<typename InputIterator > |
| RData (InputIterator first, InputIterator last) |
| Create an RData instance by copying a range.
|
|
template<typename T > |
| RData (const std::vector< T > &v) |
| Create an RData instance by copying a vector.
|
|
void | set () |
| Assign NONE.
|
|
void | set (const bool v) |
| Assign a single bool value.
|
|
void | set (const int v) |
| Assign a single integer value.
|
|
void | set (const double v) |
| Assign a single double value.
|
|
void | set (const std::complex< double > v) |
| Assign a single complex-double value.
|
|
void | set (const std::string &data) |
| Assign a string.
|
|
void | set (const char *data) |
| Assign a 0-terminated array of characters.
|
|
template<typename T > |
void | set (const std::vector< T > &v) |
| Copy a vector.
|
|
template<typename InputIterator > |
void | set (InputIterator first, InputIterator last) |
| Copy a range.
|
|
bool | get_bool () const |
|
const std::vector< int > & | get_int () const |
|
const std::vector< double > & | get_double () const |
|
const std::vector< std::complex< double > > & | get_complex_double () const |
|
template<typename T > |
const std::vector< T > & | get () const |
|
const std::string & | get_string () const |
|
int | type () const |
|
const std::type_info & | type_info () const |
| Return the typeid() of the data type.
|
|
size_t | size () const |
|
bool | empty () const |
| true if the number of elements is 0.
|
|
size_t | get_data_size () const |
|
const void * | get_data () const |
|
bool | operator== (const bool o) const |
| Comparison with a bool. The data type must be of type BOOL.
|
|
bool | operator== (const int &o) const |
| Comparison with an int. The data type must be of type INT.
|
|
bool | operator== (const std::vector< int > &o) const |
| Comparison with a vector of int. The data type must be of type INT.
|
|
bool | operator== (const double &o) const |
| Comparison with a double. The data type must be of type DOUBLE.
|
|
bool | operator== (const std::vector< double > &o) const |
| Comparison with a vector of double. The data type must be of type DOUBLE.
|
|
bool | operator== (const std::complex< double > &o) const |
|
bool | operator== (const std::vector< std::complex< double > > &o) const |
|
bool | operator== (const std::string &o) const |
|
bool | operator== (const char *o) const |
|
What is stored in RTable objects (the RTable::data_type).
Contains either of a std::vector of int, double, or complex-double values, or a std::string. The internal fields are protected such that the object retains a valid state. Manipulation is done via the constructors and the setter and getter methods. For efficiency, the getter methods return const references; this means that some care is required if the RTable is being modified.