Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
Public Member Functions | List of all members
graphar::VertexIter Class Reference

The iterator for traversing a type of vertices. More...

#include <graph_reader.h>

Public Member Functions

 VertexIter (const std::shared_ptr< VertexInfo > &vertex_info, const std::string &prefix, IdType offset) noexcept
 
 VertexIter (const VertexIter &other)
 
Vertex operator* () noexcept
 
IdType id ()
 
template<typename T >
Result< T > property (const std::string &property) noexcept
 
VertexIteroperator++ () noexcept
 
VertexIter operator++ (int)
 
VertexIter operator+ (IdType offset)
 
VertexIteroperator+= (IdType offset)
 
bool operator== (const VertexIter &rhs) const noexcept
 
bool operator!= (const VertexIter &rhs) const noexcept
 

Detailed Description

The iterator for traversing a type of vertices.

Definition at line 165 of file graph_reader.h.

Constructor & Destructor Documentation

◆ VertexIter() [1/2]

graphar::VertexIter::VertexIter ( const std::shared_ptr< VertexInfo > &  vertex_info,
const std::string &  prefix,
IdType  offset 
)
inlineexplicitnoexcept

Initialize the iterator.

Parameters
vertex_infoThe vertex info that describes the vertex type.
prefixThe absolute prefix.
offsetThe current offset of the readers.

Definition at line 174 of file graph_reader.h.

◆ VertexIter() [2/2]

graphar::VertexIter::VertexIter ( const VertexIter other)
inline

Copy constructor.

Definition at line 183 of file graph_reader.h.

Member Function Documentation

◆ id()

IdType graphar::VertexIter::id ( )
inline

Get the vertex id of the current offset.

Definition at line 195 of file graph_reader.h.

◆ operator!=()

bool graphar::VertexIter::operator!= ( const VertexIter rhs) const
inlinenoexcept

The inequality operator.

Definition at line 250 of file graph_reader.h.

◆ operator*()

Vertex graphar::VertexIter::operator* ( )
inlinenoexcept

Construct and return the vertex of the current offset.

Definition at line 187 of file graph_reader.h.

◆ operator+()

VertexIter graphar::VertexIter::operator+ ( IdType  offset)
inline

The add operator.

Definition at line 232 of file graph_reader.h.

◆ operator++() [1/2]

VertexIter& graphar::VertexIter::operator++ ( )
inlinenoexcept

The prefix increment operator.

Definition at line 219 of file graph_reader.h.

◆ operator++() [2/2]

VertexIter graphar::VertexIter::operator++ ( int  )
inline

The postfix increment operator.

Definition at line 225 of file graph_reader.h.

◆ operator+=()

VertexIter& graphar::VertexIter::operator+= ( IdType  offset)
inline

The add-assign operator.

Definition at line 239 of file graph_reader.h.

◆ operator==()

bool graphar::VertexIter::operator== ( const VertexIter rhs) const
inlinenoexcept

The equality operator.

Definition at line 245 of file graph_reader.h.

◆ property()

template<typename T >
Result<T> graphar::VertexIter::property ( const std::string &  property)
inlinenoexcept

Get the value for a property of the current vertex.

Definition at line 199 of file graph_reader.h.


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