Go to the documentation of this file.
43 data_(sizeof(unsigned char))
45 memcpy(
data_.data(), &
value,
sizeof(
unsigned char));
55 data_(sizeof(unsigned short))
57 memcpy(
data_.data(), &
value,
sizeof(
unsigned short));
67 data_(sizeof(unsigned
int))
69 memcpy(
data_.data(), &
value,
sizeof(
unsigned int));
104 data_(sizeof(unsigned char)*
value.
size())
106 memcpy(
data_.data(),
value.data(),
sizeof(
unsigned char)*
value.size());
116 data_(sizeof(unsigned short)*
value.
size())
118 memcpy(
data_.data(),
value.data(),
sizeof(
unsigned short)*
value.size());
151 else if(
data_.size())
153 return memcmp(
data_.data(), std::vector<unsigned char>(
data_.size(), 0).data(),
data_.size()) != 0;
167 memcpy(&
v,
data_.data(),
sizeof(
char));
223 unsigned int tmp =
toUInt();
244 memcpy(&
v,
data_.data(),
sizeof(
unsigned char));
255 v = (
unsigned char)tmp;
267 v = (
unsigned char)tmp;
279 v = (
unsigned char)tmp;
291 v = (
unsigned char)tmp;
300 unsigned int tmp =
toUInt();
303 v = (
unsigned char)tmp;
321 memcpy(&
v,
data_.data(),
sizeof(
short));
369 unsigned int tmp =
toUInt();
387 unsigned short v = 0;
390 memcpy(&
v,
data_.data(),
sizeof(
unsigned short));
401 v = (
unsigned short)tmp;
421 v = (
unsigned short)tmp;
433 v = (
unsigned short)tmp;
442 unsigned int tmp =
toUInt();
445 v = (
unsigned short)tmp;
463 memcpy(&
v,
data_.data(),
sizeof(
int));
503 unsigned int tmp =
toUInt();
524 memcpy(&
v,
data_.data(),
sizeof(
unsigned int));
535 v = (
unsigned int)tmp;
555 v = (
unsigned int)tmp;
575 v = (
unsigned int)tmp;
593 memcpy(&
v,
data_.data(),
sizeof(
float));
622 memcpy(&
v,
data_.data(),
sizeof(
double));
643 v = std::string((
const char *)
data_.data());
709 v.resize(
data_.size() /
sizeof(
char));
723 std::vector<unsigned char>
v;
732 v.resize(
data_.size() /
sizeof(
unsigned char));
746 std::vector<short>
v;
755 v.resize(
data_.size() /
sizeof(
short));
768 std::vector<unsigned short>
v;
777 v.resize(
data_.size() /
sizeof(
unsigned short));
799 v.resize(
data_.size() /
sizeof(
int));
812 std::vector<unsigned int>
v;
821 v.resize(
data_.size() /
sizeof(
unsigned int));
834 std::vector<float>
v;
843 v.resize(
data_.size() /
sizeof(
float));
856 std::vector<double>
v;
865 v.resize(
data_.size() /
sizeof(
double));
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
std::vector< char > toCharArray(bool *ok=0) const
std::vector< double > toDoubleArray(bool *ok=0) const
std::vector< int > toIntArray(bool *ok=0) const
unsigned int toUInt(bool *ok=0) const
bool UTILITE_EXPORT uStr2Bool(const char *str)
double toDouble(bool *ok=0) const
std::vector< unsigned char > toUCharArray(bool *ok=0) const
std::string UTILITE_EXPORT uNumber2Str(unsigned int number)
Some conversion functions.
unsigned short toUShort(bool *ok=0) const
std::vector< short > toShortArray(bool *ok=0) const
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
std::vector< unsigned short > toUShortArray(bool *ok=0) const
char toChar(bool *ok=0) const
std::vector< float > toFloatArray(bool *ok=0) const
unsigned char toUChar(bool *ok=0) const
std::string toStr(bool *ok=0) const
const char * c_str(Args &&...args)
Array< int, Dynamic, 1 > v
std::vector< unsigned int > toUIntArray(bool *ok=0) const
short toShort(bool *ok=0) const
float toFloat(bool *ok=0) const
int toInt(bool *ok=0) const
std::vector< unsigned char > data_
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:24