MADNESS
version 0.9
|
Simplified interface around hash_map to cache stuff for 1D. More...
#include <simplecache.h>
Public Member Functions | |
SimpleCache () | |
SimpleCache (const SimpleCache &c) | |
SimpleCache & | operator= (const SimpleCache &c) |
const Q * | getptr (const Key< NDIM > &key) const |
If key is present return pointer to cached value, otherwise return NULL. More... | |
const Q * | getptr (Level n, Translation l) const |
If key=(n,l) is present return pointer to cached value, otherwise return NULL. More... | |
const Q * | getptr (Level n, const Key< NDIM > &disp) const |
If key=(n,l) is present return pointer to cached value, otherwise return NULL. More... | |
void | set (const Key< NDIM > &key, const Q &val) |
Set value associated with key ... gives ownership of a new copy to the container. More... | |
void | set (Level n, Translation l, const Q &val) |
void | set (Level n, const Key< NDIM > &disp, const Q &val) |
Simplified interface around hash_map to cache stuff for 1D.
This is a write once cache — subsequent writes of elements have no effect (so that pointers/references to cached data cannot be invalidated)
|
inline |
|
inline |
|
inline |
If key is present return pointer to cached value, otherwise return NULL.
Referenced by madness::Convolution1D< Q >::get_rnlp(), madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::getptr(), madness::Convolution1D< Q >::mod_nonstandard(), madness::Convolution1D< Q >::nonstandard(), and madness::Convolution1D< Q >::rnlij().
|
inline |
If key=(n,l) is present return pointer to cached value, otherwise return NULL.
This for the convenience (backward compatibility) of 1D routines
|
inline |
If key=(n,l) is present return pointer to cached value, otherwise return NULL.
This for the convenience (backward compatibility) of 1D routines
|
inline |
|
inline |
Set value associated with key ... gives ownership of a new copy to the container.
Referenced by madness::Convolution1D< Q >::get_rnlp(), madness::Convolution1D< Q >::mod_nonstandard(), madness::Convolution1D< Q >::nonstandard(), madness::Convolution1D< Q >::rnlij(), and madness::SimpleCache< madness::SeparatedConvolutionData< Q, NDIM >, 2 *NDIM >::set().
|
inline |
|
inline |