MTK++ Latest version: 0.2.0

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

#include <mtkpp/src/Statistics/sheet.h>

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

List of all members.

Public Member Functions

 sheet ()
 sheet Constructor
virtual ~sheet ()
 sheet Destructor
void setName (std::string n)
 Set the name of the sheet.
std::string getName ()
 Get the name of the sheet.
table< double > * addTable ()
 Add a table to the sheet.
table< int > * addIntTable ()
 Add an integer table to the sheet.
table< std::string > * addStringTable ()
 Add a string table to the sheet.
table< double > * getTable (std::string n)
 Get a table by name.
table< int > * getIntTable (std::string n)
 Get an integer table by name.
std::vector< table< double > * > getTables ()
 Get tables.
std::vector< table< int > * > getIntTables ()
 Get the integer tables.
void clear ()
 Delete all tables.

Protected Types

typedef std::vector< table
< double > * >::iterator 
tableIterator
 table iterator
typedef std::vector< table
< int > * >::iterator 
intTableIterator
 int table iterator
typedef std::vector< table
< std::string > * >::iterator 
stringTableIterator
 string table iterator

Protected Attributes

std::string itsName
 sheet name
table< double > * pTable
 table pointer
table< int > * pIntTable
 table pointer
std::vector< table< double > * > tableList
 list of table pointers
std::vector< table< int > * > intTableList
 list of int table pointers
std::vector< table
< std::string > * > 
stringTableList
 list of string table pointers

Detailed Description

Author:
Martin Peters
Version:
0.1
Date:
2007

Member Typedef Documentation

typedef std::vector<table<double>*>::iterator MTKpp::sheet::tableIterator [protected]

table iterator

typedef std::vector<table<int>*>::iterator MTKpp::sheet::intTableIterator [protected]

int table iterator

typedef std::vector<table<std::string>*>::iterator MTKpp::sheet::stringTableIterator [protected]

string table iterator


Constructor & Destructor Documentation

MTKpp::sheet::sheet ( )

sheet Constructor

References itsName, and pTable.

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

sheet Destructor

References clear().


Member Function Documentation

void MTKpp::sheet::setName ( std::string  n)

Set the name of the sheet.

Parameters:
nsheet name

References itsName.

Referenced by main(), and MTKpp::gaussianParser::readFormattedChkPtFile().

std::string MTKpp::sheet::getName ( )

Get the name of the sheet.

Returns:
sheet name

References itsName.

Referenced by getIntTable(), and getTable().

table< double > * MTKpp::sheet::addTable ( )

Add a table to the sheet.

Returns:
table pointer

References tableList.

Referenced by MTKpp::dMParser::import(), main(), MTKpp::gaussianParser::Read(), MTKpp::gaussianParser::readFormattedChkPtFile(), and MTKpp::pca::run().

table< int > * MTKpp::sheet::addIntTable ( )

Add an integer table to the sheet.

Returns:
table pointer

References intTableList.

Referenced by MTKpp::pls::runCV().

table< std::string > * MTKpp::sheet::addStringTable ( )

Add a string table to the sheet.

Returns:
table pointer

References stringTableList.

Referenced by MTKpp::gaussianParser::Read().

table< double > * MTKpp::sheet::getTable ( std::string  n)

Get a table by name.

Parameters:
ntable name
Returns:
table name

References getName(), and tableList.

Referenced by MTKpp::gaussianParser::getForceConstant(), main(), and MTKpp::pls::pls().

table< int > * MTKpp::sheet::getIntTable ( std::string  n)

Get an integer table by name.

Parameters:
ntable name
Returns:
table name

References getName(), and intTableList.

std::vector< table< double > * > MTKpp::sheet::getTables ( )

Get tables.

References tableList.

std::vector< table< int > * > MTKpp::sheet::getIntTables ( )

Get the integer tables.

References intTableList.

void MTKpp::sheet::clear ( )

Delete all tables.

References intTableList, pIntTable, pTable, and tableList.

Referenced by ~sheet().


Member Data Documentation

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

sheet name

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

table<double>* MTKpp::sheet::pTable [protected]

table pointer

Referenced by clear(), and sheet().

table<int>* MTKpp::sheet::pIntTable [protected]

table pointer

Referenced by clear().

std::vector<table<double>*> MTKpp::sheet::tableList [protected]

list of table pointers

Referenced by addTable(), clear(), getTable(), and getTables().

std::vector<table<int>*> MTKpp::sheet::intTableList [protected]

list of int table pointers

Referenced by addIntTable(), clear(), getIntTable(), and getIntTables().

std::vector<table<std::string>*> MTKpp::sheet::stringTableList [protected]

list of string table pointers

Referenced by addStringTable().


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

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