StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
|
Public Member Functions | |
Mutexed () noexcept=default | |
Default constructor. | |
Mutexed (const T &value) noexcept | |
Constructor with value. | |
Mutexed (const Mutexed< T > &other) noexcept | |
Copy constructor. | |
Mutexed (Mutexed< T > &&other) noexcept | |
Move constructor. | |
Mutexed< T > & | operator= (const Mutexed< T > &other) noexcept |
Copy assignment operator. | |
Mutexed< T > & | operator= (Mutexed< T > &&other) noexcept |
Move assignment operator. | |
virtual Mutexed< T > & | operator= (const T &value) noexcept |
Assignment operator. | |
virtual Mutexed< T > & | operator= (T &&value) noexcept |
Assignment move operator. | |
virtual | ~Mutexed () noexcept=default |
Destructor. | |
std::strong_ordering | operator<=> (const Mutexed &other) const noexcept |
Spaceship operator for comparison. | |
bool | operator!= (const Mutexed &other) const noexcept |
Inequality operator. | |
virtual T & | operator* () noexcept |
Dereference operator (use with explicit locking). | |
virtual const T & | operator* () const noexcept |
Dereference operator (use with explicit locking). | |
virtual T * | operator-> () noexcept |
Pointer dereference operator (use with explicit locking). | |
virtual const T * | operator-> () const noexcept |
Pointer dereference operator (use with explicit locking). | |
void | Lock () const |
Locks the mutex. | |
void | Unlock () const |
Unlocks the mutex. | |
Protected Attributes | |
T | m_value |
Value. | |
std::mutex | m_mutex |
Mutex. | |
Constructor with value.
value | The value to set. |
Copy constructor.
other | The other Mutexed object to copy. |
Move constructor.
other | The other Mutexed object to move. |
|
inlinenoexcept |
Inequality operator.
other | The other Mutexed object to compare. |
|
inlinevirtualnoexcept |
Dereference operator (use with explicit locking).
|
inlinevirtualnoexcept |
Dereference operator (use with explicit locking).
|
inlinevirtualnoexcept |
Pointer dereference operator (use with explicit locking).
|
inlinevirtualnoexcept |
Pointer dereference operator (use with explicit locking).
|
inlinenoexcept |
Spaceship operator for comparison.
other | The other Mutexed object to compare. |
|
inlinenoexcept |
Copy assignment operator.
other | The other Mutexed object to assign. |
|
inlinevirtualnoexcept |
Assignment operator.
value | The value to set. |
Reimplemented in StormByte::ArithmeticMutexed< T >.
|
inlinenoexcept |
Move assignment operator.
other | The other Mutexed object to assign. |
|
inlinevirtualnoexcept |
Assignment move operator.
value | The value to set. |
Reimplemented in StormByte::ArithmeticMutexed< T >.