Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
absl::Condition Class Reference

#include <mutex.h>

Public Member Functions

template<typename T >
 Condition (bool(*func)(T *), T *arg)
 
template<typename T >
 Condition (bool(*func)(T *), T *arg)
 
 Condition (bool(*func)(void *), void *arg)
 
 Condition (bool(*func)(void *), void *arg)
 
 Condition (const bool *cond)
 
 Condition (const bool *cond)
 
template<typename T , typename E = decltype( static_cast<bool (T::*)() const>(&T::operator()))>
 Condition (const T *obj)
 
template<typename T , typename E = decltype( static_cast<bool (T::*)() const>(&T::operator()))>
 Condition (const T *obj)
 
template<typename T >
 Condition (const T *object, bool(absl::internal::identity< T >::type::*method)() const)
 
template<typename T >
 Condition (const T *object, bool(absl::internal::identity< T >::type::*method)() const)
 
template<typename T >
 Condition (T *object, bool(absl::internal::identity< T >::type::*method)())
 
template<typename T >
 Condition (T *object, bool(absl::internal::identity< T >::type::*method)())
 
bool Eval () const
 
bool Eval () const
 

Static Public Member Functions

static bool GuaranteedEqual (const Condition *a, const Condition *b)
 
static bool GuaranteedEqual (const Condition *a, const Condition *b)
 

Static Public Attributes

static const Condition kTrue
 

Private Types

typedef bool(* InternalFunctionType) (void *arg)
 
typedef bool(* InternalFunctionType) (void *arg)
 
typedef bool(* InternalMethodCallerType) (void *arg, InternalMethodType internal_method)
 
typedef bool(* InternalMethodCallerType) (void *arg, InternalMethodType internal_method)
 
typedef bool(Condition::* InternalMethodType) ()
 
typedef bool(Condition::* InternalMethodType) ()
 

Private Member Functions

 Condition ()
 
 Condition ()
 

Static Private Member Functions

static bool CallVoidPtrFunction (const Condition *)
 
static bool CallVoidPtrFunction (const Condition *)
 
template<typename T >
static bool CastAndCallFunction (const Condition *c)
 
template<typename T >
static bool CastAndCallFunction (const Condition *c)
 
template<typename T >
static bool CastAndCallMethod (const Condition *c)
 
template<typename T >
static bool CastAndCallMethod (const Condition *c)
 

Private Attributes

void * arg_
 
bool(* eval_ )(const Condition *)
 
InternalFunctionType function_
 
InternalMethodType method_
 

Detailed Description

Definition at line 663 of file abseil-cpp/absl/synchronization/mutex.h.

Member Typedef Documentation

◆ InternalFunctionType [1/2]

typedef bool(* absl::Condition::InternalFunctionType) (void *arg)
private

◆ InternalFunctionType [2/2]

typedef bool(* absl::Condition::InternalFunctionType) (void *arg)
private

Definition at line 745 of file abseil-cpp/absl/synchronization/mutex.h.

◆ InternalMethodCallerType [1/2]

typedef bool(* absl::Condition::InternalMethodCallerType) (void *arg, InternalMethodType internal_method)
private

◆ InternalMethodCallerType [2/2]

typedef bool(* absl::Condition::InternalMethodCallerType) (void *arg, InternalMethodType internal_method)
private

Definition at line 747 of file abseil-cpp/absl/synchronization/mutex.h.

◆ InternalMethodType [1/2]

typedef bool(Condition::* absl::Condition::InternalMethodType) ()
private

◆ InternalMethodType [2/2]

typedef bool(Condition::* absl::Condition::InternalMethodType) ()
private

Definition at line 746 of file abseil-cpp/absl/synchronization/mutex.h.

Constructor & Destructor Documentation

◆ Condition() [1/14]

absl::Condition::Condition ( bool(*)(void *)  func,
void *  arg 
)

Definition at line 2752 of file abseil-cpp/absl/synchronization/mutex.cc.

◆ Condition() [2/14]

template<typename T >
absl::Condition::Condition ( bool(*)(T *)  func,
T arg 
)
inline

Definition at line 968 of file abseil-cpp/absl/synchronization/mutex.h.

◆ Condition() [3/14]

template<typename T >
absl::Condition::Condition ( T object,
bool(absl::internal::identity< T >::type::*)()  method 
)
inline

Definition at line 975 of file abseil-cpp/absl/synchronization/mutex.h.

