SharedValue< Type > Class Template Reference

#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_typepointer
typedef value_typereference

Private Attributes

std::size_t m_count
pointer m_value

Detailed Description

template<typename Type>
class SharedValue< Type >

Definition at line 41 of file cache.h.


Member Typedef Documentation

template<typename Type >
typedef value_type* SharedValue< Type >::pointer [private]

Definition at line 43 of file cache.h.

template<typename Type >
typedef value_type& SharedValue< Type >::reference [private]

Definition at line 44 of file cache.h.

template<typename Type >
typedef Type SharedValue< Type >::value_type [private]

Definition at line 42 of file cache.h.


Constructor & Destructor Documentation

template<typename Type >
SharedValue< Type >::SharedValue (  )  [inline]

Definition at line 50 of file cache.h.

template<typename Type >
SharedValue< Type >::~SharedValue (  )  [inline]

Definition at line 53 of file cache.h.

References SharedValue< Type >::m_count.


Member Function Documentation

template<typename Type >
std::size_t SharedValue< Type >::count (  )  [inline]

Definition at line 69 of file cache.h.

References SharedValue< Type >::m_count.

template<typename Type >
std::size_t SharedValue< Type >::decrement (  )  [inline]

Definition at line 65 of file cache.h.

References SharedValue< Type >::empty(), and SharedValue< Type >::m_count.

template<typename Type >
bool SharedValue< Type >::empty (  )  [inline]

Definition at line 72 of file cache.h.

References SharedValue< Type >::m_count.

Referenced by SharedValue< Type >::decrement().

template<typename Type >
pointer SharedValue< Type >::get (  )  [inline]

Definition at line 59 of file cache.h.

References SharedValue< Type >::m_value.

template<typename Type >
std::size_t SharedValue< Type >::increment (  )  [inline]

Definition at line 62 of file cache.h.

References SharedValue< Type >::m_count.

template<typename Type >
reference SharedValue< Type >::operator* (  )  const [inline]

Definition at line 75 of file cache.h.

References SharedValue< Type >::m_value.

Referenced by SharedValue< Type >::operator->().

template<typename Type >
pointer SharedValue< Type >::operator-> (  )  const [inline]

Definition at line 79 of file cache.h.

References SharedValue< Type >::operator*().

template<typename Type >
void SharedValue< Type >::set ( pointer  value  )  [inline]

Definition at line 56 of file cache.h.

References SharedValue< Type >::m_value.


Field Documentation

template<typename Type >
std::size_t SharedValue< Type >::m_count [private]
template<typename Type >
pointer SharedValue< Type >::m_value [private]

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

Generated by  doxygen 1.6.2