YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
ComplexCachedValue Class Reference

Class for managing a complex cached value inside a #DataPoint. More...

#include <CachedValue.h>

Inheritance diagram for ComplexCachedValue:
CachedValue

Public Member Functions

void setValue (const std::complex< double > &val, DataPoint &d, unsigned sym_index, StatusManager &sm) const
 
void setValue (double val_re, double val_im, DataPoint &d, unsigned sym_index, StatusManager &sm) const
 
void setValue (const std::complex< double > &val, DataPoint &d, unsigned sym_index) const
 
void setValue (double val_re, double val_im, DataPoint &d, unsigned sym_index) const
 
const std::complex< double > value (const DataPoint &d, unsigned sym_index) const
 
- Public Member Functions inherited from CachedValue
DataAccessorowner () const
 
const int index () const
 
const double value (unsigned index, const DataPoint &d, unsigned sym_index) const
 
virtual const unsigned size () const
 
void setValue (unsigned index, double val, DataPoint &d, unsigned sym_index) const
 

Static Public Member Functions

static std::shared_ptr
< ComplexCachedValue
create (DataAccessor &da)
 

Private Member Functions

 ComplexCachedValue (DataAccessor &da)
 

Additional Inherited Members

- Protected Member Functions inherited from CachedValue
 CachedValue (unsigned size, DataAccessor &da)
 
void addToDataAccessor ()
 add to the Owner_
 
void setIndex (int i)
 set index
 
void setPosition (int p)
 set position
 

Detailed Description

Class for managing a complex cached value inside a #DataPoint.

Author
Johannes Rauch, Daniel Greenwald

Constructor & Destructor Documentation

ComplexCachedValue ( DataAccessor da)
inlineprivate

Constructor (protected) see create for details

Member Function Documentation

std::shared_ptr< ComplexCachedValue > create ( DataAccessor da)
static

create shared pointer to ComplexCachedValue

Parameters
ownerDataAccessor to which this cached value belongs
void setValue ( const std::complex< double > &  val,
DataPoint d,
unsigned  sym_index,
StatusManager sm 
) const
inline

Set value into #DataPoint for particular symmetrization, and update VariableStatus for symm. and partition index

Parameters
valValue to set to
d#DataPoint to update
sym_indexindex of symmetrization to apply to
smStatusManager
void setValue ( double  val_re,
double  val_im,
DataPoint d,
unsigned  sym_index,
StatusManager sm 
) const

Set value into #DataPoint for particular symmetrization, and update VariableStatus for symm. and partition index

Parameters
val_rereal part of value to set to
val_imimaginary part of value to set to
d#DataPoint to update
sym_indexindex of symmetrization to apply to
smStatusManager
void setValue ( const std::complex< double > &  val,
DataPoint d,
unsigned  sym_index 
) const
inline

Set value into #DataPoint for particular symmetrization; does not update any statuses

Parameters
valValue to set to
d#DataPoint to update
sym_indexindex of symmetrization to apply to
void setValue ( double  val_re,
double  val_im,
DataPoint d,
unsigned  sym_index 
) const
inline

Set value into #DataPoint for particular symmetrization does not update any statuses

Parameters
val_rereal part of value to set to
val_imimaginary part of value to set to
d#DataPoint to update
sym_indexindex of symmetrization to apply to
const std::complex<double> value ( const DataPoint d,
unsigned  sym_index 
) const
inline

Get value from #DataPoint for particular symmetrization

Parameters
d#DataPoint to get value from
sym_indexindex of symmetrization to grab from
Returns
Value of CachedValue inside the data point

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