ReFRACtor
FullPhysics::ArrayAdMapCache< K, T, D > Class Template Reference

Caches ArrayAd objects using a std::map. More...

#include <array_ad_cache.h>

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

Public Member Functions

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

Detailed Description

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

Caches ArrayAd objects using a std::map.

Best used when items are inserted and retrieved in an unknown order.

Definition at line 32 of file array_ad_cache.h.

Constructor & Destructor Documentation

◆ ArrayAdMapCache()

template<class K , class T , int D>
FullPhysics::ArrayAdMapCache< K, T, D >::ArrayAdMapCache ( )
inline

Definition at line 35 of file array_ad_cache.h.

◆ ~ArrayAdMapCache()

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

Definition at line 36 of file array_ad_cache.h.

Member Function Documentation

◆ clear()

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

Implements FullPhysics::ArrayAdCache< K, T, D >.

Definition at line 63 of file array_ad_cache.h.

◆ erase()

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

Implements FullPhysics::ArrayAdCache< K, T, D >.

Definition at line 58 of file array_ad_cache.h.

◆ insert()

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

Implements FullPhysics::ArrayAdCache< K, T, D >.

Definition at line 51 of file array_ad_cache.h.

◆ is_valid()

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

Implements FullPhysics::ArrayAdCache< K, T, D >.

Definition at line 46 of file array_ad_cache.h.

◆ operator[]()

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

Implements FullPhysics::ArrayAdCache< K, T, D >.

Definition at line 37 of file array_ad_cache.h.


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