ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
Public Member Functions | List of all members
ryujin::Lazy< T > Class Template Reference

#include <source/lazy.h>

Public Member Functions

 Lazy ()
 
 Lazy (const Lazy &other)
 
 Lazy (Lazy &&other) noexcept
 
Lazyoperator= (const Lazy &other)
 
Lazyoperator= (Lazy &&other) noexcept
 
void reset () noexcept
 
template<typename Callable >
void ensure_initialized (const Callable &creator) const
 
bool has_value () const
 
const T & value () const
 
T & value ()
 
template<typename Callable >
DEAL_II_ALWAYS_INLINE void ensure_initialized (const Callable &creator) const
 

Detailed Description

template<typename T>
class ryujin::Lazy< T >

This is a slightly minimized variant of the Lazy<T> initialization class shipped with the current development version of deal.II.

Definition at line 32 of file lazy.h.

Constructor & Destructor Documentation

◆ Lazy() [1/3]

template<typename T >
ryujin::Lazy< T >::Lazy
inline

Definition at line 63 of file lazy.h.

◆ Lazy() [2/3]

template<typename T >
ryujin::Lazy< T >::Lazy ( const Lazy< T > &  other)
inline

Definition at line 70 of file lazy.h.

◆ Lazy() [3/3]

template<typename T >
ryujin::Lazy< T >::Lazy ( Lazy< T > &&  other)
inlinenoexcept

Definition at line 78 of file lazy.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Lazy< T > & ryujin::Lazy< T >::operator= ( const Lazy< T > &  other)
inline

Definition at line 89 of file lazy.h.

◆ operator=() [2/2]

template<typename T >
Lazy< T > & ryujin::Lazy< T >::operator= ( Lazy< T > &&  other)
inlinenoexcept

Definition at line 99 of file lazy.h.

◆ reset()

template<typename T >
void ryujin::Lazy< T >::reset
inlinenoexcept

Definition at line 112 of file lazy.h.

◆ ensure_initialized() [1/2]

template<typename T >
template<typename Callable >
void ryujin::Lazy< T >::ensure_initialized ( const Callable &  creator) const

◆ has_value()

template<typename T >
DEAL_II_ALWAYS_INLINE bool ryujin::Lazy< T >::has_value
inline

Definition at line 152 of file lazy.h.

◆ value() [1/2]

template<typename T >
DEAL_II_ALWAYS_INLINE const T & ryujin::Lazy< T >::value
inline

Definition at line 159 of file lazy.h.

◆ value() [2/2]

template<typename T >
DEAL_II_ALWAYS_INLINE T & ryujin::Lazy< T >::value
inline

Definition at line 172 of file lazy.h.

◆ ensure_initialized() [2/2]

template<typename T >
template<typename Callable >
DEAL_II_ALWAYS_INLINE void ryujin::Lazy< T >::ensure_initialized ( const Callable &  creator) const
inline

Definition at line 122 of file lazy.h.


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