OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::ShardedAstCache Class Reference

Data Structures

struct  Shard

Public Member Functions

 ShardedAstCache (std::size_t totalCapacity=512)
void setCapacity (std::size_t totalCapacity) noexcept
std::size_t size () const noexcept
void clear () noexcept
std::shared_ptr< XLASTNode > get (std::string_view key) const
void put (std::string key, std::shared_ptr< XLASTNode > ast)

Static Public Attributes

static constexpr size_t kShardCount = 8

Constructor & Destructor Documentation

◆ ShardedAstCache()

OpenXLSX::ShardedAstCache::ShardedAstCache ( std::size_t totalCapacity = 512)
inlineexplicit

Member Function Documentation

◆ clear()

void OpenXLSX::ShardedAstCache::clear ( )
inlinenoexcept

◆ get()

std::shared_ptr< XLASTNode > OpenXLSX::ShardedAstCache::get ( std::string_view key) const
inlinenodiscard

◆ put()

void OpenXLSX::ShardedAstCache::put ( std::string key,
std::shared_ptr< XLASTNode > ast )
inline

◆ setCapacity()

void OpenXLSX::ShardedAstCache::setCapacity ( std::size_t totalCapacity)
inlinenoexcept

◆ size()

std::size_t OpenXLSX::ShardedAstCache::size ( ) const
inlinenodiscardnoexcept

Field Documentation

◆ kShardCount

size_t OpenXLSX::ShardedAstCache::kShardCount = 8
staticconstexpr

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