MADNESS 0.10.1
madness::ApplyScreenHandle< NDIM > Class Template Reference

#include <applyscreen.h>

Public Member Functions

 ApplyScreenHandle ()=default
 ApplyScreenHandle (const apply_screen_t< NDIM > &screen)
 operator bool () const
double operator() (const Key< NDIM > &key) const
template<typename Archive>
void serialize (Archive &)

Private Attributes

std::shared_ptr< const apply_screen_t< NDIM > > screen_

Detailed Description

template<std::size_t NDIM>
class madness::ApplyScreenHandle< NDIM >

The screen as the tasks of an apply carry it: shared ownership, so the screen lives as long as any task of the apply does, and nothing is stored on the function. Empty means no screen. The tasks stay on the rank that creates them (apply_only refuses apply_randomize), so the handle does not travel.

Constructor & Destructor Documentation

◆ ApplyScreenHandle() [1/2]

template<std::size_t NDIM>
madness::ApplyScreenHandle< NDIM >::ApplyScreenHandle ( )
default

◆ ApplyScreenHandle() [2/2]

template<std::size_t NDIM>
madness::ApplyScreenHandle< NDIM >::ApplyScreenHandle ( const apply_screen_t< NDIM > & screen)
inlineexplicit

References NDIM, and screen_.

Member Function Documentation

◆ operator bool()

template<std::size_t NDIM>
madness::ApplyScreenHandle< NDIM >::operator bool ( ) const
inlineexplicit

References screen_.

◆ operator()()

template<std::size_t NDIM>
double madness::ApplyScreenHandle< NDIM >::operator() ( const Key< NDIM > & key) const
inline

References screen_.

◆ serialize()

template<std::size_t NDIM>
template<typename Archive>
void madness::ApplyScreenHandle< NDIM >::serialize ( Archive & )
inline

References MADNESS_EXCEPTION.

Member Data Documentation

◆ screen_

template<std::size_t NDIM>
std::shared_ptr<const apply_screen_t<NDIM> > madness::ApplyScreenHandle< NDIM >::screen_
private

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