Vertex Class Reference

#include <Vertex.h>

Inheritance diagram for Vertex:

TaggedObject List of all members.

Public Member Functions

 Vertex (int tag, int ref, double weight=0, int color=0)
 Vertex (const Vertex &other)
virtual ~Vertex ()
virtual void setWeight (double newWeight)
virtual void setColor (int newColor)
virtual void setTmp (int newTmp)
virtual int getRef (void) const
virtual double getWeight (void) const
virtual int getColor (void) const
virtual int getTmp (void) const
virtual int addEdge (int otherTag)
virtual int getDegree (void) const
virtual const IDgetAdjacency (void) const
virtual void Print (OPS_Stream &s, int flag=0)
int sendSelf (int commitTag, Channel &theChannel)
int recvSelf (int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Detailed Description

Definition at line 48 of file Vertex.h.


Constructor & Destructor Documentation

Vertex::Vertex ( int  tag,
int  ref,
double  weight = 0,
int  color = 0 
)

Definition at line 39 of file Vertex.cpp.

Vertex::Vertex ( const Vertex other  ) 

Definition at line 47 of file Vertex.cpp.

Vertex::~Vertex (  )  [virtual]

Definition at line 54 of file Vertex.cpp.


Member Function Documentation

void Vertex::setWeight ( double  newWeight  )  [virtual]

Definition at line 60 of file Vertex.cpp.

Referenced by Graph::recvSelf().

void Vertex::setColor ( int  newColor  )  [virtual]

Definition at line 66 of file Vertex.cpp.

Referenced by Metis::partition(), and Graph::recvSelf().

void Vertex::setTmp ( int  newTmp  )  [virtual]

int Vertex::getRef ( void   )  const [virtual]

double Vertex::getWeight ( void   )  const [virtual]

int Vertex::getColor ( void   )  const [virtual]

int Vertex::getTmp ( void   )  const [virtual]

int Vertex::addEdge ( int  otherTag  )  [virtual]

Definition at line 102 of file Vertex.cpp.

References ID::insert().

Referenced by Graph::addEdge(), ArrayGraph::addEdge(), and Graph::recvSelf().

int Vertex::getDegree ( void   )  const [virtual]

Definition at line 114 of file Vertex.cpp.

Referenced by Graph::addVertex(), and ArrayGraph::addVertex().

void Vertex::Print ( OPS_Stream s,
int  flag = 0 
) [virtual]

Implements TaggedObject.

Definition at line 126 of file Vertex.cpp.

References TaggedObject::getTag().

Referenced by ArrayGraph::Print().

int Vertex::sendSelf ( int  commitTag,
Channel theChannel 
)

int Vertex::recvSelf ( int  commitTag,
Channel theChannel,
FEM_ObjectBroker theBroker 
)


The documentation for this class was generated from the following files:

Generated on Mon Oct 23 15:05:51 2006 for OpenSees by doxygen 1.5.0