OpenASIP  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RealOptionValue Class Reference

#include <OptionValue.hh>

Inheritance diagram for RealOptionValue:
Inheritance graph
Collaboration diagram for RealOptionValue:
Collaboration graph

Public Member Functions

 RealOptionValue (double value)
 
virtual ~RealOptionValue ()
 
virtual double realValue () const
 
virtual void setRealValue (double value)
 
- Public Member Functions inherited from OptionValue
 OptionValue ()
 
virtual ~OptionValue ()
 
virtual void setStringValue (const std::string &)
 
virtual void setIntegerValue (int)
 
virtual void setUnsignedIntegerValue (unsigned)
 
virtual void setBoolValue (bool)
 
virtual void setIntegerListValue (std::vector< int > values)
 
virtual std::string stringValue (int index=0) const
 
virtual int integerValue (int index=0) const
 
virtual bool isFlagOn () const
 
virtual bool isFlagOff () const
 
virtual int listSize () const
 

Private Member Functions

 RealOptionValue (const RealOptionValue &)
 Copying not allowed. More...
 
RealOptionValueoperator= (const RealOptionValue &)
 Assignment not allowed. More...
 

Private Attributes

double value_
 The value of the option. More...
 

Detailed Description

OptionValue that has a real value.

Definition at line 157 of file OptionValue.hh.

Constructor & Destructor Documentation

◆ RealOptionValue() [1/2]

RealOptionValue::RealOptionValue ( double  value)

Constructor.

Parameters
valueThe value of real option.

Definition at line 309 of file OptionValue.cc.

309  {
310  value_ = value;
311 }

References value_.

◆ ~RealOptionValue()

RealOptionValue::~RealOptionValue ( )
virtual

Destructor.

Definition at line 316 of file OptionValue.cc.

316  {
317 }

◆ RealOptionValue() [2/2]

RealOptionValue::RealOptionValue ( const RealOptionValue )
private

Copying not allowed.

Member Function Documentation

◆ operator=()

RealOptionValue& RealOptionValue::operator= ( const RealOptionValue )
private

Assignment not allowed.

◆ realValue()

double RealOptionValue::realValue ( ) const
virtual

Returns the value of string option.

Returns
The value of string option.
Exceptions
WrongSubclassIs never thrown by this function.

Reimplemented from OptionValue.

Definition at line 337 of file OptionValue.cc.

337  {
338  return value_;
339 }

References value_.

◆ setRealValue()

void RealOptionValue::setRealValue ( double  value)
virtual

Sets new value for real option.

Parameters
valueNew value for the real option.
Exceptions
WrongSubclassIs never thrown by this function.

Reimplemented from OptionValue.

Definition at line 326 of file OptionValue.cc.

326  {
327  value_ = value;
328 }

References value_.

Member Data Documentation

◆ value_

double RealOptionValue::value_
private

The value of the option.

Definition at line 172 of file OptionValue.hh.

Referenced by RealOptionValue(), realValue(), and setRealValue().


The documentation for this class was generated from the following files:
RealOptionValue::value_
double value_
The value of the option.
Definition: OptionValue.hh:172