Public Types | Public Member Functions

StrictlyPositive Class Reference

A general key whose value is a strictly positive number. More...

#include <keyvalue/key/generic/StrictlyPositive.h>

Inheritance diagram for StrictlyPositive:
Inheritance graph
[legend]

List of all members.

Public Types

enum  
typedef Traits< double,
StdSingle, Default
Traits_
typedef StdSingle< typename
Default< double >::OutputType_ > 
ConverterType_
typedef ConverterType_::InputType_ InputType_
typedef ConverterType_::OutputType_ OutputType_

Public Member Functions

 StrictlyPositive (const string &name)
 Constructs key and sets its name.
void checkOutput (doubleelement) const
 Compares element against the bound(s).
string getName () const
 Gets Key's name.
string getName () const
 Gets name.
void setName (const string &name)
 Sets name.

Detailed Description

A general key whose value is a strictly positive number.


Constructor & Destructor Documentation

StrictlyPositive ( const string &  name  )  [explicit]

Constructs key and sets its name.


Member Function Documentation

void checkOutput ( double  element  )  const [inherited]

Compares element against the bound(s).

Parameters:
element : Element to be checked.
Exceptions:
RuntimeError : If element is out of bound(s).
string getName (  )  const [inherited]

Gets Key's name.

Returns:
The Key's name.
string getName (  )  const [inherited]

Gets name.

Returns:
The name.
void setName ( const string &  name  )  [inherited]

Sets name.

Parameters:
name : The name.