Home Libraries Author Links

stm::fixedfmt< FloatT > Class Template Reference
[DivAids: Diverse Aids]

List of all members.


Detailed Description

template<typename FloatT>
class stm::fixedfmt< FloatT >

Class template allowing to format the floating point number of type FloatT held on an output stream in fixed point notation using a specified precision.

Definition at line 1307 of file divaids.hpp.


Public Types

typedef FloatT value_type
 Type of the value held by this object.

Public Member Functions

 fixedfmt (dword precision, value_type val=0)
 Construct an object holding the value val to be formatted with the specified precision.
 operator FloatT () const
 Convert to the value held by this object.
dword precision () const
 Return the precision specified.
dword precision (dword prec)
 Specify a new precision and return the previous one.

Member Typedef Documentation

template<typename FloatT>
typedef FloatT stm::fixedfmt< FloatT >::value_type

Type of the value held by this object.

Definition at line 1314 of file divaids.hpp.


Constructor & Destructor Documentation

template<typename FloatT>
stm::fixedfmt< FloatT >::fixedfmt ( dword  precision,
value_type  val = 0 
)

Construct an object holding the value val to be formatted with the specified precision.


Member Function Documentation

template<typename FloatT>
stm::fixedfmt< FloatT >::operator FloatT (  )  const

Convert to the value held by this object.

template<typename FloatT>
dword stm::fixedfmt< FloatT >::precision (  )  const

Return the precision specified.

template<typename FloatT>
dword stm::fixedfmt< FloatT >::precision ( dword  prec  ) 

Specify a new precision and return the previous one.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).