ALPSCore reference
Public Types | Public Member Functions | List of all members
alps::alea::computed_cmember< T, Parent > Class Template Reference

#include <computed.hpp>

Inheritance diagram for alps::alea::computed_cmember< T, Parent >:
Inheritance graph
Collaboration diagram for alps::alea::computed_cmember< T, Parent >:
Collaboration graph

Public Types

typedef T value_type
 
typedef void(Parent::* adder_type) (view< T >) const
 
- Public Types inherited from alps::alea::computed< T >
typedef T value_type
 

Public Member Functions

 computed_cmember (const Parent &parent, adder_type adder, size_t size)
 
size_t size () const
 
void add_to (view< T > out) const
 
void fast_add_to (view< T > out)
 
const Parent & parent () const
 
const adder_typeadder () const
 
 ~computed_cmember ()
 
- Public Member Functions inherited from alps::alea::computed< T >
virtual std::vector< size_t > shape () const
 
virtual computedclone ()
 
virtual ~computed ()
 

Detailed Description

template<typename T, typename Parent>
class alps::alea::computed_cmember< T, Parent >

Proxy object for computed results.

Definition at line 178 of file computed.hpp.

Member Typedef Documentation

template<typename T , typename Parent >
typedef void(Parent::* alps::alea::computed_cmember< T, Parent >::adder_type) (view< T >) const

Definition at line 183 of file computed.hpp.

template<typename T , typename Parent >
typedef T alps::alea::computed_cmember< T, Parent >::value_type

Definition at line 182 of file computed.hpp.

Constructor & Destructor Documentation

template<typename T , typename Parent >
alps::alea::computed_cmember< T, Parent >::computed_cmember ( const Parent &  parent,
adder_type  adder,
size_t  size 
)
inline

Definition at line 186 of file computed.hpp.

template<typename T , typename Parent >
alps::alea::computed_cmember< T, Parent >::~computed_cmember ( )
inline

Definition at line 202 of file computed.hpp.

Member Function Documentation

template<typename T , typename Parent >
void alps::alea::computed_cmember< T, Parent >::add_to ( view< T >  out) const
inlinevirtual

Add computed result data to the buffer in out. If in(i) is the i-th component of the estimator, do the equivalent of:

for (size_t i = 0; i != size(); ++i)
    out[i] += in(i);

Implements alps::alea::computed< T >.

Definition at line 194 of file computed.hpp.

template<typename T , typename Parent >
const adder_type& alps::alea::computed_cmember< T, Parent >::adder ( ) const
inline

Definition at line 200 of file computed.hpp.

template<typename T , typename Parent >
void alps::alea::computed_cmember< T, Parent >::fast_add_to ( view< T >  out)
inline

Definition at line 196 of file computed.hpp.

template<typename T , typename Parent >
const Parent& alps::alea::computed_cmember< T, Parent >::parent ( ) const
inline

Definition at line 198 of file computed.hpp.

template<typename T , typename Parent >
size_t alps::alea::computed_cmember< T, Parent >::size ( ) const
inlinevirtual

Number of elements of the computed result

Implements alps::alea::computed< T >.

Definition at line 192 of file computed.hpp.


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