Ipopt Documentation  
 
Loading...
Searching...
No Matches
Ipopt::OptionsList::OptionValue Class Reference

Class for storing the value and counter for each option in OptionsList. More...

Public Member Functions

std::string GetValue () const
 Method for retrieving the value of an option.
 
std::string Value () const
 Method for retrieving the value without increasing the counter.
 
Index Counter () const
 Method for accessing current value of the request counter.
 
bool AllowClobber () const
 True if the option can be overwritten.
 
bool DontPrint () const
 True if this option is not to show up in the print_user_options output.
 
Constructors/Destructors
 OptionValue ()
 Default constructor.
 
 OptionValue (const std::string &value, bool allow_clobber, bool dont_print)
 Constructor given the value.
 
 OptionValue (const OptionValue &copy)
 Copy Constructor.
 
OptionValueoperator= (const OptionValue &copy)
 Equals operator.
 
 ~OptionValue ()
 Default Destructor.
 

Private Attributes

std::string value_
 Value for this option.
 
Index counter_
 Counter for requests.
 
bool initialized_
 for debugging
 
bool allow_clobber_
 True if the option can be overwritten.
 
bool dont_print_
 True if this option is not to show up in the print_user_options output.
 

Detailed Description

Class for storing the value and counter for each option in OptionsList.

Definition at line 35 of file IpOptionsList.hpp.

Constructor & Destructor Documentation

◆ OptionValue() [1/3]

Ipopt::OptionsList::OptionValue::OptionValue ( )
inline

Default constructor.

Definition at line 41 of file IpOptionsList.hpp.

◆ OptionValue() [2/3]

Ipopt::OptionsList::OptionValue::OptionValue ( const std::string &  value,
bool  allow_clobber,
bool  dont_print 
)
inline

Constructor given the value.

Definition at line 46 of file IpOptionsList.hpp.

◆ OptionValue() [3/3]

Ipopt::OptionsList::OptionValue::OptionValue ( const OptionValue copy)
inline

Copy Constructor.

Definition at line 60 of file IpOptionsList.hpp.

◆ ~OptionValue()

Ipopt::OptionsList::OptionValue::~OptionValue ( )
inline

Default Destructor.

Definition at line 85 of file IpOptionsList.hpp.

Member Function Documentation

◆ operator=()

OptionValue & Ipopt::OptionsList::OptionValue::operator= ( const OptionValue copy)
inline

Equals operator.

Definition at line 72 of file IpOptionsList.hpp.

◆ GetValue()

std::string Ipopt::OptionsList::OptionValue::GetValue ( ) const
inline

Method for retrieving the value of an option.

Calling this method will increase the counter by one.

Definition at line 93 of file IpOptionsList.hpp.

◆ Value()

std::string Ipopt::OptionsList::OptionValue::Value ( ) const
inline

Method for retrieving the value without increasing the counter.

Definition at line 101 of file IpOptionsList.hpp.

◆ Counter()

Index Ipopt::OptionsList::OptionValue::Counter ( ) const
inline

Method for accessing current value of the request counter.

Definition at line 108 of file IpOptionsList.hpp.

◆ AllowClobber()

bool Ipopt::OptionsList::OptionValue::AllowClobber ( ) const
inline

True if the option can be overwritten.

Definition at line 115 of file IpOptionsList.hpp.

◆ DontPrint()

bool Ipopt::OptionsList::OptionValue::DontPrint ( ) const
inline

True if this option is not to show up in the print_user_options output.

Definition at line 124 of file IpOptionsList.hpp.

Member Data Documentation

◆ value_

std::string Ipopt::OptionsList::OptionValue::value_
private

Value for this option.

Definition at line 132 of file IpOptionsList.hpp.

◆ counter_

Index Ipopt::OptionsList::OptionValue::counter_
mutableprivate

Counter for requests.

Definition at line 135 of file IpOptionsList.hpp.

◆ initialized_

bool Ipopt::OptionsList::OptionValue::initialized_
private

for debugging

Definition at line 138 of file IpOptionsList.hpp.

◆ allow_clobber_

bool Ipopt::OptionsList::OptionValue::allow_clobber_
private

True if the option can be overwritten.

Definition at line 141 of file IpOptionsList.hpp.

◆ dont_print_

bool Ipopt::OptionsList::OptionValue::dont_print_
private

True if this option is not to show up in the print_user_options output.

Definition at line 145 of file IpOptionsList.hpp.


The documentation for this class was generated from the following file: