libgrape-lite
A C++ library for parallel graph processing
Loading...
Searching...
No Matches
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 Vertex & operator= (const T &value) noexcept
 
DEV_HOST_INLINE Vertex & operator++ () noexcept
 
DEV_HOST_INLINE Vertex operator++ (int)
 
DEV_HOST_INLINE Vertex & operator-- () 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

T value_ {}
 

Friends

InArchive & operator<< (InArchive &archive, const Vertex &h)
 
OutArchive & operator>> (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.