Interpolator::Table Class Reference

This class is the main interface for a Table object The values used to interpolate need to be increasingly ordered !!! More...

#include <Table.h>

Inherited by Interpolator::Table1D, and Interpolator::Table2D.

Inheritance diagram for Interpolator::Table:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Table ()
 Default constructor.
 Table (std::string sName, std::string sDescription, std::string InterpolationType, std::string sFilePath="")
 This constructor requires 4 parameters :
  • the name of the table
  • a description of the table
  • the wanted interpolation type
  • the file path if the table is constructed thanks a file (optional).

virtual ~Table ()
 Destructor.
std::string getName () const
 Return the name of the table.
std::string getDescription () const
 Return the description of the table.
std::string getInterpolationType () const
 Return the interpolation type of the table.
std::string getFilePath () const
 Return the file path used to initialized the Table (if a file is used).
virtual double computeValue ()=0
virtual void printInfos ()=0

Private Attributes

std::string _sName
std::string _sDescription
std::string _sInterpolationType
std::string _sFilePath

Detailed Description

This class is the main interface for a Table object The values used to interpolate need to be increasingly ordered !!!

Definition at line 21 of file Table.h.


Constructor & Destructor Documentation

Interpolator::Table::Table  ) 
 

Default constructor.

Definition at line 13 of file Table.cpp.

00013              : ComputingObject()
00014 {
00015 
00016 }

Interpolator::Table::Table std::string  sName,
std::string  sDescription,
std::string  InterpolationType,
std::string  sFilePath = ""
 

This constructor requires 4 parameters :

  • the name of the table
  • a description of the table
  • the wanted interpolation type
  • the file path if the table is constructed thanks a file (optional).

Definition at line 30 of file Table.cpp.

00030                                                                                                     : ComputingObject(),
00031 _sName(sName),_sDescription(sDescription),_sInterpolationType(sInterpolationType),_sFilePath(sFilePath)
00032 {
00033 
00034 }

Interpolator::Table::~Table  )  [virtual]
 

Destructor.

Definition at line 20 of file Table.cpp.

00021 {
00022 
00023 }


Member Function Documentation

virtual double Interpolator::Table::computeValue  )  [pure virtual]
 

Implemented in Interpolator::Table1D, and Interpolator::Table2D.

std::string Interpolator::Table::getDescription  )  const
 

Return the description of the table.

Definition at line 43 of file Table.cpp.

References _sDescription.

Referenced by Interpolator::Table2D::initializeInterpolator(), Interpolator::Table2D::printInfos(), and Interpolator::Table1D::printInfos().

00044 {
00045         return _sDescription;
00046 }

std::string Interpolator::Table::getFilePath  )  const
 

Return the file path used to initialized the Table (if a file is used).

Definition at line 55 of file Table.cpp.

References _sFilePath.

00056 {
00057         return _sFilePath;
00058 }

std::string Interpolator::Table::getInterpolationType  )  const
 

Return the interpolation type of the table.

Definition at line 49 of file Table.cpp.

References _sInterpolationType.

Referenced by Interpolator::Table2D::initializeInterpolator(), main(), Interpolator::Table2D::printInfos(), and Interpolator::Table1D::printInfos().

00050 {
00051         return _sInterpolationType;
00052 }

std::string Interpolator::Table::getName  )  const
 

Return the name of the table.

Definition at line 37 of file Table.cpp.

References _sName.

Referenced by Interpolator::Table2D::printInfos(), and Interpolator::Table1D::printInfos().

00038 {
00039         return _sName;
00040 }

virtual void Interpolator::Table::printInfos  )  [pure virtual]
 

Implemented in Interpolator::Table1D, and Interpolator::Table2D.


Member Data Documentation

std::string Interpolator::Table::_sDescription [private]
 

Definition at line 42 of file Table.h.

Referenced by getDescription().

std::string Interpolator::Table::_sFilePath [private]
 

Definition at line 44 of file Table.h.

Referenced by getFilePath().

std::string Interpolator::Table::_sInterpolationType [private]
 

Definition at line 43 of file Table.h.

Referenced by getInterpolationType().

std::string Interpolator::Table::_sName [private]
 

Definition at line 41 of file Table.h.

Referenced by getName().


The documentation for this class was generated from the following files:
Generated on Tue Apr 14 09:51:44 2009 for Interpolator Library by  doxygen 1.4.5