OpenDDS  Snapshot(2023/04/07-19:43)
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

Atomic< 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 14 of file AtomicBool.h.

Constructor & Destructor Documentation

◆ AtomicBool()

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

Definition at line 16 of file AtomicBool.h.

17  : impl_(value)
18  {
19  }
const LogLevel::Value value
Definition: debug.cpp:61
Atomic< bool > impl_
Definition: AtomicBool.h:33

Member Function Documentation

◆ boolean_test()

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

Definition at line 21 of file AtomicBool.h.

References impl_.

22  {
23  return impl_;
24  }
Atomic< bool > impl_
Definition: AtomicBool.h:33

◆ operator=()

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

Definition at line 26 of file AtomicBool.h.

References impl_, and value.

27  {
28  impl_ = value;
29  return *this;
30  }
const LogLevel::Value value
Definition: debug.cpp:61
Atomic< bool > impl_
Definition: AtomicBool.h:33

Member Data Documentation

◆ impl_

Atomic<bool> OpenDDS::DCPS::AtomicBool::impl_
private

Definition at line 33 of file AtomicBool.h.

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


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