map_io.h
Go to the documentation of this file.
46 void copy_from(const char*, Destination &dst, const Source &src) // TODO: Simplify this entire file with templates
105 template<typename ReadType, typename ValueType, bool SameSize=sizeof(ReadType)==sizeof(ValueType)>
118 static std::streamsize read_array_from_stream(std::istream &in, ValueType* vals, const size_t n, const size_t offset=0)
140 static std::streamsize read_array_from_stream(char* &in, ValueType* vals, const size_t n, const size_t offset=0)
168 static std::streamsize read_array_from_stream(std::istream &in, ValueType* vals, const size_t n, const size_t offset=0)
183 static std::streamsize read_array_from_stream(char* &in, ValueType* vals, const size_t n, const size_t offset=0)
235 std::streamsize padded_stream_map(std::istream &in, std::vector<ValueType>&vals, const size_t n, const ReadType)
253 std::streamsize padded_stream_map(char*& in, std::vector<ValueType>&vals, const size_t n, const ReadType)
273 std::streamsize stream_map(std::istream &in, std::vector<ValueType> &vals, const size_t offset, const size_t n)
277 return read_array_helper<ReadType,ValueType>::read_array_from_stream(in, &vals.front(), n, offset);
291 std::streamsize stream_map(char*& in, std::vector<ValueType> &vals, const size_t offset, const size_t n)
295 return read_array_helper<ReadType,ValueType>::read_array_from_stream(in, &vals.front(), n, offset);
389 std::streamsize padded_stream_map(std::ostream &out, const ValueType &vals, const size_t n, const WriteType pad)
414 std::streamsize stream_map(std::ostream &out, const ValueType &vals, const size_t offset, const size_t n)
Definition: enum_description.h:15
static std::streamsize read_array_from_stream(std::istream &in, ValueType *vals, const size_t n, const size_t offset=0)
Definition: map_io.h:168
Definition: map_io.h:106
static std::streamsize read_array_from_stream(std::istream &in, ValueType *vals, const size_t n, const size_t offset=0)
Definition: map_io.h:118
std::streamsize padded_stream_map(std::istream &in, std::vector< ValueType > &vals, const size_t n, const ReadType)
Definition: map_io.h:235
void copy_from(std::ostream &, const Source &, const Destination &)
Definition: map_io.h:27
#define INTEROP_RANGE_CHECK_GT(VALUE, RANGE, EXCEPTION, MESSAGE)
Definition: exception.h:38
void write_binary(std::ostream &out, const T *buffer, const size_t n)
Definition: stream_util.h:158
Definition: enums.h:331
static std::streamsize read_array_from_stream(char *&in, ValueType *vals, const size_t n, const size_t offset=0)
Definition: map_io.h:183
std::streamsize stream_map(std::istream &in, ValueType &val)
Definition: map_io.h:58
Definition: stream_exceptions.h:59
static std::streamsize read_array_from_stream(char *&in, ValueType *vals, const size_t n, const size_t offset=0)
Definition: map_io.h:140
void read_binary(std::istream &in, T *buffer, const size_t n)
Definition: stream_util.h:31