libgrape-lite
A C++ library for parallel graph processing
Public Member Functions | List of all members
grape::LineParserBase< OID_T, VDATA_T, EDATA_T > Class Template Referenceabstract

LineParserBase is the base class for line parsers. More...

#include <line_parser_base.h>

Inheritance diagram for grape::LineParserBase< OID_T, VDATA_T, EDATA_T >:
grape::TSVLineParser< typename FRAG_T::oid_t, typename FRAG_T::vdata_t, typename FRAG_T::edata_t > grape::TSVLineParser< OID_T, VDATA_T, EDATA_T >

Public Member Functions

virtual void LineParserForEFile (const std::string &line, OID_T &u, OID_T &v, EDATA_T &e_data)=0
 parser of edge file, to parse source vertex_id, destination vertex_id from a line. More...
 
virtual void LineParserForVFile (const std::string &line, OID_T &u, VDATA_T &v_data)=0
 parser of vertex file, to parse vertex_id and vertex_data from a string. More...
 

Detailed Description

template<typename OID_T, typename VDATA_T, typename EDATA_T>
class grape::LineParserBase< OID_T, VDATA_T, EDATA_T >

LineParserBase is the base class for line parsers.

Note
: The pure virtual functions in the class work as interfaces, instructing sub-classes to implement. The override functions in the derived classes would be invoked directly, not via virtual functions.
Template Parameters
OID_T
VDATA_T
EDATA_T

Member Function Documentation

◆ LineParserForEFile()

template<typename OID_T , typename VDATA_T , typename EDATA_T >
virtual void grape::LineParserBase< OID_T, VDATA_T, EDATA_T >::LineParserForEFile ( const std::string &  line,
OID_T &  u,
OID_T &  v,
EDATA_T &  e_data 
)
pure virtual

parser of edge file, to parse source vertex_id, destination vertex_id from a line.

Parameters
line
u
v
e_data

Implemented in grape::TSVLineParser< OID_T, VDATA_T, EDATA_T >.

◆ LineParserForVFile()

template<typename OID_T , typename VDATA_T , typename EDATA_T >
virtual void grape::LineParserBase< OID_T, VDATA_T, EDATA_T >::LineParserForVFile ( const std::string &  line,
OID_T &  u,
VDATA_T &  v_data 
)
pure virtual

parser of vertex file, to parse vertex_id and vertex_data from a string.

Parameters
line
u
v_data

Implemented in grape::TSVLineParser< OID_T, VDATA_T, EDATA_T >.