#include <cached_value.h>
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 | |
Private Attributes | |
value_type | value |
the cached value | |
bool | set |
is the value valid? |
Hold a single value, returning a cached value if there is one.
Definition at line 20 of file cached_value.h.
typedef T cached_value< T >::value_type |
Definition at line 25 of file cached_value.h.
cached_value< T >::cached_value | ( | ) | [inline] |
Definition at line 23 of file cached_value.h.
bool cached_value< T >::cached | ( | ) | const [inline] |
return true if a value is cached
Definition at line 35 of file cached_value.h.
Referenced by op_bfd::has_debug_info().
value_type const cached_value< T >::get | ( | ) | const [inline] |
return the cached value
Definition at line 28 of file cached_value.h.
Referenced by op_bfd::has_debug_info().
value_type const cached_value< T >::reset | ( | value_type const & | val | ) | [inline] |
set the contained value
Definition at line 38 of file cached_value.h.
Referenced by op_bfd::has_debug_info().
bool cached_value< T >::set [private] |
is the value valid?
Definition at line 48 of file cached_value.h.
value_type cached_value< T >::value [private] |
the cached value
Definition at line 46 of file cached_value.h.
Referenced by cached_value< bool >::get(), and cached_value< bool >::reset().