KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
m_vector_stream_io.h
Go to the documentation of this file.
1 /* ======================================================================== *
2  | |
3  | Copyright (c) 2007-2010, by members of University of Arizona Computer |
4  | Vision group (the authors) including |
5  | Luca Del Pero |
6  | |
7  | For use outside the University of Arizona Computer Vision group please |
8  | contact Kobus Barnard. |
9  | |
10  * ======================================================================== */
11 
12 /* $Id: m_vector_stream_io.h 18278 2014-11-25 01:42:10Z ksimek $ */
13 
25 #ifndef VECTOR_STREAM_IO_H_INCLUDED
26 #define VECTOR_STREAM_IO_H_INCLUDED
27 
28 //#include <m_cpp/m_vector.h>
29 //#include <l_cpp/l_int_vector.h>
30 #include <iosfwd>
31 //#include <vector>
32 
33 namespace kjb {
34 
35 class Vector;
36 class Int_vector;
37 
43 {
44 public:
45 
47  static void write_int_vector(std::ostream& out,const Int_vector & ivec);
48 
50  static void read_int_vector(std::istream& in, Int_vector & ivec);
51 
53  static void write_vector(std::ostream& out,const Vector & imat);
54 
56  static void read_vector(std::istream& in, Vector & imat);
57 
58 
59 };
60 
61 }
62 
63 #endif
64 
65 
static void write_int_vector(std::ostream &out, const Int_vector &ivec)
Writes an integer vector to an ostream using binary format.
Definition: m_vector_stream_io.cpp:40
static void read_int_vector(std::istream &in, Int_vector &ivec)
Reads an integer vector from an istream using binary format.
Definition: m_vector_stream_io.cpp:83
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
functions to read and write vector classes with streams.
Definition: m_vector_stream_io.h:42
static void write_vector(std::ostream &out, const Vector &imat)
Writes a vector to an ostream using binary format.
Definition: m_vector_stream_io.cpp:135
static void read_vector(std::istream &in, Vector &imat)
Reads a vector from an istream using binary format.
Definition: m_vector_stream_io.cpp:175
This class implements vectors, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_vector.h:83