VolViz
A volume visualization tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Attributes | Protected Member Functions | List of all members
VolViz::SetAndNotifyPolicy< T > Class Template Reference

#include <AtomicWrapper.h>

+ Inheritance diagram for VolViz::SetAndNotifyPolicy< T >:
+ Collaboration diagram for VolViz::SetAndNotifyPolicy< T >:

Public Attributes

std::function< void(T const &)> beforeAction
 
std::function< void(T const &)> afterAction
 

Protected Member Functions

template<class Arg >
void set (T &dest, Arg &&src) const noexcept
 
- Protected Member Functions inherited from VolViz::DefaultSetPolicy< T >
void set (T &dest, T const &src) const noexcept
 
void set (T &dest, T &&src) const noexcept
 

Detailed Description

template<class T>
class VolViz::SetAndNotifyPolicy< T >

Notification set policy for AtomicWrapper If beforeAction is set, it is called right before the set operation. If afterAction is set, it is called right after the set operation

Member Function Documentation

template<class T >
template<class Arg >
void VolViz::SetAndNotifyPolicy< T >::set ( T &  dest,
Arg &&  src 
) const
inlineprotectednoexcept

Member Data Documentation

template<class T >
std::function<void(T const &)> VolViz::SetAndNotifyPolicy< T >::afterAction

Action (or notification) that's called right after the set operation. The function is called with the new value as a parameter.

template<class T >
std::function<void(T const &)> VolViz::SetAndNotifyPolicy< T >::beforeAction

action (or notification) that's called right before the set operation. The function is called with the value to be set as a parameter.


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