public

Inheritance Graph

graph BT
	_NumberAttribute
	_NumberAttribute --> GenericNumberAttribute
	click _NumberAttribute "classUtil_1_1__NumberAttribute"
	click GenericNumberAttribute "classUtil_1_1GenericNumberAttribute"

Description

Generic attribute to store a number value.

Public Types

   
   
typedef _NumberAttribute < Number > attr_t

Public Functions

   
   
  _NumberAttribute(Number _n)
   
  ~_NumberAttribute()
   
Number get() const
   
void set(Number newValue)
   
attr_t * clone() const
   
std::string toString() const
   
std::string toJSON() const
   
double toDouble() const
   
float toFloat() const
   
int toInt() const
   
unsigned int toUnsignedInt() const
   
bool operator==(const GenericAttribute & void) const
Per default, the comparison returns false for unspecified types.

Documentation

typedef
Util::_NumberAttribute::attr_t

public
 
 
typedef _NumberAttribute < Number > attr_t

Defined in Util/GenericAttribute.h:312


function
Util::_NumberAttribute::_NumberAttribute

public inline explicit
     
     
_NumberAttribute( Number _n )

Defined in Util/GenericAttribute.h:314


function
Util::_NumberAttribute::~_NumberAttribute

public inline virtual
   
   
~_NumberAttribute( )

Defined in Util/GenericAttribute.h:316


function
Util::_NumberAttribute::get

public const inline
   
   
Number get( ) const

Return the stored number value.

Returns

Number value

Defined in Util/GenericAttribute.h:324


function
Util::_NumberAttribute::set

public inline
     
     
void set( Number newValue )

Update the stored number value.

Parameters

newValue
New number value

Defined in Util/GenericAttribute.h:333


function
Util::_NumberAttribute::clone

public const inline virtual
   
   
attr_t * clone( ) const

Create a copy of this object.

Returns

Exact copy.

Defined in Util/GenericAttribute.h:337


function
Util::_NumberAttribute::toString

public const inline virtual
   
   
std::string toString( ) const

Convert the object to a human-readable string.

Returns

String representation.

Defined in Util/GenericAttribute.h:338


function
Util::_NumberAttribute::toJSON

public const inline virtual
   
   
std::string toJSON( ) const

Convert the object to JavaScript Object Notation (JSON).

Returns

JSON representation;

Defined in Util/GenericAttribute.h:339


function
Util::_NumberAttribute::toDouble

public const inline virtual
   
   
double toDouble( ) const

Convert the object to a floating-point value with double precision.

Returns

Floating-point representation with double precision.

Defined in Util/GenericAttribute.h:340


function
Util::_NumberAttribute::toFloat

public const inline virtual
   
   
float toFloat( ) const

Convert the object to a floating-point value.

Returns

Floating-point representation.

Defined in Util/GenericAttribute.h:341


function
Util::_NumberAttribute::toInt

public const inline virtual
   
   
int toInt( ) const

Convert the object to an integer value.

Returns

Integer representation.

Defined in Util/GenericAttribute.h:342


function
Util::_NumberAttribute::toUnsignedInt

public const inline virtual
   
   
unsigned int toUnsignedInt( ) const

Convert the object to an unsigned integer value.

Returns

Unsigned integer representation.

Defined in Util/GenericAttribute.h:343


function
Util::_NumberAttribute::operator==

public const inline virtual
     
     
bool operator==( const GenericAttribute & void ) const

Per default, the comparison returns false for unspecified types.

Defined in Util/GenericAttribute.h:344