◆ Condition() [4/14]

template<typename T >
absl::Condition::Condition ( const T object,
bool(absl::internal::identity< T >::type::*)() const  method 
)
inline

Definition at line 983 of file abseil-cpp/absl/synchronization/mutex.h.

◆ Condition() [5/14]

absl::Condition::Condition ( const bool cond)
explicit

Definition at line 2762 of file abseil-cpp/absl/synchronization/mutex.cc.

◆ Condition() [6/14]

template<typename T , typename E = decltype( static_cast<bool (T::*)() const>(&T::operator()))>
absl::Condition::Condition ( const T obj)
inlineexplicit

Definition at line 726 of file abseil-cpp/absl/synchronization/mutex.h.

◆ Condition() [7/14]

absl::Condition::Condition ( )
private

Definition at line 2749 of file abseil-cpp/absl/synchronization/mutex.cc.

◆ Condition() [8/14]

absl::Condition::Condition ( bool(*)(void *)  func,
void *  arg 
)

◆ Condition() [9/14]

template<typename T >
absl::Condition::Condition ( bool(*)(T *)  func,
T arg 
)

◆ Condition() [10/14]

template<typename T >
absl::Condition::Condition ( T object,
bool(absl::internal::identity< T >::type::*)()  method 
)

◆ Condition() [11/14]

template<typename T >
absl::Condition::Condition ( const T object,
bool(absl::internal::identity< T >::type::*)() const  method 
)

◆ Condition() [12/14]

absl::Condition::Condition ( const bool cond)
explicit

◆ Condition() [13/14]

template<typename T , typename E = decltype( static_cast<bool (T::*)() const>(&T::operator()))>
absl::Condition::Condition ( const T obj)
inlineexplicit

◆ Condition() [14/14]

absl::Condition::Condition ( )
private

Member Function Documentation

◆ CallVoidPtrFunction() [1/2]

static bool absl::Condition::CallVoidPtrFunction ( const Condition )
staticprivate

◆ CallVoidPtrFunction() [2/2]

bool absl::Condition::CallVoidPtrFunction ( const Condition c)
staticprivate

Definition at line 2758 of file abseil-cpp/absl/synchronization/mutex.cc.

◆ CastAndCallFunction() [1/2]

template<typename T >
static bool absl::Condition::CastAndCallFunction ( const Condition c)
staticprivate

◆ CastAndCallFunction() [2/2]

template<typename T >
bool absl::Condition::CastAndCallFunction ( const Condition c)
staticprivate

Definition at line 960 of file abseil-cpp/absl/synchronization/mutex.h.

◆ CastAndCallMethod() [1/2]

template<typename T >
static bool absl::Condition::CastAndCallMethod ( const Condition c)
staticprivate

◆ CastAndCallMethod() [2/2]

template<typename T >
bool absl::Condition::CastAndCallMethod ( const Condition c)
staticprivate

Definition at line 951 of file abseil-cpp/absl/synchronization/mutex.h.

◆ Eval() [1/2]

bool absl::Condition::Eval ( ) const

◆ Eval() [2/2]

bool absl::Condition::Eval ( ) const

Definition at line 2769 of file abseil-cpp/absl/synchronization/mutex.cc.

◆ GuaranteedEqual() [1/2]

static bool absl::Condition::GuaranteedEqual ( const Condition a,
const Condition b 
)
static

◆ GuaranteedEqual() [2/2]

bool absl::Condition::GuaranteedEqual ( const Condition a,
const Condition b 
)
static

Definition at line 2774 of file abseil-cpp/absl/synchronization/mutex.cc.

Member Data Documentation

◆ arg_

void * absl::Condition::arg_
private

Definition at line 753 of file abseil-cpp/absl/synchronization/mutex.h.

◆ eval_

bool(* absl::Condition::eval_)(const Condition *)
private

Definition at line 750 of file abseil-cpp/absl/synchronization/mutex.h.

◆ function_

InternalFunctionType absl::Condition::function_
private

Definition at line 751 of file abseil-cpp/absl/synchronization/mutex.h.

◆ kTrue

static const Condition absl::Condition::kTrue
static

Definition at line 730 of file abseil-cpp/absl/synchronization/mutex.h.

◆ method_

InternalMethodType absl::Condition::method_
private

Definition at line 752 of file abseil-cpp/absl/synchronization/mutex.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:08