Tracks the modification status of a wrapped object of the given type.
More...
#include <Tracked.h>
template<class T>
class madara::knowledge::rcw::Tracked< T >
Tracks the modification status of a wrapped object of the given type.
See https://sourceforge.net/p/madara/wiki/ReadComputeWrite/ for details.
- Template Parameters
-
T | type of the underlying object |
Definition at line 75 of file Tracked.h.
Flag for modification status.
Definition at line 81 of file Tracked.h.
Default constructor; default constructs wrapped object.
Definition at line 88 of file Tracked.h.
Create a Tracked version of the given object, which is copied.
- Parameters
-
val | the object to copy and track |
Definition at line 92 of file Tracked.h.
Resets modification status.
Definition at line 168 of file Tracked.h.
Get a const ref to the underlying object.
Definition at line 95 of file Tracked.h.
Get a non-const ref to underlying object.
Immediately treat it as modified, since we don't know what the caller will do with it.
Definition at line 108 of file Tracked.h.
Get a non-const ref to underlying object.
Immediately treat it as modified, since we don't know what the caller will do with it. Synonmym for
Definition at line 117 of file Tracked.h.
Get modification status.
- Returns
- true if object has been modified; false if not
Definition at line 162 of file Tracked.h.
Treat object as modified, even if it isn't.
Definition at line 155 of file Tracked.h.
Cast to bool as appropriate.
Definition at line 181 of file Tracked.h.
Cast to const ref as appropriate.
Definition at line 101 of file Tracked.h.
template<class T>
template<class U , typename std::enable_if< std::is_convertible< T, U >::value, void * >::type = nullptr>
Support conversion to Tracked<U> if U can convert from T.
- Template Parameters
-
U | other type to potentially convert to |
Definition at line 190 of file Tracked.h.
Dereference to underlying object.
Only supports const version. To get a non-const reference, use get_mut().
Definition at line 132 of file Tracked.h.
Pass through to underlying object.
Only supports const version. To get a non-const reference, use get_mut().
Definition at line 139 of file Tracked.h.
Assignment writes to the underlying object.
Definition at line 145 of file Tracked.h.
Delete default assignment so we don't accidentally use it.
Set the underlying object, and mark as modified.
Definition at line 124 of file Tracked.h.
Implement swap between two tracked objects of same type.
Definition at line 198 of file Tracked.h.
template<class T>
void swap |
( |
Tracked< T > & |
lhs, |
|
|
T & |
rhs |
|
) |
| |
|
friend |
Implement swap between tracked object, and object of underlying type.
Definition at line 206 of file Tracked.h.
template<class T>
void swap |
( |
T & |
lhs, |
|
|
Tracked< T > & |
rhs |
|
) |
| |
|
friend |
Implement swap between tracked object, and object of underlying type.
Definition at line 214 of file Tracked.h.
Wrapped value.
Definition at line 79 of file Tracked.h.
The documentation for this class was generated from the following file: