MADNESS  0.10.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
madness::detail::DistCache< keyT >::CacheData< valueT > Class Template Reference

Cache value container. More...

Inheritance diagram for madness::detail::DistCache< keyT >::CacheData< valueT >:
Inheritance graph
[legend]
Collaboration diagram for madness::detail::DistCache< keyT >::CacheData< valueT >:
Collaboration graph
[legend]

Public Member Functions

 CacheData ()
 Default constructor. More...
 
 CacheData (const madness::Future< valueT > &value)
 Constructor with future initialization. More...
 
 CacheData (const valueT &value)
 Constructor with data initialization. More...
 
virtual ~CacheData ()
 Virtual destructor. More...
 
const madness::Future< valueT > & value () const
 Data accessor. More...
 
- Public Member Functions inherited from madness::detail::DistCache< keyT >::Cache
virtual ~Cache ()
 Virtual destructor. More...
 
template<typename valueT >
const madness::Future< valueT > & get () const
 Cache data accessor. More...
 

Private Member Functions

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

Private Attributes

madness::Future< valueTvalue_
 Local cached data. More...
 

Detailed Description

template<typename keyT>
template<typename valueT>
class madness::detail::DistCache< keyT >::CacheData< valueT >

Cache value container.

Template Parameters
valueTThe data type stored in the cache

Constructor & Destructor Documentation

◆ CacheData() [1/3]

template<typename keyT >
template<typename valueT >
madness::detail::DistCache< keyT >::CacheData< valueT >::CacheData ( )
inline

Default constructor.

◆ CacheData() [2/3]

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

Constructor with future initialization.

◆ CacheData() [3/3]

template<typename keyT >
template<typename valueT >
madness::detail::DistCache< keyT >::CacheData< valueT >::CacheData ( const valueT value)
inline

Constructor with data initialization.

◆ ~CacheData()

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

Virtual destructor.

Member Function Documentation

◆ get_type_info()

template<typename keyT >
template<typename valueT >
virtual const std::type_info& madness::detail::DistCache< keyT >::CacheData< valueT >::get_type_info ( ) const
inlineprivatevirtual

Typeid accessor of the derived class.

Returns
The std::type_info of the derived class

Implements madness::detail::DistCache< keyT >::Cache.

◆ value()

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

Data accessor.

Returns
A const reference to the data

References madness::detail::DistCache< keyT >::CacheData< valueT >::value_.

Member Data Documentation

◆ value_

template<typename keyT >
template<typename valueT >
madness::Future<valueT> madness::detail::DistCache< keyT >::CacheData< valueT >::value_
private

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