RVL::ScalarRedn< Scalar > Class Template Reference

Mixin class for types that store, update, and return "small" objects, meaning effectively those with usable copy semantics. More...

#include <data.hh>

List of all members.

Public Member Functions

 ScalarRedn (Scalar _val)
 main constructor.
virtual ~ScalarRedn ()
virtual void setValue ()=0
 post-construction (re)initialization - default is undefined, so pure virtual
virtual void setValue (Scalar _val)
 post-construction (re)initialization
virtual Scalar getValue () const
 access - virtual so that additional behaviour may be added in child class overrides, for expl cross-process reduction


Detailed Description

template<typename Scalar>
class RVL::ScalarRedn< Scalar >

Mixin class for types that store, update, and return "small" objects, meaning effectively those with usable copy semantics.

Appends a simple implemented container attribute, which has the added effect of testing for the existence of assignment at compile time. Intended for use with FOCE to create reduction function objects.

Definition at line 101 of file data.hh.


Constructor & Destructor Documentation

template<typename Scalar>
RVL::ScalarRedn< Scalar >::ScalarRedn ( Scalar  _val  ) 

main constructor.

Note that bytewise copy construction is exactly what is intended, so let the compiler do it.

Definition at line 110 of file data.hh.

template<typename Scalar>
virtual RVL::ScalarRedn< Scalar >::~ScalarRedn (  )  [virtual]

Definition at line 112 of file data.hh.


Member Function Documentation

template<typename Scalar>
virtual void RVL::ScalarRedn< Scalar >::setValue (  )  [pure virtual]

post-construction (re)initialization - default is undefined, so pure virtual

template<typename Scalar>
virtual void RVL::ScalarRedn< Scalar >::setValue ( Scalar  _val  )  [virtual]

post-construction (re)initialization

Definition at line 118 of file data.hh.

template<typename Scalar>
virtual Scalar RVL::ScalarRedn< Scalar >::getValue (  )  const [virtual]

access - virtual so that additional behaviour may be added in child class overrides, for expl cross-process reduction

Definition at line 121 of file data.hh.

Referenced by RVL::StdFOFunctional< Scalar, DataType >::apply().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for RVL by  doxygen 1.4.7