Nektar++
Public Member Functions | Protected Attributes | Static Private Attributes | Friends | List of all members
Nektar::LibUtilities::GraphVertexObject Class Reference

#include <Graph.h>

Public Member Functions

 GraphVertexObject ()
 
 GraphVertexObject (const GraphVertexID id)
 
size_t getid ()
 
void setid (const GraphVertexID id)
 
virtual ~GraphVertexObject ()
 

Protected Attributes

GraphVertexID m_id
 

Static Private Attributes

static GraphVertexID m_nextid = 0
 

Friends

bool operator== (const GraphVertexObject &x, const GraphVertexObject &y)
 
bool operator!= (const GraphVertexObject &x, const GraphVertexObject &y)
 

Detailed Description

Definition at line 44 of file Graph.h.

Constructor & Destructor Documentation

◆ GraphVertexObject() [1/2]

Nektar::LibUtilities::GraphVertexObject::GraphVertexObject ( )
inline

Definition at line 47 of file Graph.h.

48 {
49 m_id = m_nextid++;
50 }
static GraphVertexID m_nextid
Definition: Graph.h:78

References m_id, and m_nextid.

◆ GraphVertexObject() [2/2]

Nektar::LibUtilities::GraphVertexObject::GraphVertexObject ( const GraphVertexID  id)
inline

Definition at line 52 of file Graph.h.

53 {
54 m_id = id;
55 }

References m_id.

◆ ~GraphVertexObject()

Nektar::LibUtilities::GraphVertexObject::~GraphVertexObject ( )
virtual

Definition at line 43 of file Graph.cpp.

44{
45}

Member Function Documentation

◆ getid()

size_t Nektar::LibUtilities::GraphVertexObject::getid ( )
inline

Definition at line 57 of file Graph.h.

58 {
59 return m_id;
60 }

References m_id.

◆ setid()

void Nektar::LibUtilities::GraphVertexObject::setid ( const GraphVertexID  id)
inline

Definition at line 62 of file Graph.h.

63 {
64 m_id = id;
65 }

References m_id.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const GraphVertexObject x,
const GraphVertexObject y 
)
friend

Definition at line 60 of file Graph.cpp.

61{
62 return (x.m_id != y.m_id);
63}

◆ operator==

bool operator== ( const GraphVertexObject x,
const GraphVertexObject y 
)
friend

Definition at line 55 of file Graph.cpp.

56{
57 return (x.m_id == y.m_id);
58}

Member Data Documentation

◆ m_id

GraphVertexID Nektar::LibUtilities::GraphVertexObject::m_id
protected

Definition at line 75 of file Graph.h.

Referenced by getid(), GraphVertexObject(), and setid().

◆ m_nextid

size_t Nektar::LibUtilities::GraphVertexObject::m_nextid = 0
staticprivate

Definition at line 78 of file Graph.h.

Referenced by GraphVertexObject().