Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
|
The iterator for traversing a type of edges. More...
#include <graph_reader.h>
Public Member Functions | |
EdgeIter (const std::shared_ptr< EdgeInfo > &edge_info, const std::string &prefix, AdjListType adj_list_type, IdType global_chunk_index, IdType offset, IdType chunk_begin, IdType chunk_end, std::shared_ptr< util::IndexConverter > index_converter) | |
EdgeIter (const EdgeIter &other) | |
Edge | operator* () |
IdType | source () |
IdType | destination () |
template<typename T > | |
Result< T > | property (const std::string &property) noexcept |
EdgeIter & | operator++ () |
EdgeIter | operator++ (int) |
EdgeIter | operator= (const EdgeIter &other) |
bool | operator== (const EdgeIter &rhs) const noexcept |
bool | operator!= (const EdgeIter &rhs) const noexcept |
IdType | global_chunk_index () const |
IdType | cur_offset () const |
bool | first_src (const EdgeIter &from, IdType id) |
bool | first_dst (const EdgeIter &from, IdType id) |
void | to_begin () |
bool | is_end () const |
bool | next_src () |
bool | next_dst () |
bool | next_src (IdType id) |
bool | next_dst (IdType id) |
Friends | |
class | OBSEdgeCollection |
class | OBDEdgesCollection |
class | UBSEdgesCollection |
class | UBDEdgesCollection |
The iterator for traversing a type of edges.
Definition at line 325 of file graph_reader.h.
|
inlineexplicit |
Initialize the iterator.
edge_info | The edge info that describes the edge type. |
prefix | The absolute prefix. |
adj_list_type | The type of adjList. |
global_chunk_index | The global index of the current edge chunk. |
offset | The current offset in the current edge chunk. |
chunk_begin | The index of the first chunk. |
chunk_end | The index of the last chunk. |
index_converter | The converter for transforming the edge chunk indices. |
Definition at line 340 of file graph_reader.h.
|
inline |
Copy constructor.
Definition at line 372 of file graph_reader.h.
|
inline |
Get the current offset in the current chunk.
Definition at line 509 of file graph_reader.h.
IdType graphar::EdgeIter::destination | ( | ) |
Get the destination vertex id for the current edge.
Definition at line 308 of file graph_reader.cc.
bool graphar::EdgeIter::first_dst | ( | const EdgeIter & | from, |
IdType | id | ||
) |
Let the input iterator to point to the first incoming edge of the vertex with specific id after the current position of the iterator.
from | The input iterator. |
id | The vertex id. |
Definition at line 431 of file graph_reader.cc.
bool graphar::EdgeIter::first_src | ( | const EdgeIter & | from, |
IdType | id | ||
) |
Let the input iterator to point to the first out-going edge of the vertex with specific id after the current position of the iterator.
from | The input iterator. |
id | The vertex id. |
Definition at line 316 of file graph_reader.cc.
|
inline |
Get the global index of the current edge chunk.
Definition at line 506 of file graph_reader.h.
|
inline |
Check if the current position is the end.
Definition at line 542 of file graph_reader.h.
|
inline |
Point to the next edge with the same destination, return false if not found.
Definition at line 575 of file graph_reader.h.
|
inline |
Point to the next edge with the specific destination, return false if not found.
Definition at line 616 of file graph_reader.h.
|
inline |
Point to the next edge with the same source, return false if not found.
Definition at line 545 of file graph_reader.h.
|
inline |
Point to the next edge with the specific source, return false if not found.
Definition at line 605 of file graph_reader.h.
|
inlinenoexcept |
The inequality operator.
Definition at line 499 of file graph_reader.h.
|
inline |
Construct and return the edge of the current offset.
Definition at line 389 of file graph_reader.h.
|
inline |
The prefix increment operator.
Definition at line 425 of file graph_reader.h.
|
inline |
The postfix increment operator.
Definition at line 466 of file graph_reader.h.
The copy assignment operator.
Definition at line 473 of file graph_reader.h.
|
inlinenoexcept |
The equality operator.
Definition at line 492 of file graph_reader.h.
|
inlinenoexcept |
Get the value of a property for the current edge.
Definition at line 405 of file graph_reader.h.
IdType graphar::EdgeIter::source | ( | ) |
Get the source vertex id for the current edge.
Definition at line 300 of file graph_reader.cc.
|
inline |
Let the iterator to point to the begin.
Definition at line 532 of file graph_reader.h.