GraphChi  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros
Public Member Functions | Protected Member Functions | Protected Attributes
graphchi::vertex_data_store< VertexDataType > Class Template Reference

List of all members.

Public Member Functions

 vertex_data_store (std::string base_filename, size_t nvertices, stripedio *iomgr)
void check_size (size_t nvertices)
void clear (size_t nvertices)
virtual void load (vid_t _vertex_st, vid_t _vertex_en)
virtual void save (bool async=false)
vid_t first_vertex_id ()
VertexDataTypevertex_data_ptr (vid_t vertexid)

Protected Member Functions

virtual void open_file (std::string base_filename)

Protected Attributes

stripedioiomgr
vid_t vertex_st
vid_t vertex_en
std::string filename
int filedesc
VertexDataTypeloaded_chunk

Member Function Documentation

template<typename VertexDataType>
vid_t graphchi::vertex_data_store< VertexDataType >::first_vertex_id ( )
inline

Returns id of the first vertex currently in memory. Fails if nothing loaded yet.

template<typename VertexDataType>
virtual void graphchi::vertex_data_store< VertexDataType >::load ( vid_t  _vertex_st,
vid_t  _vertex_en 
)
inlinevirtual

Loads a chunk of vertex values

Parameters:
vertex_stfirst vertex id
vertex_enlast vertex id, inclusive
template<typename VertexDataType>
virtual void graphchi::vertex_data_store< VertexDataType >::save ( bool  async = false)
inlinevirtual

Saves the current chunk of vertex values


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