libgrape-lite
A C++ library for parallel graph processing
Public Member Functions | Private Attributes | Friends | List of all members
grape::Vertex< T > Class Template Reference

A Vertex object only contains id of a vertex. It will be used when iterating vertices of a fragment and accessing data and neighbor of a vertex. More...

#include <vertex_array.h>

Public Member Functions

DEV_HOST Vertex (const T &value) noexcept
 
DEV_HOST_INLINE Vertexoperator= (const T &value) noexcept
 
DEV_HOST_INLINE Vertexoperator++ () noexcept
 
DEV_HOST_INLINE Vertex operator++ (int)
 
DEV_HOST_INLINE Vertexoperator-- () noexcept
 
DEV_HOST_INLINE Vertex operator-- (int) noexcept
 
DEV_HOST_INLINE Vertex operator+ (size_t offset) const noexcept
 
DEV_HOST_INLINE bool operator== (const Vertex &rhs) const
 
DEV_HOST_INLINE bool operator!= (const Vertex &rhs) const
 
DEV_HOST_INLINE void Swap (Vertex &rhs)
 
DEV_HOST_INLINE bool operator< (const Vertex &rhs) const
 
DEV_HOST_INLINE T GetValue () const
 
DEV_HOST_INLINE void SetValue (T value)
 

Private Attributes

value_ {}
 

Friends

InArchiveoperator<< (InArchive &archive, const Vertex &h)
 
OutArchiveoperator>> (OutArchive &archive, Vertex &h)
 

Detailed Description

template<typename T>
class grape::Vertex< T >

A Vertex object only contains id of a vertex. It will be used when iterating vertices of a fragment and accessing data and neighbor of a vertex.

Template Parameters
TVertex ID type.