MTK++ Latest version: 0.2.0

Public Member Functions | Protected Types | Protected Attributes
MTKpp::vertex Class Reference

Container for vertex info. More...

#include <mtkpp/src/Graph/vertex.h>

Collaboration diagram for MTKpp::vertex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vertex ()
 vertex Constructor
virtual ~vertex ()
 vertex Destructor.
void setName (std::string name)
 Set name of vertex.
std::string getName ()
 Get name of vertex.
void setIndex (int i)
 Set index of vertex.
int getIndex ()
 Get index of vertex.
void setParent (vertex *v)
 Set Parent vertex.
vertexgetParent ()
 Get Parent vertex.
void setVisited ()
 Set visited boolean.
void setVisited (bool v)
 Set visited boolean.
bool isVisited ()
 Get visited boolean.
void setLeaf ()
 Set leaf boolean.
bool isLeaf ()
 Get leaf boolean.
void setLayer (int l)
 Set layer value.
int getLayer ()
 Get layer value.
void setValue (double d)
 Set value.
double getValue ()
 Get value.
void addNeighbor (vertex *v)
 Add bonded vertex.
void delNeighbor (vertex *v)
 Delete bonded vertex.
std::vector< vertex * > getNeighbors ()
 Get bonded vertices.

Protected Types

typedef std::vector< vertex * >
::iterator 
VertexIterator
 vertex iterator

Protected Attributes

std::string itsName
 vertex name
vertexitsParent
 parent vertex
std::vector< vertex * > itsNeighbors
 bonded vertices
int itsLayer
 layer value
double itsValue
 value
int itsIndex
 internal index
bool visited
 Was visited or not.
bool leaf
 leaf or not

Detailed Description

Container for vertex info.

Author:
Martin Peters
Version:
0.1
Date:
2006

Member Typedef Documentation

typedef std::vector<vertex*>::iterator MTKpp::vertex::VertexIterator [protected]

vertex iterator


Constructor & Destructor Documentation

MTKpp::vertex::vertex ( )

vertex Constructor

References itsIndex, itsLayer, itsName, itsParent, itsValue, leaf, and visited.

MTKpp::vertex::~vertex ( ) [virtual]

vertex Destructor.


Member Function Documentation

void MTKpp::vertex::setName ( std::string  name)

Set name of vertex.

Parameters:
namevertex name

References itsName.

Referenced by MTKpp::hydrophobize::run(), MTKpp::hybridize::runLabute(), and MTKpp::complex::setCoreFragment().

std::string MTKpp::vertex::getName ( )

Get name of vertex.

Returns:
vertex name

References itsName.

void MTKpp::vertex::setIndex ( int  i)

Set index of vertex.

Parameters:
iinternal index

References itsIndex.

Referenced by MTKpp::graph::addVertex().

int MTKpp::vertex::getIndex ( )
void MTKpp::vertex::setParent ( vertex v)

Set Parent vertex.

Parameters:
vparent vertex

References itsParent.

vertex * MTKpp::vertex::getParent ( )

Get Parent vertex.

Returns:
parent vertex

References itsParent.

void MTKpp::vertex::setVisited ( )

Set visited boolean.

References visited.

Referenced by MTKpp::graph::dfs().

void MTKpp::vertex::setVisited ( bool  v)

Set visited boolean.

Parameters:
vboolean

References visited.

bool MTKpp::vertex::isVisited ( )

Get visited boolean.

References visited.

void MTKpp::vertex::setLeaf ( )

Set leaf boolean.

References leaf.

bool MTKpp::vertex::isLeaf ( )

Get leaf boolean.

References leaf.

Referenced by MTKpp::graph::dfs().

void MTKpp::vertex::setLayer ( int  l)

Set layer value.

Parameters:
llayer value

References itsLayer.

int MTKpp::vertex::getLayer ( )

Get layer value.

References itsLayer.

Referenced by MTKpp::graph::dfs().

void MTKpp::vertex::setValue ( double  d)

Set value.

Parameters:
dvalue

References itsValue.

double MTKpp::vertex::getValue ( )

Get value.

References itsValue.

void MTKpp::vertex::addNeighbor ( vertex v)

Add bonded vertex.

Parameters:
vneighboring vertex

References itsNeighbors.

Referenced by MTKpp::graph::addEdge().

void MTKpp::vertex::delNeighbor ( vertex v)

Delete bonded vertex.

Parameters:
vneighboring vertex

References itsNeighbors.

Referenced by MTKpp::graph::delEdge().

std::vector< vertex * > MTKpp::vertex::getNeighbors ( )

Get bonded vertices.

Returns:
neighboring vertices

References itsNeighbors.

Referenced by MTKpp::graph::dfs().


Member Data Documentation

std::string MTKpp::vertex::itsName [protected]

vertex name

Referenced by getName(), setName(), and vertex().

parent vertex

Referenced by getParent(), setParent(), and vertex().

std::vector<vertex*> MTKpp::vertex::itsNeighbors [protected]

bonded vertices

Referenced by addNeighbor(), delNeighbor(), and getNeighbors().

int MTKpp::vertex::itsLayer [protected]

layer value

Referenced by getLayer(), setLayer(), and vertex().

double MTKpp::vertex::itsValue [protected]

value

Referenced by getValue(), setValue(), and vertex().

int MTKpp::vertex::itsIndex [protected]

internal index

Referenced by getIndex(), setIndex(), and vertex().

bool MTKpp::vertex::visited [protected]

Was visited or not.

Referenced by isVisited(), setVisited(), and vertex().

bool MTKpp::vertex::leaf [protected]

leaf or not

Referenced by isLeaf(), setLeaf(), and vertex().


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

Generated on Fri Dec 23 2011 09:28:55 for MTK++ by Doxygen 1.7.5.1