#include <cache.h>
Public Member Functions | |
SharedValue () | |
~SharedValue () | |
void | set (pointer value) |
pointer | get () |
std::size_t | increment () |
std::size_t | decrement () |
std::size_t | count () |
bool | empty () |
reference | operator* () const |
pointer | operator-> () const |
Private Types | |
typedef Type | value_type |
typedef value_type * | pointer |
typedef value_type & | reference |
Private Attributes | |
std::size_t | m_count |
pointer | m_value |
Definition at line 41 of file cache.h.
typedef value_type* SharedValue< Type >::pointer [private] |
typedef value_type& SharedValue< Type >::reference [private] |
typedef Type SharedValue< Type >::value_type [private] |
SharedValue< Type >::SharedValue | ( | ) | [inline] |
SharedValue< Type >::~SharedValue | ( | ) | [inline] |
Definition at line 53 of file cache.h.
References SharedValue< Type >::m_count.
std::size_t SharedValue< Type >::count | ( | ) | [inline] |
Definition at line 69 of file cache.h.
References SharedValue< Type >::m_count.
std::size_t SharedValue< Type >::decrement | ( | ) | [inline] |
Definition at line 65 of file cache.h.
References SharedValue< Type >::empty(), and SharedValue< Type >::m_count.
bool SharedValue< Type >::empty | ( | ) | [inline] |
Definition at line 72 of file cache.h.
References SharedValue< Type >::m_count.
Referenced by SharedValue< Type >::decrement().
pointer SharedValue< Type >::get | ( | ) | [inline] |
Definition at line 59 of file cache.h.
References SharedValue< Type >::m_value.
std::size_t SharedValue< Type >::increment | ( | ) | [inline] |
Definition at line 62 of file cache.h.
References SharedValue< Type >::m_count.
reference SharedValue< Type >::operator* | ( | ) | const [inline] |
Definition at line 75 of file cache.h.
References SharedValue< Type >::m_value.
Referenced by SharedValue< Type >::operator->().
pointer SharedValue< Type >::operator-> | ( | ) | const [inline] |
Definition at line 79 of file cache.h.
References SharedValue< Type >::operator*().
void SharedValue< Type >::set | ( | pointer | value | ) | [inline] |
Definition at line 56 of file cache.h.
References SharedValue< Type >::m_value.
std::size_t SharedValue< Type >::m_count [private] |
Definition at line 46 of file cache.h.
Referenced by SharedValue< Type >::count(), SharedValue< Type >::decrement(), SharedValue< Type >::empty(), SharedValue< Type >::increment(), and SharedValue< Type >::~SharedValue().
pointer SharedValue< Type >::m_value [private] |
Definition at line 47 of file cache.h.
Referenced by SharedValue< Type >::get(), SharedValue< Type >::operator*(), and SharedValue< Type >::set().