ryujin 2.1.1 revision ee5cbcbf2346c1299c942d0e1f13b46449973c18
Loading...
Searching...
No Matches
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 29 of file lazy.h.

Constructor & Destructor Documentation

◆ Lazy() [1/3]

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

Definition at line 60 of file lazy.h.

◆ Lazy() [2/3]

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

Definition at line 67 of file lazy.h.

◆ Lazy() [3/3]

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

Definition at line 75 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 86 of file lazy.h.

◆ operator=() [2/2]

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

Definition at line 96 of file lazy.h.

◆ reset()

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

Definition at line 109 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 ( ) const
inline

Definition at line 149 of file lazy.h.

◆ value() [1/2]

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

Definition at line 156 of file lazy.h.

◆ value() [2/2]

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

Definition at line 169 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 119 of file lazy.h.


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