cached_value< T > Class Template Reference

Hold a single value, returning a cached value if there is one. More...

#include <cached_value.h>

Inheritance diagram for cached_value< T >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef T value_type

Public Member Functions

 cached_value ()
value_type const get () const
 return the cached value
bool cached () const
 return true if a value is cached
value_type const reset (value_type const &val)
 set the contained value

Detailed Description

template<class T>
class cached_value< T >

Hold a single value, returning a cached value if there is one.


Member Typedef Documentation

template<class T>
typedef T cached_value< T >::value_type
 


Constructor & Destructor Documentation

template<class T>
cached_value< T >::cached_value  )  [inline]
 


Member Function Documentation

template<class T>
bool cached_value< T >::cached  )  const [inline]
 

return true if a value is cached

template<class T>
value_type const cached_value< T >::get  )  const [inline]
 

return the cached value

template<class T>
value_type const cached_value< T >::reset value_type const &  val  )  [inline]
 

set the contained value


The documentation for this class was generated from the following file:
Generated on Thu Jul 17 19:54:20 2008 for oprofile by  doxygen 1.4.6