MADNESS 0.10.1
Public Member Functions | Private Member Functions | List of all members
madness::detail::DistCache< keyT >::Cache Class Referenceabstract

Cache interface class. More...

Inheritance diagram for madness::detail::DistCache< keyT >::Cache:
Inheritance graph
[legend]

Public Member Functions

virtual ~Cache ()
 Virtual destructor.
 
template<typename valueT >
const madness::Future< valueT > & get () const
 Cache data accessor.
 

Private Member Functions

virtual const std::type_info & get_type_info () const =0
 Typeid accessor of the derived class.
 

Detailed Description

template<typename keyT>
class madness::detail::DistCache< keyT >::Cache

Cache interface class.

This base class is used to access derived class values

Constructor & Destructor Documentation

◆ ~Cache()

template<typename keyT >
virtual madness::detail::DistCache< keyT >::Cache::~Cache ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ get()

template<typename keyT >
template<typename valueT >
const madness::Future< valueT > & madness::detail::DistCache< keyT >::Cache::get ( ) const
inline

Cache data accessor.

Template Parameters
valueTThe cached data type
Returns
A const reference to the cached future

References madness::detail::DistCache< keyT >::Cache::get_type_info(), and MADNESS_ASSERT.

◆ get_type_info()

template<typename keyT >
virtual const std::type_info & madness::detail::DistCache< keyT >::Cache::get_type_info ( ) const
privatepure virtual

Typeid accessor of the derived class.

Returns
The std::type_info of the derived class

Implemented in madness::detail::DistCache< keyT >::CacheData< valueT >.

Referenced by madness::detail::DistCache< keyT >::Cache::get().


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