Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::graphs::OCFileGraph Class Reference

Like FileGraph but allows partial loading of the graph. More...

#include <OCGraph.h>

Inheritance diagram for galois::graphs::OCFileGraph:

Classes

struct  EdgeReference
 

Public Types

typedef uint32_t GraphNode
 
typedef
boost::counting_iterator
< uint32_t > 
iterator
 
typedef
boost::counting_iterator
< uint64_t > 
edge_iterator
 
typedef uint64_t * edge_offset_iterator
 
typedef Segment segment_type
 

Public Member Functions

 OCFileGraph ()
 
 ~OCFileGraph ()
 
iterator begin () const
 
iterator end () const
 
size_t size () const
 
size_t sizeEdges () const
 
edge_iterator edge_begin (GraphNode n) const
 
edge_iterator edge_end (GraphNode n) const
 
edge_offset_iterator edge_offset_begin () const
 
edge_offset_iterator edge_offset_end () const
 
template<typename EdgeTy >
EdgeReference< EdgeTy >::type getEdgeData (const segment_type &s, edge_iterator it, typename std::enable_if<!std::is_same< void, EdgeTy >::value >::type *=0)
 
template<typename EdgeTy >
EdgeReference< EdgeTy >::type getEdgeData (const segment_type &, edge_iterator, typename std::enable_if< std::is_same< void, EdgeTy >::value >::type *=0)
 
GraphNode getEdgeDst (const segment_type &s, edge_iterator it)
 
void unload (segment_type &s)
 
void load (segment_type &s, edge_iterator begin, edge_iterator end, size_t sizeof_data)
 
void fromFile (const std::string &fname)
 

Detailed Description

Like FileGraph but allows partial loading of the graph.

Member Typedef Documentation

typedef boost::counting_iterator<uint64_t> galois::graphs::OCFileGraph::edge_iterator
typedef boost::counting_iterator<uint32_t> galois::graphs::OCFileGraph::iterator

Constructor & Destructor Documentation

galois::graphs::OCFileGraph::OCFileGraph ( )
inline
OCFileGraph::~OCFileGraph ( )

Member Function Documentation

iterator galois::graphs::OCFileGraph::begin ( ) const
inline
edge_iterator galois::graphs::OCFileGraph::edge_begin ( GraphNode  n) const
inline
edge_iterator galois::graphs::OCFileGraph::edge_end ( GraphNode  n) const
inline
edge_offset_iterator galois::graphs::OCFileGraph::edge_offset_begin ( ) const
inline
edge_offset_iterator galois::graphs::OCFileGraph::edge_offset_end ( ) const
inline
iterator galois::graphs::OCFileGraph::end ( ) const
inline
void OCFileGraph::fromFile ( const std::string &  fname)
template<typename EdgeTy >
EdgeReference<EdgeTy>::type galois::graphs::OCFileGraph::getEdgeData ( const segment_type s,
edge_iterator  it,
typename std::enable_if<!std::is_same< void, EdgeTy >::value >::type *  = 0 
)
inline
template<typename EdgeTy >
EdgeReference<EdgeTy>::type galois::graphs::OCFileGraph::getEdgeData ( const segment_type ,
edge_iterator  ,
typename std::enable_if< std::is_same< void, EdgeTy >::value >::type *  = 0 
)
inline
GraphNode galois::graphs::OCFileGraph::getEdgeDst ( const segment_type s,
edge_iterator  it 
)
inline
void OCFileGraph::load ( segment_type s,
edge_iterator  begin,
edge_iterator  end,
size_t  sizeof_data 
)
size_t galois::graphs::OCFileGraph::size ( ) const
inline
size_t galois::graphs::OCFileGraph::sizeEdges ( ) const
inline
void galois::graphs::OCFileGraph::unload ( segment_type s)
inline

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