functions to read and write vector classes with streams.
More...
#include <m_vector_stream_io.h>
functions to read and write vector classes with streams.
void kjb::Vector_stream_io::read_int_vector |
( |
std::istream & |
in, |
|
|
Int_vector & |
ivec |
|
) |
| |
|
static |
Reads an integer vector from an istream using binary format.
Reads an integer vector from an istream using binary format. The format is: num_rows,num_cols followed by the vector elements
- Parameters
-
in | the istream to read from |
ivec | the vector will be stored here |
void kjb::Vector_stream_io::read_vector |
( |
std::istream & |
in, |
|
|
Vector & |
ivec |
|
) |
| |
|
static |
Reads a vector from an istream using binary format.
Reads a vector from an istream using binary format. The format is: num_rows,num_cols followed by the vector elements
- Parameters
-
in | the istream to read from |
ivec | the vector will be stored here |
void kjb::Vector_stream_io::write_int_vector |
( |
std::ostream & |
out, |
|
|
const Int_vector & |
ivec |
|
) |
| |
|
static |
Writes an integer vector to an ostream using binary format.
Writes an integer vector to an ostream using binary format. The format is: num_rows,num_cols followed by the vector elements
- Parameters
-
out | the ostream to write to |
ivec | the vector to write |
void kjb::Vector_stream_io::write_vector |
( |
std::ostream & |
out, |
|
|
const Vector & |
ivec |
|
) |
| |
|
static |
Writes a vector to an ostream using binary format.
Writes a vector to an ostream using binary format. The format is: num_rows,num_cols followed by the vector elements
- Parameters
-
out | the ostream to write to |
ivec | the vector to write |
The documentation for this class was generated from the following files: