Class Index Cross Index Namespace Index

Class FrameCPP::Version_6::Dimension

Dimension information for a Vect.
Contained in: FrameCPP::Version_6
Derived from: none
Derived by: none

#include "../../../../../lib/framecpp/src/Version6/Dimension.hh"


public function member index:

inline Dimension(); Default Constructor.
inline Dimension(const Dimension& dim); Copy constructor.
inline explicit Dimension(INT_8U nx, REAL_8 dx = 1.0, const std::string& unitX = "", REAL_8 startX = 0.0); Constructor.
inline REAL_8 GetDx() const; Get the scale factor.
inline INT_8U GetNx() const; Get the dimension length.
inline REAL_8 GetStartX() const; Get data set origin.
inline const STRING& GetUnitX() const; Get the units.
inline void SetNx(INT_8U Nx);
inline REAL_8 getDx() const;
inline INT_8U getNx() const;
inline REAL_8 getStartX() const;
inline const STRING& getUnitX() const;
bool operator !=(const Dimension& dim) const; Not equal comparison.
const Dimension& operator =(const Dimension& dim); Assignment operator.
bool operator ==(const Dimension& dim) const; Equal comparison.
 

Description:

This is a simple class storing dimension information for a Vect object. It stores the following:

  1. The dimension length.
  2. Scale factor
  3. The units (unit per step size along the coordintate).


Function Member Descriptions:


FrameCPP::Version_6::Dimension::Dimension - Default Constructor.


inline Dimension();
This creates a dimension object with the following values: Dimension Length (Nx) - 1 Scale Factor (Dx) - 1.0 Units (UnitX) - ""

Exceptions:
ExceptionDescription
None.
None.



FrameCPP::Version_6::Dimension::Dimension - Copy constructor.


inline Dimension(const Dimension& dim);

Parameters:
ParameterDescription
const Dimension& dimThe Dimension to copy from.

Exceptions:
ExceptionDescription
std::bad_allocMemory allocation failed.
std::bad_allocMemory allocation failed.



FrameCPP::Version_6::Dimension::Dimension - Constructor.


inline explicit Dimension(INT_8U nx, REAL_8 dx = 1.0, const std::string& unitX = "", REAL_8 startX = 0.0);
This creates a Dimension object with the specified attributes.

Parameters:
ParameterDescription
INT_8U nxThe dimension length.
REAL_8 dxThe Scale Factor. Default: 1.0
const std::string& unitXThe units (unit per step size). Default: ""

Exceptions:
ExceptionDescription
std::bad_allocMemory allocation failed.
std::bad_allocMemory allocation failed.



FrameCPP::Version_6::Dimension::GetDx - Get the scale factor.


inline REAL_8 GetDx() const;

Return value:
REAL_8- The scale factor.

Exceptions:
ExceptionDescription
None.
None.



FrameCPP::Version_6::Dimension::GetNx - Get the dimension length.


inline INT_8U GetNx() const;

Return value:
INT_8U- The dimension length.

Exceptions:
ExceptionDescription
None.
None.



FrameCPP::Version_6::Dimension::GetStartX - Get data set origin.


inline REAL_8 GetStartX() const;

Return value:
REAL_8- Data set origin.

Exceptions:
ExceptionDescription
None.
None.



FrameCPP::Version_6::Dimension::GetUnitX - Get the units.


inline const STRING& GetUnitX() const;

Return value:
const std::string&- The units.

Exceptions:
ExceptionDescription
None.
None.



FrameCPP::Version_6::Dimension::SetNx


inline void SetNx(INT_8U Nx);



FrameCPP::Version_6::Dimension::getDx


inline REAL_8 getDx() const;



FrameCPP::Version_6::Dimension::getNx


inline INT_8U getNx() const;



FrameCPP::Version_6::Dimension::getStartX


inline REAL_8 getStartX() const;



FrameCPP::Version_6::Dimension::getUnitX


inline const STRING& getUnitX() const;



FrameCPP::Version_6::Dimension::operator != - Not equal comparison.


bool operator !=(const Dimension& dim) const;

Parameters:
ParameterDescription
const Dimension& dimThe object to compare with.

Return value:
bool- false if the objects are equal, true otherwise.

Exceptions:
ExceptionDescription
None.



FrameCPP::Version_6::Dimension::operator = - Assignment operator.


const Dimension& operator =(const Dimension& dim);

Parameters:
ParameterDescription
const Dimension& dimThe object to assign from.

Return value:
const Dimension&- This object.

Exceptions:
ExceptionDescription
std::bad_allocMemory allocation failed.



FrameCPP::Version_6::Dimension::operator == - Equal comparison.


bool operator ==(const Dimension& dim) const;

Parameters:
ParameterDescription
const Dimension& dimThe object to compare with.

Return value:
bool- true if the objects are equal, false otherwise.

Exceptions:
ExceptionDescription
None.



Variable Member Descriptions:


FrameCPP::Version_6::Dimension::mDx - Scale factor.

REAL_8 mDx;

FrameCPP::Version_6::Dimension::mNx - Dimension length.

INT_8U mNx;

FrameCPP::Version_6::Dimension::mStartX - Origin.

REAL_8 mStartX;

FrameCPP::Version_6::Dimension::mUnitX - Scale factor in ASCII.

STRING mUnitX;