LHAPDF  6.3.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
LHAPDF::LogBicubicInterpolator::XCaches Struct Reference

A multi-level x-variable cache for a single subgrid hash. More...

#include <LogBicubicInterpolator.h>

Public Member Functions

size_t size ()
 Get the length of the cache vector.
 
XCacheoperator[] (size_t index)
 Access the index'th element of the cache.
 

Static Public Member Functions

static void setup (size_t size, int update_step=+1, bool update_on_hit=true)
 (Re)define cache size and search strategy
 
static void init ()
 Initialize a cache on this thread (call with explicit locks to ensure safe initialisation for each thread)
 

Public Attributes

size_t ilast = 0
 Latest-call index.
 
vector< XCachecaches {SIZE}
 List of N cached-value sets.
 

Static Public Attributes

static size_t SIZE
 Number of cache levels.
 
static int UPDATE_STEP
 Cache access strategy.
 
static bool UPDATE_ON_HIT
 Cache access strategy.
 

Detailed Description

A multi-level x-variable cache for a single subgrid hash.


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