Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
Inheritance graph
[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 47 of file Graph.h.

Constructor & Destructor Documentation

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

Definition at line 51 of file Graph.h.

References m_id, and m_nextid.

52  {
53  m_id = m_nextid++;
54  }
static GraphVertexID m_nextid
Definition: Graph.h:84
Nektar::LibUtilities::GraphVertexObject::GraphVertexObject ( const GraphVertexID  id)
inline

Definition at line 58 of file Graph.h.

References m_id.

59  {
60  m_id = id;
61  }
Nektar::LibUtilities::GraphVertexObject::~GraphVertexObject ( )
virtual

Definition at line 46 of file Graph.cpp.

47  {
48  }

Member Function Documentation

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

Definition at line 63 of file Graph.h.

References m_id.

64  {
65  return m_id;
66  }
void Nektar::LibUtilities::GraphVertexObject::setid ( const GraphVertexID  id)
inline

Definition at line 68 of file Graph.h.

References m_id.

69  {
70  m_id = id;
71  }

Friends And Related Function Documentation

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

Definition at line 76 of file Graph.cpp.

77  {
78  return (x.m_id != y.m_id);
79  }
bool operator== ( const GraphVertexObject x,
const GraphVertexObject y 
)
friend

Definition at line 71 of file Graph.cpp.

72  {
73  return (x.m_id == y.m_id);
74  }

Member Data Documentation

GraphVertexID Nektar::LibUtilities::GraphVertexObject::m_id
protected
int Nektar::LibUtilities::GraphVertexObject::m_nextid = 0
staticprivate

Definition at line 84 of file Graph.h.

Referenced by GraphVertexObject().