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)
 
int 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:82

References m_id, and m_nextid.

◆ GraphVertexObject() [2/2]

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

Definition at line 56 of file Graph.h.

57  {
58  m_id = id;
59  }

References m_id.

◆ ~GraphVertexObject()

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

Definition at line 45 of file Graph.cpp.

46 {
47 }

Member Function Documentation

◆ getid()

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

Definition at line 61 of file Graph.h.

62  {
63  return m_id;
64  }

References m_id.

◆ setid()

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

Definition at line 66 of file Graph.h.

67  {
68  m_id = id;
69  }

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

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

◆ m_nextid

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

Definition at line 82 of file Graph.h.

Referenced by GraphVertexObject().