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

#include <Graph.h>

Inheritance diagram for Nektar::LibUtilities::GraphVertexObject:
[legend]

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 46 of file Graph.h.

Constructor & Destructor Documentation

◆ GraphVertexObject() [1/2]

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

Definition at line 49 of file Graph.h.

50 {
51 m_id = m_nextid++;
52 }
static GraphVertexID m_nextid
Definition: Graph.h:80

References m_id, and m_nextid.

◆ GraphVertexObject() [2/2]

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

Definition at line 54 of file Graph.h.

55 {
56 m_id = id;
57 }

References m_id.

◆ ~GraphVertexObject()

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

Definition at line 45 of file Graph.cpp.

46{
47}

Member Function Documentation

◆ getid()

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

Definition at line 59 of file Graph.h.

60 {
61 return m_id;
62 }

References m_id.

◆ setid()

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

Definition at line 64 of file Graph.h.

65 {
66 m_id = id;
67 }

References m_id.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 62 of file Graph.cpp.

63{
64 return (x.m_id != y.m_id);
65}

◆ operator==

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

Definition at line 57 of file Graph.cpp.

58{
59 return (x.m_id == y.m_id);
60}

Member Data Documentation

◆ m_id

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

Definition at line 77 of file Graph.h.

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

◆ m_nextid

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

Definition at line 80 of file Graph.h.

Referenced by GraphVertexObject().