Public Member Functions | Private Attributes | List of all members
psi::NumberValue Class Reference

#include <coordentry.h>

Inheritance diagram for psi::NumberValue:

Public Member Functions

 NumberValue (double value, bool fixed=false)
double compute () override
 Computes the current value, and returns it. More...
void set (double val) override
 Sets the current value. More...
CoordValueType type () override
 The type of variable representation. More...
std::shared_ptr< CoordValueclone (std::map< std::string, double > &) override
 Clones the current object, using a user-provided variable array, for deep copying. More...
- Public Member Functions inherited from psi::CoordValue
 CoordValue ()
 CoordValue (bool fixed)
virtual ~CoordValue ()
void set_fixed (bool fixed)
bool fixed () const

Private Attributes

double value_

Additional Inherited Members

- Public Types inherited from psi::CoordValue
enum  CoordValueType { NumberType, VariableType }
- Protected Attributes inherited from psi::CoordValue
bool fixed_
 Fixed coordinate? More...

Detailed Description

Specialization of CoordValue that is simply a number to be stored.

Constructor & Destructor Documentation

psi::NumberValue::NumberValue ( double  value,
bool  fixed = false 

Member Function Documentation

std::shared_ptr<CoordValue> psi::NumberValue::clone ( std::map< std::string, double > &  map)

Clones the current object, using a user-provided variable array, for deep copying.

Implements psi::CoordValue.

double psi::NumberValue::compute ( )

Computes the current value, and returns it.

Implements psi::CoordValue.

void psi::NumberValue::set ( double  val)

Sets the current value.

Implements psi::CoordValue.

CoordValueType psi::NumberValue::type ( )

The type of variable representation.

Implements psi::CoordValue.

Member Data Documentation

double psi::NumberValue::value_

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