◆ DataBuffer()
create a dataBuffer object from an existing C API buffer
◆ ~DataBuffer()
helicscpp::DataBuffer::~DataBuffer |
( |
| ) |
|
|
inline |
◆ capacity()
int helicscpp::DataBuffer::capacity |
( |
| ) |
|
|
inline |
get the size of the raw value
◆ clone()
make a deep copy of the buffer
◆ convertToType()
bool helicscpp::DataBuffer::convertToType |
( |
int |
newDataType | ) |
|
|
inline |
convert the data in a data buffer to a different type representation
- Parameters
-
newDataType | the type that it is desired for the buffer to be converted to |
- Returns
- true if the conversion was successful
References HELICS_TRUE.
◆ data()
void* helicscpp::DataBuffer::data |
( |
| ) |
|
|
inline |
◆ getHelicsDataBuffer()
◆ isValid()
bool helicscpp::DataBuffer::isValid |
( |
| ) |
const |
|
inline |
◆ reserve()
bool helicscpp::DataBuffer::reserve |
( |
int32_t |
newCapacity | ) |
|
|
inline |
reserve a capacity in the buffer
References HELICS_TRUE.
◆ size()
int helicscpp::DataBuffer::size |
( |
| ) |
|
|
inline |
◆ stringSize()
int helicscpp::DataBuffer::stringSize |
( |
| ) |
|
|
inline |
get the size of the value as a string
Referenced by toString().
◆ toBoolean()
bool helicscpp::DataBuffer::toBoolean |
( |
| ) |
|
|
inline |
◆ toComplex()
std::complex<double> helicscpp::DataBuffer::toComplex |
( |
| ) |
|
|
inline |
get the value as a complex number
◆ toComplexVector()
int helicscpp::DataBuffer::toComplexVector |
( |
double * |
data, |
|
|
int |
maxlen |
|
) |
| |
|
inline |
get the current value as a vector of doubles in alternating real and imaginary
- Parameters
-
data | pointer to space to store the current values |
maxlen | the maximum size of the allowed vector |
- Returns
- the actual size of the vector stored
References data().
◆ toDouble()
double helicscpp::DataBuffer::toDouble |
( |
| ) |
|
|
inline |
get the value as a double
◆ toInt()
int64_t helicscpp::DataBuffer::toInt |
( |
| ) |
|
|
inline |
get the current value as a 64 bit integer
◆ toNamedPoint()
void helicscpp::DataBuffer::toNamedPoint |
( |
std::string & |
name, |
|
|
double * |
val |
|
) |
| |
|
inline |
get the current value as a named point
References size().
◆ toString() [1/2]
std::string helicscpp::DataBuffer::toString |
( |
| ) |
|
|
inline |
◆ toString() [2/2]
void helicscpp::DataBuffer::toString |
( |
std::string & |
str | ) |
|
|
inline |
◆ toVector() [1/2]
int helicscpp::DataBuffer::toVector |
( |
double * |
data, |
|
|
int |
maxlen |
|
) |
| |
|
inline |
get the current value as a vector of doubles
- Parameters
-
data | pointer to space to store the current values |
maxlen | the maximum size of the allowed vector |
- Returns
- the actual size of the vector stored
References data().
◆ toVector() [2/2]
void helicscpp::DataBuffer::toVector |
( |
std::vector< double > & |
data | ) |
|
|
inline |
get the current value and store it in a std::vector<double>
References data().
◆ type()
int helicscpp::DataBuffer::type |
( |
| ) |
const |
|
inline |
get the type of data contained in the buffer
◆ vectorSize()
int helicscpp::DataBuffer::vectorSize |
( |
| ) |
|
|
inline |
get the size of the value as a vector
The documentation for this class was generated from the following file: