ArrayGraph Class Reference

#include <ArrayGraph.h>

Inheritance diagram for ArrayGraph:

Graph List of all members.

Public Member Functions

 ArrayGraph (int arraySize)
virtual ~ArrayGraph ()
virtual bool addVertex (Vertex *vertexPtr)
virtual int addEdge (int vertexTag, int otherVertexTag)
virtual VertexgetVertexPtr (int vertexTag)
virtual VertexItergetVertices (void)
int getNumVertex (void) const
int getNumEdge (void) const
virtual void Print (OPS_Stream &s) const

Protected Member Functions

int getArraySize (void) const

Friends

class ArrayVertexIter
OPS_Streamoperator<< (OPS_Stream &s, const ArrayGraph &M)

Detailed Description

Definition at line 45 of file ArrayGraph.h.


Constructor & Destructor Documentation

ArrayGraph::ArrayGraph ( int  arraySize  ) 

Definition at line 45 of file ArrayGraph.cpp.

References opserr.

ArrayGraph::~ArrayGraph (  )  [virtual]

Definition at line 63 of file ArrayGraph.cpp.


Member Function Documentation

bool ArrayGraph::addVertex ( Vertex vertexPtr  )  [virtual]

int ArrayGraph::addEdge ( int  vertexTag,
int  otherVertexTag 
) [virtual]

Reimplemented from Graph.

Definition at line 209 of file ArrayGraph.cpp.

References Vertex::addEdge(), and getVertexPtr().

Vertex * ArrayGraph::getVertexPtr ( int  vertexTag  )  [virtual]

Reimplemented from Graph.

Definition at line 175 of file ArrayGraph.cpp.

References TaggedObject::getTag().

Referenced by addEdge().

VertexIter & ArrayGraph::getVertices ( void   )  [virtual]

Reimplemented from Graph.

Definition at line 232 of file ArrayGraph.cpp.

References ArrayVertexIter::reset().

int ArrayGraph::getNumVertex ( void   )  const [virtual]

Reimplemented from Graph.

Definition at line 241 of file ArrayGraph.cpp.

int ArrayGraph::getNumEdge ( void   )  const [virtual]

Reimplemented from Graph.

Definition at line 248 of file ArrayGraph.cpp.

void ArrayGraph::Print ( OPS_Stream s  )  const [virtual]

Definition at line 262 of file ArrayGraph.cpp.

References endln, and Vertex::Print().

Referenced by operator<<().

int ArrayGraph::getArraySize ( void   )  const [protected]

Definition at line 255 of file ArrayGraph.cpp.


Friends And Related Function Documentation

friend class ArrayVertexIter [friend]

Definition at line 62 of file ArrayGraph.h.

OPS_Stream& operator<< ( OPS_Stream s,
const ArrayGraph M 
) [friend]

Definition at line 277 of file ArrayGraph.cpp.


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

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