Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shamrock.tree::ObjectCacheHandler Class Reference

Public Member Functions

 ObjectCacheHandler (u64 max_memsize, std::function< ObjectCache(u64)> &&generator)
 
void build_cache (u64 id)
 build a new entry in the cache and free enough entry to make space for it if necessary
 
ObjectCacheget_cache (u64 id)
 Get a cache entry and build it if it is not already in the cache.
 
void preload (u64 id)
 
void reset ()
 

Detailed Description

Definition at line 26 of file TreeTraversalCache.hpp.

Constructor & Destructor Documentation

◆ ObjectCacheHandler()

shamrock.tree::ObjectCacheHandler::ObjectCacheHandler ( u64  max_memsize,
std::function< ObjectCache(u64)> &&  generator 
)
inline

Definition at line 39 of file TreeTraversalCache.hpp.

Member Function Documentation

◆ build_cache()

void shamrock.tree::ObjectCacheHandler::build_cache ( u64  id)
inline

build a new entry in the cache and free enough entry to make space for it if necessary

Parameters
id

Definition at line 150 of file TreeTraversalCache.hpp.

+ Here is the call graph for this function:

◆ get_cache()

ObjectCache & shamrock.tree::ObjectCacheHandler::get_cache ( u64  id)
inline

Get a cache entry and build it if it is not already in the cache.

Parameters
id
Returns
ObjectCache&

Definition at line 186 of file TreeTraversalCache.hpp.

+ Here is the call graph for this function:

◆ preload()

void shamrock.tree::ObjectCacheHandler::preload ( u64  id)
inline

Definition at line 195 of file TreeTraversalCache.hpp.

◆ reset()

void shamrock.tree::ObjectCacheHandler::reset ( )
inline

Definition at line 197 of file TreeTraversalCache.hpp.


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