VeloGraphX
High-performance dynamic graph analytics in C++20
Loading...
Searching...
No Matches
velographx::PartitionCache< Payload > Class Template Reference

#include <partition_cache.hpp>

Public Member Functions

 PartitionCache (MemoryBudget budget, std::size_t algorithm_state_bytes=0)
 
 PartitionCache (std::size_t capacity_bytes)
 
std::size_t capacity_bytes () const noexcept
 
std::size_t resident_bytes () const noexcept
 
std::size_t size () const noexcept
 
const PartitionCacheStatsstats () const noexcept
 
void clear ()
 
bool contains (PartitionId id) const noexcept
 
const Payload * get (PartitionId id)
 
void put (PartitionId id, Payload payload, std::size_t bytes)
 
bool erase (PartitionId id)
 

Detailed Description

template<class Payload = std::vector<std::uint8_t>>
class velographx::PartitionCache< Payload >

Definition at line 26 of file partition_cache.hpp.

Constructor & Destructor Documentation

◆ PartitionCache() [1/2]

template<class Payload = std::vector<std::uint8_t>>
velographx::PartitionCache< Payload >::PartitionCache ( MemoryBudget  budget,
std::size_t  algorithm_state_bytes = 0 
)
inlineexplicit

Definition at line 28 of file partition_cache.hpp.

◆ PartitionCache() [2/2]

template<class Payload = std::vector<std::uint8_t>>
velographx::PartitionCache< Payload >::PartitionCache ( std::size_t  capacity_bytes)
inlineexplicit

Definition at line 31 of file partition_cache.hpp.

Member Function Documentation

◆ capacity_bytes()

template<class Payload = std::vector<std::uint8_t>>
std::size_t velographx::PartitionCache< Payload >::capacity_bytes ( ) const
inlinenoexcept

Definition at line 33 of file partition_cache.hpp.

◆ clear()

template<class Payload = std::vector<std::uint8_t>>
void velographx::PartitionCache< Payload >::clear ( )
inline

◆ contains()

template<class Payload = std::vector<std::uint8_t>>
bool velographx::PartitionCache< Payload >::contains ( PartitionId  id) const
inlinenoexcept

Definition at line 44 of file partition_cache.hpp.

◆ erase()

template<class Payload = std::vector<std::uint8_t>>
bool velographx::PartitionCache< Payload >::erase ( PartitionId  id)
inline

◆ get()

template<class Payload = std::vector<std::uint8_t>>
const Payload * velographx::PartitionCache< Payload >::get ( PartitionId  id)
inline

◆ put()

template<class Payload = std::vector<std::uint8_t>>
void velographx::PartitionCache< Payload >::put ( PartitionId  id,
Payload  payload,
std::size_t  bytes 
)
inline

◆ resident_bytes()

template<class Payload = std::vector<std::uint8_t>>
std::size_t velographx::PartitionCache< Payload >::resident_bytes ( ) const
inlinenoexcept

◆ size()

template<class Payload = std::vector<std::uint8_t>>
std::size_t velographx::PartitionCache< Payload >::size ( ) const
inlinenoexcept

Definition at line 35 of file partition_cache.hpp.

◆ stats()

template<class Payload = std::vector<std::uint8_t>>
const PartitionCacheStats & velographx::PartitionCache< Payload >::stats ( ) const
inlinenoexcept

Definition at line 36 of file partition_cache.hpp.

Referenced by velographx::AsyncPartitionLoader::stats().


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