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 ()
 Computes the current value, and returns it. More...
 
void set (double val)
 Sets the current value. More...
 
CoordValueType type ()
 The type of variable representation. More...
 
std::shared_ptr< CoordValueclone (std::map< std::string, double > &)
 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)
inlinevirtual

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

Implements psi::CoordValue.

double psi::NumberValue::compute ( )
inlinevirtual

Computes the current value, and returns it.

Implements psi::CoordValue.

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

Sets the current value.

Implements psi::CoordValue.

CoordValueType psi::NumberValue::type ( )
inlinevirtual

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: