|
DUDS
|
Distributed Update of Data from Something
|
A reference to a Something object. More...
#include <SomethingRef.hpp>
Public Member Functions | |
| SomethingRef ()=default | |
| Makes an uninitalized reference to nothing. More... | |
| SomethingRef (const SomethingRef &)=default | |
| The default copy constructor. More... | |
| SomethingRef (const shared_ptr< ST > &s) | |
| Makes a new reference to Something from a shared pointer. More... | |
| ST * | get () const |
| Returns the pointer to the Something object. More... | |
| bool | operator bool () const noexcept |
| Tells if the this object references Something or nothing. More... | |
| template<class S > | |
| bool | operator!= (const S &s) const |
| Something objects are compared using their UUID. More... | |
| template<class S > | |
| bool | operator< (const S &s) const |
| Something objects are compared using their UUID. More... | |
| template<class S > | |
| bool | operator<= (const S &s) const |
| Something objects are compared using their UUID. More... | |
| template<class S > | |
| bool | operator== (const S &s) const |
| Something objects are compared using their UUID. More... | |
| template<class S > | |
| bool | operator> (const S &s) const |
| Something objects are compared using their UUID. More... | |
| template<class S > | |
| bool | operator>= (const S &s) const |
| Something objects are compared using their UUID. More... | |
| void | reset () noexcept |
| Loses the reference to Something. More... | |
| const shared_ptr< ST > | shared () const |
| Returns the shared pointer to Something. More... | |
| const boost::uuids::uuid & | uuid () const |
| Returns the object's unique identifier. More... | |
Private Attributes | |
| shared_ptr< ST > | sp |
| A shared pointer to Something. More... | |
A reference to a Something object.
This object holds a shared pointer to the Something object and performs comparisons using the Something's UUID. This allows for containers that hold sets of sorted Something objects without holding the actual object or a simple pointer to it.
Definition at line 176 of file SomethingRef.hpp.
|
default |
Makes an uninitalized reference to nothing.
|
default |
The default copy constructor.
|
inline |
Makes a new reference to Something from a shared pointer.
| s | The shared pointer to Something. |
| err? | The provided shared pointer points to nothing. |
Definition at line 196 of file SomethingRef.hpp.
|
inline |
Returns the pointer to the Something object.
Definition at line 218 of file SomethingRef.hpp.
|
inlinenoexcept |
Tells if the this object references Something or nothing.
Definition at line 224 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 281 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 241 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 257 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 273 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 249 of file SomethingRef.hpp.
|
inline |
Something objects are compared using their UUID.
Definition at line 265 of file SomethingRef.hpp.
|
inlinenoexcept |
Loses the reference to Something.
Definition at line 232 of file SomethingRef.hpp.
|
inline |
Returns the shared pointer to Something.
Definition at line 212 of file SomethingRef.hpp.
|
inline |
Returns the object's unique identifier.
Definition at line 206 of file SomethingRef.hpp.
|
private |
A shared pointer to Something.
Definition at line 180 of file SomethingRef.hpp.