#include <Teuchos_OrdinalTraits.hpp>
Static Public Member Functions | |
| static T | zero () |
| Returns representation of zero for this ordinal type. | |
| static T | one () |
| Returns representation of one for this ordinal type. | |
| static T | max () |
| Returns a value designating the maximum value accessible by code using OrdinalTraits. | |
| static T | invalid () |
| Returns a value designating an invalid number. For signed types, this is typically negative one; for unsigned types, it is typically the largest value. | |
| static std::string | name () |
| Returns name of this ordinal type. | |
Static Public Attributes | |
| static const bool | hasMachineParameters = false |
| Allows testing to see if ordinal traits machine parameters are defined. | |
Ordinal traits are an essential part of templated codes. This structure offers the basic traits of the templated ordinal type, like defining zero and one.
For the general type, or default implementation, an aborting function is defined which should restrict implementations from using ordinal traits other than the defined specializations.
int and long int.
Definition at line 68 of file Teuchos_OrdinalTraits.hpp.
| static T Teuchos::OrdinalTraits< T >::zero | ( | ) | [inline, static] |
Returns representation of zero for this ordinal type.
Definition at line 74 of file Teuchos_OrdinalTraits.hpp.
| static T Teuchos::OrdinalTraits< T >::one | ( | ) | [inline, static] |
Returns representation of one for this ordinal type.
Definition at line 77 of file Teuchos_OrdinalTraits.hpp.
| static T Teuchos::OrdinalTraits< T >::max | ( | ) | [inline, static] |
Returns a value designating the maximum value accessible by code using OrdinalTraits.
For a signed ordinal, this will typically be the maximum positive value. However, for an unsigned ordinal, this will typically be one less than the maximum value, because the maximum value will typically be reserved for designating an invalid value.
Definition at line 83 of file Teuchos_OrdinalTraits.hpp.
| static T Teuchos::OrdinalTraits< T >::invalid | ( | ) | [inline, static] |
Returns a value designating an invalid number. For signed types, this is typically negative one; for unsigned types, it is typically the largest value.
Definition at line 86 of file Teuchos_OrdinalTraits.hpp.
| static std::string Teuchos::OrdinalTraits< T >::name | ( | ) | [inline, static] |
const bool Teuchos::OrdinalTraits< T >::hasMachineParameters = false [static] |
Allows testing to see if ordinal traits machine parameters are defined.
Definition at line 71 of file Teuchos_OrdinalTraits.hpp.
1.4.7