XLL+ Class Library

CXlCacheBinding<C>::CXlCacheBinding

Constructs a CXlOperCache object

[C++]
CXlCacheBinding(
   C& cache,
   CXlOper& xloResult,
   const char* pszFnName,
   void* pvFirstArg,
   bool bPrefixFn = false
);

Parameters

cache

A reference to a cache object. If the cache object is not descended from CXlOperCache, then it is expected to support the Find() and Add() methods.

xloResult

This CXlOper object will be populated by the cached result, if a matching record for the key is found in the cache.

pszFnName

Name of add-in function whose arguments are being converted to a byte array.

pvFirstArg

Address of the first argument to the add-in function. This pointer is used to traverse the argument stack, using the add-in function's registered definition to interpret the items in the stack.

bPrefixFn

If true, the name of the function will be prefixed to the byte array. This is useful if a single cache is used for more than one add-in function. If false, then the function is not prefixed. This is appropriate if each add-in function uses its own cache.

Remarks

This method constructs an active CXlCacheBinding object. There should never be more than one active CXlCacheBinding object in the immediate scope of any one add-in function.

Requirements

Header: xlserialize.h

See Also

CXlCacheBinding<C> Class | CXlCacheBinding<C> Methods