Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
absl::base_internal::AtomicHook< ReturnType(*)(Args...)> Class Template Reference

#include <atomic_hook.h>

Public Types

using FnPtr = ReturnType(*)(Args...)
 

Public Member Functions

constexpr AtomicHook ()
 
constexpr AtomicHook (FnPtr default_fn)
 
FnPtr Load () const
 
template<typename... CallArgs>
ReturnType operator() (CallArgs &&...args) const
 
void Store (FnPtr fn)
 

Private Member Functions

FnPtr DoLoad () const
 
bool DoStore (FnPtr fn)
 

Static Private Member Functions

static ReturnType DummyFunction (Args...)
 

Private Attributes

const FnPtr default_fn_
 
std::atomic< FnPtrhook_
 

Detailed Description

template<typename ReturnType, typename... Args>
class absl::base_internal::AtomicHook< ReturnType(*)(Args...)>

Definition at line 50 of file atomic_hook.h.

Member Typedef Documentation

template<typename ReturnType , typename... Args>
using absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::FnPtr = ReturnType (*)(Args...)

Definition at line 52 of file atomic_hook.h.

Constructor & Destructor Documentation

template<typename ReturnType , typename... Args>
constexpr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::AtomicHook ( )
inline

Definition at line 56 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
constexpr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::AtomicHook ( FnPtr  default_fn)
inlineexplicit

Definition at line 61 of file atomic_hook.h.

Member Function Documentation

template<typename ReturnType , typename... Args>
FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DoLoad ( ) const
inlineprivate

Definition at line 115 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
bool absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DoStore ( FnPtr  fn)
inlineprivate

Definition at line 119 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
static ReturnType absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DummyFunction ( Args...  )
inlinestaticprivate

Definition at line 102 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::Load ( ) const
inline

Definition at line 96 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
template<typename... CallArgs>
ReturnType absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::operator() ( CallArgs &&...  args) const
inline

Definition at line 83 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
void absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::Store ( FnPtr  fn)
inline

Definition at line 74 of file atomic_hook.h.

Member Data Documentation

template<typename ReturnType , typename... Args>
const FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::default_fn_
private

Definition at line 157 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
std::atomic<FnPtr> absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::hook_
private

Definition at line 128 of file atomic_hook.h.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:19:59