OpenDDS  Snapshot(2022/12/02-20:49)
Public Member Functions | Private Attributes | List of all members
OpenDDS::DCPS::AtomicBool Class Reference

#include <AtomicBool.h>

Inheritance diagram for OpenDDS::DCPS::AtomicBool:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::AtomicBool:
Collaboration graph
[legend]

Public Member Functions

 AtomicBool (bool value)
 
bool boolean_test () const
 
AtomicBooloperator= (bool value)
 
- Public Member Functions inherited from OpenDDS::DCPS::SafeBool_T< AtomicBool >
 operator BoolType () const
 
- Public Member Functions inherited from OpenDDS::DCPS::SafeBoolBase
void this_type_does_not_support_comparisons () const
 

Private Attributes

ACE_Atomic_Op< ACE_Thread_Mutex, bool > impl_
 

Additional Inherited Members

- Public Types inherited from OpenDDS::DCPS::SafeBoolBase
typedef void(SafeBoolBase::* BoolType) () const
 
- Protected Member Functions inherited from OpenDDS::DCPS::SafeBool_T< AtomicBool >
 ~SafeBool_T ()
 
- Protected Member Functions inherited from OpenDDS::DCPS::SafeBoolBase
 SafeBoolBase ()
 
 SafeBoolBase (const SafeBoolBase &)
 
SafeBoolBaseoperator= (const SafeBoolBase &)
 
 ~SafeBoolBase ()
 

Detailed Description

Definition at line 20 of file AtomicBool.h.

Constructor & Destructor Documentation

◆ AtomicBool()

OpenDDS::DCPS::AtomicBool::AtomicBool ( bool  value)
inline

Definition at line 22 of file AtomicBool.h.

23  : impl_(value)
24  {
25  }
const LogLevel::Value value
Definition: debug.cpp:61
ACE_Atomic_Op< ACE_Thread_Mutex, bool > impl_
Definition: AtomicBool.h:48

Member Function Documentation

◆ boolean_test()

bool OpenDDS::DCPS::AtomicBool::boolean_test ( ) const
inline

Definition at line 27 of file AtomicBool.h.

References impl_, and ACE_Atomic_Op< ACE_LOCK, TYPE >::value().

28  {
29  return impl_
30 #ifndef ACE_HAS_CPP11
31  .value()
32 #endif
33  ;
34  }
TYPE value(void) const
ACE_Atomic_Op< ACE_Thread_Mutex, bool > impl_
Definition: AtomicBool.h:48

◆ operator=()

AtomicBool& OpenDDS::DCPS::AtomicBool::operator= ( bool  value)
inline

Definition at line 36 of file AtomicBool.h.

References impl_, and value.

37  {
38  impl_ = value;
39  return *this;
40  }
const LogLevel::Value value
Definition: debug.cpp:61
ACE_Atomic_Op< ACE_Thread_Mutex, bool > impl_
Definition: AtomicBool.h:48

Member Data Documentation

◆ impl_

ACE_Atomic_Op<ACE_Thread_Mutex, bool> OpenDDS::DCPS::AtomicBool::impl_
private

Definition at line 48 of file AtomicBool.h.

Referenced by boolean_test(), and operator=().


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