|
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 491 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 506 of file graph_reader.h.
|
inline |
Copy constructor.
Definition at line 538 of file graph_reader.h.
|
inline |
Get the current offset in the current chunk.
Definition at line 680 of file graph_reader.h.
| IdType graphar::EdgeIter::destination | ( | ) |
Get the destination vertex id for the current edge.
Definition at line 706 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 829 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 714 of file graph_reader.cc.
|
inline |
Get the global index of the current edge chunk.
Definition at line 677 of file graph_reader.h.
|
inline |
Check if the current position is the end.
Definition at line 713 of file graph_reader.h.
|
inline |
Point to the next edge with the same destination, return false if not found.
Definition at line 746 of file graph_reader.h.
|
inline |
Point to the next edge with the specific destination, return false if not found.
Definition at line 787 of file graph_reader.h.
|
inline |
Point to the next edge with the same source, return false if not found.
Definition at line 716 of file graph_reader.h.
|
inline |
Point to the next edge with the specific source, return false if not found.
Definition at line 776 of file graph_reader.h.
|
inlinenoexcept |
The inequality operator.
Definition at line 670 of file graph_reader.h.
|
inline |
Construct and return the edge of the current offset.
Definition at line 555 of file graph_reader.h.
|
inline |
The prefix increment operator.
Definition at line 591 of file graph_reader.h.
|
inline |
The postfix increment operator.
Definition at line 637 of file graph_reader.h.
The copy assignment operator.
Definition at line 644 of file graph_reader.h.
|
inlinenoexcept |
The equality operator.
Definition at line 663 of file graph_reader.h.
|
inlinenoexcept |
Get the value of a property for the current edge.
Definition at line 571 of file graph_reader.h.
| IdType graphar::EdgeIter::source | ( | ) |
Get the source vertex id for the current edge.
Definition at line 698 of file graph_reader.cc.
|
inline |
Let the iterator to point to the begin.
Definition at line 703 of file graph_reader.h.