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

#include <atomic_hook.h>

List of all members.

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< FnPtr > hook_

Detailed Description

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

Definition at line 50 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) [inline, explicit]

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 [inline, private]

Definition at line 115 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
bool absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DoStore ( FnPtr  fn) [inline, private]

Definition at line 119 of file atomic_hook.h.

template<typename ReturnType , typename... Args>
static ReturnType absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DummyFunction ( Args...  ) [inline, static, private]

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:42:16