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

#include <coordentry.h>

Inheritance diagram for psi::NumberValue:
psi::CoordValue

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)
 
 CoordValue (bool fixed, bool computed)
 
virtual ~CoordValue ()
 
void set_fixed (bool fixed)
 
bool fixed () const
 
void invalidate ()
 Flag the current value as outdated. More...
 

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...
 
bool computed_
 Whether the current value is up to date or not. 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 
)
inline

Member Function Documentation

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

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

Implements psi::CoordValue.

double psi::NumberValue::compute ( )
inlineoverridevirtual

Computes the current value, and returns it.

Implements psi::CoordValue.

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

Sets the current value.

Implements psi::CoordValue.

CoordValueType psi::NumberValue::type ( )
inlineoverridevirtual

The type of variable representation.

Implements psi::CoordValue.

Member Data Documentation

double psi::NumberValue::value_
private

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