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

References m_id, and m_nextid.

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

◆ GraphVertexObject() [2/2]

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

Definition at line 57 of file Graph.h.

References m_id.

58  {
59  m_id = id;
60  }

◆ ~GraphVertexObject()

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

Definition at line 45 of file Graph.cpp.

Referenced by setid().

46  {
47  }

Member Function Documentation

◆ getid()

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

Definition at line 62 of file Graph.h.

References m_id.

63  {
64  return m_id;
65  }

◆ setid()

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

Definition at line 67 of file Graph.h.

References LIB_UTILITIES_EXPORT, m_id, operator!=, operator==, and ~GraphVertexObject().

68  {
69  m_id = id;
70  }

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 62 of file Graph.cpp.

Referenced by setid().

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.

Referenced by setid().

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

Member Data Documentation

◆ m_id

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

◆ m_nextid

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

Definition at line 83 of file Graph.h.

Referenced by GraphVertexObject().