libmoost
moost::container::policies::cf_sparsevec_reader< K, T > Class Template Reference

#include <readers.hpp>

List of all members.

Public Types

typedef std::vector< std::pair
< int, T > > 
sparsevec_t

Public Member Functions

 cf_sparsevec_reader (std::istream &is)
 cf_sparsevec_reader (const std::string fileName)
void cache_first_line ()
bool parseline (sparsevec_t &vec)
bool read (K &key, sparsevec_t &vec, bool sort_by_value)
void clear ()

Private Attributes

std::ifstream m_ifs
std::istream & m_is
bool m_eof
std::string m_line
m_currentid

Detailed Description

template<typename K, typename T>
class moost::container::policies::cf_sparsevec_reader< K, T >

Definition at line 244 of file readers.hpp.


Member Typedef Documentation

template<typename K , typename T >
typedef std::vector<std::pair<int, T> > moost::container::policies::cf_sparsevec_reader< K, T >::sparsevec_t

Definition at line 247 of file readers.hpp.


Constructor & Destructor Documentation

template<typename K , typename T >
moost::container::policies::cf_sparsevec_reader< K, T >::cf_sparsevec_reader ( std::istream &  is) [inline]

Definition at line 249 of file readers.hpp.

Here is the call graph for this function:

template<typename K , typename T >
moost::container::policies::cf_sparsevec_reader< K, T >::cf_sparsevec_reader ( const std::string  fileName) [inline]

Definition at line 255 of file readers.hpp.

Here is the call graph for this function:


Member Function Documentation

template<typename K , typename T >
void moost::container::policies::cf_sparsevec_reader< K, T >::cache_first_line ( ) [inline]

Definition at line 264 of file readers.hpp.

Here is the caller graph for this function:

template<typename K , typename T >
void moost::container::policies::cf_sparsevec_reader< K, T >::clear ( ) [inline]

Definition at line 314 of file readers.hpp.

template<typename K , typename T >
bool moost::container::policies::cf_sparsevec_reader< K, T >::parseline ( sparsevec_t vec) [inline]

Definition at line 271 of file readers.hpp.

Here is the caller graph for this function:

template<typename K , typename T >
bool moost::container::policies::cf_sparsevec_reader< K, T >::read ( K &  key,
sparsevec_t vec,
bool  sort_by_value 
) [inline]

Definition at line 294 of file readers.hpp.

Here is the call graph for this function:


Member Data Documentation

template<typename K , typename T >
K moost::container::policies::cf_sparsevec_reader< K, T >::m_currentid [private]

Definition at line 325 of file readers.hpp.

template<typename K , typename T >
bool moost::container::policies::cf_sparsevec_reader< K, T >::m_eof [private]

Definition at line 323 of file readers.hpp.

template<typename K , typename T >
std::ifstream moost::container::policies::cf_sparsevec_reader< K, T >::m_ifs [private]

Definition at line 321 of file readers.hpp.

template<typename K , typename T >
std::istream& moost::container::policies::cf_sparsevec_reader< K, T >::m_is [private]

Definition at line 322 of file readers.hpp.

template<typename K , typename T >
std::string moost::container::policies::cf_sparsevec_reader< K, T >::m_line [private]

Definition at line 324 of file readers.hpp.


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