Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

mootBinIO::Item< T > Class Template Reference

Binary item I/O template class, used for binary HMM model files.

#include <mootBinIO.h>

Inheritance diagram for mootBinIO::Item< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

template<class T>
class mootBinIO::Item< T >


Member Function Documentation

template<class T>
bool mootBinIO::Item< T >::load mootio::mistream is,
T &  x
const [inline]
 

Load a single item

template<class T>
bool mootBinIO::Item< T >::load_n mootio::mistream is,
T *&  x,
size_t &  n
const [inline]
 

Load a C-array of items. 'n' should hold the currently allocated length of 'x'. If the saved length is > n, 'x' will be re-allocated. The new size of the array will be stored in 'n' at completion.

template<class T>
bool mootBinIO::Item< T >::save mootio::mostream os,
const T &  x
const [inline]
 

Save a single item

template<class T>
bool mootBinIO::Item< T >::save_n mootio::mostream os,
const T *  x,
size_t  n
const [inline]
 

Save a C-array of items. 'n' should hold the number of items in 'x', it will be written first.


The documentation for this class was generated from the following file:
Generated on Mon Jun 27 13:05:29 2005 for libmoot by  doxygen 1.3.8-20040913