Functions | |
template<typename T , std::size_t dim, typename std::enable_if< std::is_pod< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::read (std::istream &stream, std::array< T, dim > &value) |
void | bitpit::utils::binary::read (std::istream &stream, std::string &string) |
void | bitpit::utils::binary::read (std::istream &stream, std::vector< bool > &container) |
void | bitpit::utils::binary::read (std::istream &stream, std::vector< bool >::reference value) |
template<typename T , typename std::enable_if< std::is_pod< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::read (std::istream &stream, std::vector< T > &value) |
template<typename T , typename std::enable_if< utils::is_iterable< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::read (std::istream &stream, T &value) |
template<typename T > | |
void | bitpit::utils::binary::read (std::istream &stream, T &value, size_t size) |
template<typename T > | |
void | bitpit::utils::binary::read (std::istream &stream, T *value, size_t size) |
template<typename T , std::size_t dim, typename std::enable_if< std::is_pod< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::write (std::ostream &stream, const std::array< T, dim > &value) |
void | bitpit::utils::binary::write (std::ostream &stream, const std::string &string) |
void | bitpit::utils::binary::write (std::ostream &stream, const std::vector< bool > &container) |
template<typename T , typename std::enable_if< std::is_pod< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::write (std::ostream &stream, const std::vector< T > &value) |
template<typename T , typename std::enable_if< utils::is_iterable< T >::value >::type * = nullptr> | |
void | bitpit::utils::binary::write (std::ostream &stream, const T &value) |
template<typename T > | |
void | bitpit::utils::binary::write (std::ostream &stream, const T &value, size_t size) |
template<typename T > | |
void | bitpit::utils::binary::write (std::ostream &stream, const T *value, size_t size) |
template<typename T > | |
void | bitpit::utils::binary::write (std::ostream &stream, T *value, size_t size) |
void bitpit::utils::binary::read | ( | std::istream & | stream, |
std::array< T, dim > & | container ) |
Read the given container to the specified stream in binary format.
stream | is the stream to read from | |
[out] | container | on output it will contain the read values |
Definition at line 185 of file binaryUtils.tpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
std::string & | string ) |
Read the given string to the specified stream in binary format.
stream | is the stream to read from | |
[out] | string | on output it will contain the read string |
Definition at line 108 of file binaryUtils.cpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
std::vector< bool > & | container ) |
Read the given container to the specified stream in binary format.
stream | is the stream to write to |
container | is the container to write |
Definition at line 72 of file binaryUtils.cpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
std::vector< bool >::reference | value ) |
Read the given container to the specified stream in binary format.
stream | is the stream to write to |
value | is the value to write |
Definition at line 93 of file binaryUtils.cpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
std::vector< T > & | container ) |
Read the given container to the specified stream in binary format.
stream | is the stream to write to | |
[out] | container | on output it will contain the read values |
Definition at line 167 of file binaryUtils.tpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
T & | value ) |
Read the given container to the specified stream in binary format.
stream | is the stream to read from | |
[out] | value | on output it will contain the read value |
Read the given data to the specified stream in binary format.
stream | is the stream to read from | |
[out] | value | on output it will contain the read value |
Definition at line 215 of file binaryUtils.tpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
T & | value, | ||
size_t | size ) |
Read the given data to the specified stream in binary format.
stream | is the stream to read from | |
[out] | value | on output it will contain the read value |
size | is the size, expressed in bytes, of the data to read |
Definition at line 250 of file binaryUtils.tpp.
void bitpit::utils::binary::read | ( | std::istream & | stream, |
T * | value, | ||
size_t | size ) |
Read the given data to the specified stream in binary format.
stream | is the stream to read from | |
[out] | value | on output it will contain the read value |
size | is the size, expressed in bytes, of the data to read |
Definition at line 265 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const std::array< T, dim > & | container ) |
Write the given container to the specified stream in binary format.
stream | is the stream to write to |
container | is the container to write |
Definition at line 60 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const std::string & | string ) |
Write the given string to the specified stream in binary format.
stream | is the stream to write to |
string | is the string to write |
Definition at line 57 of file binaryUtils.cpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const std::vector< bool > & | container ) |
Write the given container to the specified stream in binary format.
stream | is the stream to write to |
container | is the container to write |
Definition at line 41 of file binaryUtils.cpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const std::vector< T > & | container ) |
Write the given container to the specified stream in binary format.
stream | is the stream to write to |
container | is the container to write |
Definition at line 43 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const T & | value ) |
Write the given container to the specified stream in binary format.
stream | is the stream to write to |
value | is the data to write |
Write the given data to the specified stream in binary format.
stream | is the stream to write to |
value | is the data to write |
Definition at line 90 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const T & | value, | ||
size_t | size ) |
Write the given data to the specified stream in binary format.
stream | is the stream to write to |
value | is the data to write |
size | is the size, expressed in bytes, of the data to write |
Definition at line 123 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
const T * | value, | ||
size_t | size ) |
Write the given data to the specified stream in binary format.
stream | is the stream to write to |
value | is the data to write |
size | is the size, expressed in bytes, of the data to write |
Definition at line 138 of file binaryUtils.tpp.
void bitpit::utils::binary::write | ( | std::ostream & | stream, |
T * | value, | ||
size_t | size ) |
Write the given data to the specified stream in binary format.
stream | is the stream to write to |
value | is the data to write |
size | is the size, expressed in bytes, of the data to write |
Definition at line 153 of file binaryUtils.tpp.