libmoost
|
#include <readers.hpp>
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 |
K | m_currentid |
Definition at line 244 of file readers.hpp.
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.
moost::container::policies::cf_sparsevec_reader< K, T >::cf_sparsevec_reader | ( | std::istream & | is | ) | [inline] |
moost::container::policies::cf_sparsevec_reader< K, T >::cf_sparsevec_reader | ( | const std::string | fileName | ) | [inline] |
void moost::container::policies::cf_sparsevec_reader< K, T >::cache_first_line | ( | ) | [inline] |
void moost::container::policies::cf_sparsevec_reader< K, T >::clear | ( | ) | [inline] |
Definition at line 314 of file readers.hpp.
bool moost::container::policies::cf_sparsevec_reader< K, T >::parseline | ( | sparsevec_t & | vec | ) | [inline] |
bool moost::container::policies::cf_sparsevec_reader< K, T >::read | ( | K & | key, |
sparsevec_t & | vec, | ||
bool | sort_by_value | ||
) | [inline] |
K moost::container::policies::cf_sparsevec_reader< K, T >::m_currentid [private] |
Definition at line 325 of file readers.hpp.
bool moost::container::policies::cf_sparsevec_reader< K, T >::m_eof [private] |
Definition at line 323 of file readers.hpp.
std::ifstream moost::container::policies::cf_sparsevec_reader< K, T >::m_ifs [private] |
Definition at line 321 of file readers.hpp.
std::istream& moost::container::policies::cf_sparsevec_reader< K, T >::m_is [private] |
Definition at line 322 of file readers.hpp.
std::string moost::container::policies::cf_sparsevec_reader< K, T >::m_line [private] |
Definition at line 324 of file readers.hpp.