ReFRACtor
FullPhysics::ArrayAdCache< K, T, D > Class Template Referenceabstract

Defines an interface for caching ArrayAd objects such that the underlying caching mechanism is not necessarily exposed to a user of the cache. More...

#include <array_ad_cache.h>

+ Inheritance diagram for FullPhysics::ArrayAdCache< K, T, D >:
+ Collaboration diagram for FullPhysics::ArrayAdCache< K, T, D >:

Public Member Functions

virtual ~ArrayAdCache ()
 
virtual void clear ()=0
 
virtual void erase (const K &key)=0
 
virtual void insert (const K &key, const ArrayAd< T, D > &value)=0
 
virtual bool is_valid (const K &key) const =0
 
virtual ArrayAd< T, D > operator[] (const K &key) const =0
 

Detailed Description

template<class K, class T, int D>
class FullPhysics::ArrayAdCache< K, T, D >

Defines an interface for caching ArrayAd objects such that the underlying caching mechanism is not necessarily exposed to a user of the cache.

Also alternative caching mechanism can be switched in without a cache user needing to change anything.

Definition at line 16 of file array_ad_cache.h.

Constructor & Destructor Documentation

◆ ~ArrayAdCache()

template<class K, class T, int D>
virtual FullPhysics::ArrayAdCache< K, T, D >::~ArrayAdCache ( )
inlinevirtual

Definition at line 19 of file array_ad_cache.h.

Member Function Documentation

◆ clear()

template<class K, class T, int D>
virtual void FullPhysics::ArrayAdCache< K, T, D >::clear ( )
pure virtual

◆ erase()

template<class K, class T, int D>
virtual void FullPhysics::ArrayAdCache< K, T, D >::erase ( const K &  key)
pure virtual

◆ insert()

template<class K, class T, int D>
virtual void FullPhysics::ArrayAdCache< K, T, D >::insert ( const K &  key,
const ArrayAd< T, D > &  value 
)
pure virtual

◆ is_valid()

template<class K, class T, int D>
virtual bool FullPhysics::ArrayAdCache< K, T, D >::is_valid ( const K &  key) const
pure virtual

◆ operator[]()

template<class K, class T, int D>
virtual ArrayAd<T, D> FullPhysics::ArrayAdCache< K, T, D >::operator[] ( const K &  key) const
pure virtual

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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:12