Classes | Functions
mootBinIO Namespace Reference

Namespace for structured binary stream I/O.

Classes

class  HeaderInfo
 Header information structure, used for binary HMM model files. More...
 
class  Item
 Binary item I/O template class, used for binary HMM model files. More...
 
class  Item< AssocVector< KeyT, ValT > >
 
class  Item< char * >
 Binary I/O template instantiation for C strings. More...
 
class  Item< hash_map< KeyT, ValT, HashFuncT, EqualFuncT > >
 Binary I/O template instantiation for STL hash_map<> More...
 
class  Item< hash_set< ValT > >
 Binary I/O template instantiation for STL hash_set<> More...
 
class  Item< map< KeyT, ValT > >
 Binary I/O template instantiation for STL map<> More...
 
class  Item< mootEnum< NameT, HashFunc, NameEqlFunc > >
 Binary I/O template instantiation for mootEnum<> More...
 
class  Item< mootHMM::Trigram >
 
class  Item< mootTaster >
 Binary I/O template instantiation for mootTaster. More...
 
class  Item< mootTaster::Rule >
 Binary I/O template instantiation for mootTaster::Rule. More...
 
class  Item< set< ValT > >
 Binary I/O template instantiation for STL set<> More...
 
class  Item< size_t >
 Binary I/O template instantiation for signed integers. More...
 
class  Item< std::pair< T1, T2 > >
 Binary I/O template instantiation for STL map<> More...
 
class  Item< string >
 Binary I/O template instantiation for STL strings. More...
 
class  Item< SuffixTrie >
 Binary I/O template instantiation for SuffixTrie. More...
 
class  Item< TrieVectorNode< DataT, CharT, UCharT > >
 
class  Item< vector< ValT > >
 Binary I/O template instantiation for STL vector<> More...
 

Functions

template<typename T >
bool loadItem (mootio::mistream *is, T &x)
 
template<typename T >
bool saveItem (mootio::mostream *os, const T &x)
 

Function Documentation

◆ loadItem()

template<typename T >
bool mootBinIO::loadItem ( mootio::mistream is,
T &  x 
)
inline

Load a single binary item using its native size

References mootio::mistream::read().

◆ saveItem()

template<typename T >
bool mootBinIO::saveItem ( mootio::mostream os,
const T &  x 
)
inline

Save a single binary item using its native size

References mootio::mostream::write().