KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
kjb::Vector_stream_io Class Reference

functions to read and write vector classes with streams. More...

#include <m_vector_stream_io.h>

Static Public Member Functions

static void write_int_vector (std::ostream &out, const Int_vector &ivec)
 Writes an integer vector to an ostream using binary format. More...
 
static void read_int_vector (std::istream &in, Int_vector &ivec)
 Reads an integer vector from an istream using binary format. More...
 
static void write_vector (std::ostream &out, const Vector &imat)
 Writes a vector to an ostream using binary format. More...
 
static void read_vector (std::istream &in, Vector &imat)
 Reads a vector from an istream using binary format. More...
 

Detailed Description

functions to read and write vector classes with streams.

Member Function Documentation

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
inthe istream to read from
ivecthe 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
inthe istream to read from
ivecthe 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
outthe ostream to write to
ivecthe 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
outthe ostream to write to
ivecthe vector to write

The documentation for this class was generated from the following files: