MTK++ Latest version: 0.2.0

Public Member Functions | Static Public Member Functions | Protected Attributes
MTKpp::idObject Class Reference

#include <mtkpp/src/Utils/idObject.h>

List of all members.

Public Member Functions

 idObject ()
 idObject Constructor
 idObject (int i, double d)
 idObject Constructor
 idObject (int i, double d, std::string n)
 idObject Constructor
virtual ~idObject ()
 idObject Destructor
void setI (int i)
void setD (double d)
void setN (std::string n)
int getI ()
double getD ()
std::string getN ()

Static Public Member Functions

static bool less (const idObject *lhs, const idObject *rhs)
 Compares two idObject based on d.
static bool greater (const idObject *lhs, const idObject *rhs)
 Compares two idObject based on d.

Protected Attributes

int i
 index
double d
 numerical value
std::string n
 object name

Detailed Description

Author:
Martin Peters
Version:
0.1
Date:
2005

Constructor & Destructor Documentation

MTKpp::idObject::idObject ( ) [inline]

idObject Constructor

References d, and i.

MTKpp::idObject::idObject ( int  i,
double  d 
) [inline]

idObject Constructor

References d, and i.

MTKpp::idObject::idObject ( int  i,
double  d,
std::string  n 
) [inline]

idObject Constructor

References d, i, and n.

virtual MTKpp::idObject::~idObject ( ) [inline, virtual]

idObject Destructor


Member Function Documentation

static bool MTKpp::idObject::less ( const idObject lhs,
const idObject rhs 
) [inline, static]

Compares two idObject based on d.

Parameters:
lhsfirst idObject
rhsSecond idObject
Returns:
boolean

After this function is defined the STL sort() function can be used

References d.

Referenced by MTKpp::protonate::optimizePolarHs(), MTKpp::proProtonate::optimizePolarHs(), MTKpp::watProtonate::run(), and MTKpp::idObjectList::sortList().

static bool MTKpp::idObject::greater ( const idObject lhs,
const idObject rhs 
) [inline, static]

Compares two idObject based on d.

Parameters:
lhsfirst idObject
rhsSecond idObject
Returns:
boolean

After this function is defined the STL sort() function can be used

References d.

Referenced by MTKpp::idObjectList::sortList().

void MTKpp::idObject::setI ( int  i) [inline]

References i.

void MTKpp::idObject::setD ( double  d) [inline]

References d.

void MTKpp::idObject::setN ( std::string  n) [inline]

References n.

int MTKpp::idObject::getI ( ) [inline]

References i.

double MTKpp::idObject::getD ( ) [inline]

References d.

std::string MTKpp::idObject::getN ( ) [inline]

References n.


Member Data Documentation

int MTKpp::idObject::i [protected]

index

Referenced by getI(), idObject(), and setI().

double MTKpp::idObject::d [protected]

numerical value

Referenced by getD(), greater(), idObject(), less(), and setD().

std::string MTKpp::idObject::n [protected]

object name

Referenced by getN(), idObject(), and setN().


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

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