PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Type of one-dimensional integrations (wrapper for enum). More...
Public Types | |
enum | Type { UNDEFINED = 0 , TRAPEZOIDAL = 1 , TRAPEZOIDALLOG = 2 , GL = 3 , DEXP = 4 , GK21_ADAPTIVE = 5 } |
Type of integration. More... | |
Public Member Functions | |
IntegratorType1D () | |
Default constructor. More... | |
IntegratorType1D (Type type) | |
Assignment constructor. More... | |
IntegratorType1D (const std::string &integratorType1DString) | |
Assignment constructor trying to match integration type from given string. More... | |
virtual | ~IntegratorType1D () |
Default destructor. More... | |
operator Type () const | |
Operator that casts back into an enum. More... | |
std::string | toString () const |
Returns a formatted string displaying the type. More... | |
std::string | getShortName () |
Returns a short name for the type. More... | |
IntegratorType1D::Type | getType () const |
Returns the wrapped enum. More... | |
void | setType (Type type) |
Set the type of integration. More... | |
Private Attributes | |
IntegratorType1D::Type | m_type |
Type of integration (enum). More... | |
Type of one-dimensional integrations (wrapper for enum).
See Integrator1D documentation for an example.
Type of integration.
NumA::IntegratorType1D::IntegratorType1D | ( | ) |
Default constructor.
NumA::IntegratorType1D::IntegratorType1D | ( | Type | type | ) |
Assignment constructor.
type | Type to be assigned. |
NumA::IntegratorType1D::IntegratorType1D | ( | const std::string & | integratorType1DString | ) |
Assignment constructor trying to match integration type from given string.
If unable to match set IntegratorType1D::UNDEFINED.
integratorType1DString | String to be matched. |
|
virtual |
Default destructor.
std::string NumA::IntegratorType1D::getShortName | ( | ) |
Returns a short name for the type.
IntegratorType1D::Type NumA::IntegratorType1D::getType | ( | ) | const |
Returns the wrapped enum.
NumA::IntegratorType1D::operator IntegratorType1D::Type | ( | ) | const |
Operator that casts back into an enum.
void NumA::IntegratorType1D::setType | ( | Type | type | ) |
Set the type of integration.
type | Integration type to be set. |
std::string NumA::IntegratorType1D::toString | ( | ) | const |
Returns a formatted string displaying the type.
|
private |
Type of integration (enum).