Public Member Functions | Private Attributes | List of all members
gil_safe_call_once_and_store< T > Class Template Reference

#include <gil_safe_call_once.h>

Public Member Functions

template<typename Callable >
gil_safe_call_once_and_storecall_once_and_store_result (Callable &&fn)
 
Tget_stored ()
 
constexpr gil_safe_call_once_and_store ()=default
 
PYBIND11_DTOR_CONSTEXPR ~gil_safe_call_once_and_store ()=default
 

Private Attributes

bool is_initialized_ = false
 
std::once_flag once_flag_ = {}
 
char storage_ [sizeof(T)] = {}
 

Detailed Description

template<typename T>
class gil_safe_call_once_and_store< T >

Definition at line 46 of file gil_safe_call_once.h.

Constructor & Destructor Documentation

◆ gil_safe_call_once_and_store()

template<typename T >
constexpr gil_safe_call_once_and_store< T >::gil_safe_call_once_and_store ( )
constexprdefault

◆ ~gil_safe_call_once_and_store()

Member Function Documentation

◆ call_once_and_store_result()

template<typename T >
template<typename Callable >
gil_safe_call_once_and_store& gil_safe_call_once_and_store< T >::call_once_and_store_result ( Callable &&  fn)
inline

Definition at line 50 of file gil_safe_call_once.h.

◆ get_stored()

template<typename T >
T& gil_safe_call_once_and_store< T >::get_stored ( )
inline

Definition at line 68 of file gil_safe_call_once.h.

Member Data Documentation

◆ is_initialized_

template<typename T >
bool gil_safe_call_once_and_store< T >::is_initialized_ = false
private

Definition at line 85 of file gil_safe_call_once.h.

◆ once_flag_

template<typename T >
std::once_flag gil_safe_call_once_and_store< T >::once_flag_ = {}
private

Definition at line 84 of file gil_safe_call_once.h.

◆ storage_

template<typename T >
char gil_safe_call_once_and_store< T >::storage_[sizeof(T)] = {}
private

Definition at line 83 of file gil_safe_call_once.h.


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


gtsam
Author(s):
autogenerated on Fri Oct 4 2024 03:10:59