ldas-tools-framecpp
2.6.5
|
Dimension information for a Vect. More...
#include <Dimension.hh>
Public Types | |
typedef DIMENSION_NDIM_TYPE | nDim_type |
typedef DIMENSION_NX_TYPE | nx_type |
typedef DIMENSION_DX_TYPE | dx_type |
typedef DIMENSION_STARTX_TYPE | startX_type |
typedef STRING | unitX_type |
Public Member Functions | |
Dimension () | |
exc: None. More... | |
Dimension (const Dimension &dim) | |
param: const Dimension& dim - The Dimension to copy from. More... | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="", startX_type startX=0.0) | |
Constructor. More... | |
Dimension (const Previous::Dimension &Source) | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. More... | |
bool | operator== (const Dimension &dim) const |
Equal comparison. More... | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. More... | |
nx_type | GetNx () const |
Get the dimension length. More... | |
dx_type | GetDx () const |
Get the scale factor. More... | |
startX_type | GetStartX () const |
Get data set origin. More... | |
const unitX_type & | GetUnitX () const |
Get the units. More... | |
void | SetDx (dx_type Dx) |
Set sample spacing. More... | |
void | SetNx (nx_type Nx) |
Set dimension length. More... | |
void | SetStartX (startX_type StartX) |
Set data set origin. More... | |
void | SetUnitX (const unitX_type &UnitX) |
Set scale factor in ASCII. More... | |
cmn_streamsize_type | Bytes () const |
Static Public Member Functions | |
static nx_type | CalcNData (nDim_type NDims, const Dimension *Dims) |
Dimension information for a Vect.
This is a simple class storing dimension information for a Vect object. It stores the following:
FrameCPP::Version_8::Dimension::Dimension | ( | ) |
exc: None.
FrameCPP::Version_8::Dimension::Dimension | ( | const Dimension & | dim | ) |
|
explicit |
Constructor.
This creates a Dimension object with the specified attributes.
[in] | nx | The dimension length. |
[in] | dx | The Scale Factor. |
[in] | unitX | The units (unit per step size). |
[in] | startx | The origin of the data set. |
std::bad_alloc | Memory allocation failed. |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
Get the scale factor.
|
inline |
Get the dimension length.
|
inline |
Get data set origin.
|
inline |
Get the units.
|
inline |
Not equal comparison.
[in] | dim | The object to compare with. |
Assignment operator.
[in] | dim | The object to assign from. |
|
inline |
Equal comparison.
[in] | dim | The object to compare with. |
|
inline |
Set sample spacing.
Establish a new value for sample spacing along the coordinate.
[in] | Dx | The new sample rate for the coordinate. |
|
inline |
Set dimension length.
[in] | Nx | The new dimension length |
|
inline |
Set data set origin.
[in] | StartX | Data set origin. |
|
inline |
Set scale factor in ASCII.
Establish a new value for sample spacing along the coordinate.
[in] | UnitX | The new scale factor description. |