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

#include <OptionValue.hh>

Inheritance diagram for UnsignedIntegerOptionValue:
Inheritance graph
Collaboration diagram for UnsignedIntegerOptionValue:
Collaboration graph

Public Member Functions

 UnsignedIntegerOptionValue (unsigned value)
 
virtual ~UnsignedIntegerOptionValue ()
 
virtual unsigned unsignedIntegerValue (int index=0) const
 
virtual void setUnsignedIntegerValue (unsigned value)
 
- Public Member Functions inherited from OptionValue
 OptionValue ()
 
virtual ~OptionValue ()
 
virtual void setStringValue (const std::string &)
 
virtual void setIntegerValue (int)
 
virtual void setRealValue (double)
 
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 double realValue () const
 
virtual bool isFlagOn () const
 
virtual bool isFlagOff () const
 
virtual int listSize () const
 

Private Member Functions

 UnsignedIntegerOptionValue (const UnsignedIntegerOptionValue &)
 Copying not allowed. More...
 
UnsignedIntegerOptionValueoperator= (const UnsignedIntegerOptionValue &)
 Assignment not allowed. More...
 

Private Attributes

unsigned value_
 The value of option. More...
 

Detailed Description

Models an option that has an unsigned integer value.

Definition at line 109 of file OptionValue.hh.

Constructor & Destructor Documentation

◆ UnsignedIntegerOptionValue() [1/2]

UnsignedIntegerOptionValue::UnsignedIntegerOptionValue ( unsigned  value)

Definition at line 241 of file OptionValue.cc.

241  {
242  value_ = value;
243 }

References value_.

◆ ~UnsignedIntegerOptionValue()

UnsignedIntegerOptionValue::~UnsignedIntegerOptionValue ( )
virtual

Definition at line 245 of file OptionValue.cc.

245  {
246 }

◆ UnsignedIntegerOptionValue() [2/2]

UnsignedIntegerOptionValue::UnsignedIntegerOptionValue ( const UnsignedIntegerOptionValue )
private

Copying not allowed.

Member Function Documentation

◆ operator=()

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

Assignment not allowed.

◆ setUnsignedIntegerValue()

void UnsignedIntegerOptionValue::setUnsignedIntegerValue ( unsigned  )
virtual

This implementation should never be called.

Exceptions
WrongSubclassCalled for a wrong subclass.

Reimplemented from OptionValue.

Definition at line 249 of file OptionValue.cc.

249  {
250  value_ = value;
251 }

References value_.

◆ unsignedIntegerValue()

unsigned UnsignedIntegerOptionValue::unsignedIntegerValue ( int  index = 0) const
virtual

Definition at line 254 of file OptionValue.cc.

254  {
255  return value_;
256 }

References value_.

Member Data Documentation

◆ value_

unsigned UnsignedIntegerOptionValue::value_
private

The value of option.

Definition at line 123 of file OptionValue.hh.

Referenced by setUnsignedIntegerValue(), UnsignedIntegerOptionValue(), and unsignedIntegerValue().


The documentation for this class was generated from the following files:
UnsignedIntegerOptionValue::value_
unsigned value_
The value of option.
Definition: OptionValue.hh:123