MADARA  3.1.8
madara::knowledge::rcw::TrackedExtra< T, Impl > Class Template Reference

Provides default versions of methods below. More...

#include <Tracked.h>

Public Member Functions

void clear_dirty ()
 Resets modification status. More...
 
const T & get () const
 Get a const ref to the underlying object. More...
 
T & get_mut ()
 Get a non-const ref to underlying object. More...
 
T & get_mutable ()
 Get a non-const ref to underlying object. More...
 
bool is_dirty () const
 Get modification status. More...
 
void modify ()
 Treat object as modified, even if it isn't. More...
 
void set (T val)
 Set the underlying object, and mark as modified. More...
 

Detailed Description

template<class T, class Impl>
class madara::knowledge::rcw::TrackedExtra< T, Impl >

Provides default versions of methods below.

Specialize to add additional overloads for certain Ts

Definition at line 34 of file Tracked.h.

Member Function Documentation

template<class T, class Impl>
void madara::knowledge::rcw::TrackedExtra< T, Impl >::clear_dirty ( )

Resets modification status.

template<class T, class Impl>
const T& madara::knowledge::rcw::TrackedExtra< T, Impl >::get ( ) const

Get a const ref to the underlying object.

template<class T, class Impl>
T& madara::knowledge::rcw::TrackedExtra< T, Impl >::get_mut ( )

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.

template<class T, class Impl>
T& madara::knowledge::rcw::TrackedExtra< T, Impl >::get_mutable ( )

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

template<class T, class Impl>
bool madara::knowledge::rcw::TrackedExtra< T, Impl >::is_dirty ( ) const

Get modification status.

Returns
true if object has been modified; false if not
template<class T, class Impl>
void madara::knowledge::rcw::TrackedExtra< T, Impl >::modify ( )

Treat object as modified, even if it isn't.

template<class T, class Impl>
void madara::knowledge::rcw::TrackedExtra< T, Impl >::set ( val)

Set the underlying object, and mark as modified.


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