Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
SteinhardtLRUCache.hpp File Reference

Thread-safe LRU cache for Steinhardt bond-order parameters across trajectory frames. More...

#include "calculators/order/SteinhardtCalculator.hpp"
#include <algorithm>
#include <cstddef>
#include <list>
#include <memory>
#include <shared_mutex>
#include <unordered_map>
Include dependency graph for SteinhardtLRUCache.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  correlation::app::FramePhaseDescriptors
 Unified container holding computed per-atom phase order parameters for a frame. More...
class  correlation::app::ThreadSafeLRUCache< ValueType >
 Thread-safe LRU cache storing per-atom parameters or descriptors for up to N trajectory frames, bounded by both frame count and a configurable memory byte budget. More...
struct  correlation::app::ThreadSafeLRUCache< ValueType >::CacheEntry

Namespaces

namespace  correlation
namespace  correlation::analysis
namespace  correlation::app
namespace  correlation::app::detail

Typedefs

using correlation::app::SteinhardtLRUCache = ThreadSafeLRUCache<calculators::SteinhardtCalculator::SteinhardtParams>
using correlation::app::PhaseDescriptorsLRUCache = ThreadSafeLRUCache<FramePhaseDescriptors>

Functions

std::size_t correlation::app::detail::estimateEntryBytes (const calculators::SteinhardtCalculator::SteinhardtParams &params) noexcept
std::size_t correlation::app::detail::estimateEntryBytes (const FramePhaseDescriptors &desc) noexcept
template<typename T>
std::size_t correlation::app::detail::estimateEntryBytes (const T &val) noexcept

Detailed Description

Thread-safe LRU cache for Steinhardt bond-order parameters across trajectory frames.

License
SPDX-License-Identifier: AGPL-3.0-only