33 #ifndef MADNESS_MRA_SIMPLECACHE_H__INCLUDED 
   34 #define MADNESS_MRA_SIMPLECACHE_H__INCLUDED 
   44     template <
typename Q, std::
size_t NDIM>
 
   48         typedef std::pair<Key<NDIM>, Q> pairT;
 
   67             if (test == cache.
end()) 
return 0;
 
   68             return &(test->second);
 
   92             cache.
insert(pairT(key,val));
 
  106 #endif // MADNESS_MRA_SIMPLECACHE_H__INCLUDED 
iterator for hash 
Definition: worldhashmap.h:190
const Vector< Translation, NDIM > & translation() const 
Definition: key.h:225
void set(Level n, Translation l, const Q &val)
Definition: simplecache.h:95
iterator end()
Definition: worldhashmap.h:579
void clear()
Definition: worldhashmap.h:556
const Q * getptr(Level n, const Key< NDIM > &disp) const 
If key=(n,l) is present return pointer to cached value, otherwise return NULL. 
Definition: simplecache.h:84
Definition: worldhashmap.h:57
const Q * getptr(Level n, Translation l) const 
If key=(n,l) is present return pointer to cached value, otherwise return NULL. 
Definition: simplecache.h:75
Simplified interface around hash_map to cache stuff for 1D. 
Definition: simplecache.h:45
const Q * getptr(const Key< NDIM > &key) const 
If key is present return pointer to cached value, otherwise return NULL. 
Definition: simplecache.h:65
std::pair< iterator, bool > insert(const datumT &datum)
Definition: worldhashmap.h:469
SimpleCache & operator=(const SimpleCache &c)
Definition: simplecache.h:56
int Level
Definition: key.h:58
void test(World &world, bool doloadbal=false)
Definition: dataloadbal.cc:225
SimpleCache()
Definition: simplecache.h:52
void set(const Key< NDIM > &key, const Q &val)
Set value associated with key ... gives ownership of a new copy to the container. ...
Definition: simplecache.h:91
void set(Level n, const Key< NDIM > &disp, const Q &val)
Definition: simplecache.h:100
Multidimension Key for MRA tree and associated iterators. 
SimpleCache(const SimpleCache &c)
Definition: simplecache.h:54
int64_t Translation
Definition: key.h:57
iterator find(const keyT &key)
Definition: worldhashmap.h:524
Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces. 
Definition: chem/atomutil.cc:45
const double c
Definition: gfit.cc:200
Key is the index for a node of the 2^NDIM-tree. 
Definition: key.h:69