libgrape-lite
A C++ library for parallel graph processing
Public Member Functions | List of all members
grape::ContextBase Class Reference

ContextBase is the base class for all user-defined contexts. A context manages data through the whole computation. The data won't be cleared during supersteps. More...

#include <context_base.h>

Inheritance diagram for grape::ContextBase:
grape::MutationContext< FRAG_T > grape::VertexDataContext< FRAG_T, DATA_T, typename std::enable_if< is_edge_cut_fragment< FRAG_T >::value >::type > grape::VertexDataContext< FRAG_T, DATA_T, typename std::enable_if< is_vertex_cut_fragment< FRAG_T >::value >::type > grape::VoidContext< FRAG_T >

Public Member Functions

virtual void Output (std::ostream &os)
 Output function to implement for result output. More...
 

Detailed Description

ContextBase is the base class for all user-defined contexts. A context manages data through the whole computation. The data won't be cleared during supersteps.

Member Function Documentation

◆ Output()

virtual void grape::ContextBase::Output ( std::ostream &  os)
inlinevirtual

Output function to implement for result output.

Note
: This pure virtual function works as an interface, instructing users to implement in their defined context. The Output in the inherited apps would be invoked directly, not via virtual functions.
Parameters
frag
os