IBM SYSTEMG G RUNTIME & NATIVE STORE  0.5
IBM Native Graph Computing and Storage System based on IBM Parallel Programming Library
 All Classes Functions Variables Typedefs Pages
Public Member Functions | Protected Attributes | Private Types | List of all members
ibmppl::imp_pred_iterator< GraphElement, BaseIterator, Graph > Class Template Reference

#include <ibm_multiproperty_graph.hpp>

Public Member Functions

 imp_pred_iterator (base_type it, graph_type *g)
 
 imp_pred_iterator (imp_pred_iterator const &other)
 
imp_pred_iteratoroperator= (imp_pred_iterator const &other)
 
void check_consistency (const char *filename, int linenum)
 
vertexd_type & operator* ()
 
imp_pred_iteratoroperator-> ()
 
void operator++ (int xx)
 
void operator++ ()
 
bool operator== (const imp_pred_iterator &other)
 
bool operator!= (const imp_pred_iterator &other)
 
vertexd_type source_vid ()
 FIXME discuss these two new methods.
 
vertex_iterator source_vit ()
 
size_t vertex_id ()
 
size_t edge_id ()
 
void iter_setEnd (base_type itEnd)
 
int iter_done ()
 

Protected Attributes

base_type _iter
 
graph_type_graph_ptr
 
int boolEndIterSet
 
base_type _iterEnd
 

Private Types

typedef BaseIterator base_type
 
typedef Graph graph_type
 
typedef Graph::vertexd_type vertexd_type
 
typedef Graph::vertex_iterator vertex_iterator
 

Detailed Description

template<class GraphElement, class BaseIterator, class Graph>
class ibmppl::imp_pred_iterator< GraphElement, BaseIterator, Graph >

Edge predecessor iterator. Most users of the class should get instances of it from graph or vertex methods rather than directly using the constructors provided here.

We don't provide any "target()" methods here because presumably if you have this iterator, you already have access to the target and used it to get this iterator.

Author
ccjason (3/4/2014)

Member Function Documentation

template<class GraphElement , class BaseIterator , class Graph >
void ibmppl::imp_pred_iterator< GraphElement, BaseIterator, Graph >::check_consistency ( const char *  filename,
int  linenum 
)
inline

This method does a couple affordable consistency checks that should spot memory corruption problems. If a problem is encoutered, the CHKCONSIST_ASSERT4 method will handle it. See the checkconsistency.h file for how that's done, or define that yourself.

Parameters
filenamethe nominal file name of the code that's calling this method. In C++ code this is easily specified with the FILE automatic variable.
linenothe nominal line number of the code that's calling this method. In C++ cod this is easily specified with the LINE automatic variable.
Author
ccjason (3/4/2014)

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