Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Classes | Namespaces | Concepts | Macros | Typedefs | Enumerations | Variables
storage_provider.hpp File Reference
#include <common.hpp>
#include <iterator>
#include <concepts>

Go to the source code of this file.

Classes

struct  graphle::store::is_storage_type< S, ST, Args >
 
struct  graphle::store::is_storage_type< S, storage_type::VECTOR, T >
 
struct  graphle::store::is_storage_type< S, storage_type::UNORDERED_MAP, K, V, Hash, Eq >
 
struct  graphle::store::is_storage_type< S, storage_type::UNORDERED_MAP, K, V >
 
struct  graphle::store::is_storage_type< S, storage_type::UNORDERED_SET, K, Hash, Eq >
 
struct  graphle::store::is_storage_type< S, storage_type::UNORDERED_SET, K >
 
struct  graphle::store::is_storage_type< S, storage_type::DEQUE, T >
 
struct  graphle::store::is_storage_provider< P, ST, Args >
 
struct  graphle::store::rebind_storage_provider< P >
 
struct  graphle::store::rebind_storage_provider< P< ST, Args... > >
 

Namespaces

namespace  graphle
 
namespace  graphle::store
 

Concepts

concept  graphle::store::vector_storage_type
 
concept  graphle::store::unordered_map_storage_type
 
concept  graphle::store::unordered_set_storage_type
 
concept  graphle::store::deque_storage_type
 
concept  graphle::store::storage_for
 
concept  graphle::store::storage_ref
 
concept  graphle::store::storage_provider_for
 
concept  graphle::store::storage_provider_ref
 

Macros

#define GRAPHLE_REUSABLE   /** @qualifier GRAPHLE_REUSABLE */
 
#define GRAPHLE_MULTIPLE   /** @qualifier GRAPHLE_MULTIPLE */
 

Typedefs

template<typename P >
using graphle::store::provided_storage_type = std::invoke_result_t< P >
 
template<typename P >
using graphle::store::provided_storage_value_type = std::remove_reference_t< std::invoke_result_t< P > >
 

Enumerations

enum class  graphle::store::storage_type { graphle::store::VECTOR , graphle::store::UNORDERED_MAP , graphle::store::UNORDERED_SET , graphle::store::DEQUE }
 

Variables

template<typename S , storage_type ST, typename... Args>
constexpr bool graphle::store::is_storage_type_v = is_storage_type<S, ST, Args...>::value
 
template<typename P , storage_type ST, typename... Args>
constexpr bool graphle::store::is_storage_provider_v = is_storage_provider<P, ST, Args...>::value
 

Macro Definition Documentation

◆ GRAPHLE_MULTIPLE

#define GRAPHLE_MULTIPLE   /** @qualifier GRAPHLE_MULTIPLE */

If a storage provider is invoked multiple times by a single call to a Graphle algorithm, it will be marked with GRAPHLE_MULTIPLE. Unlike GRAPHLE_REUSABLE, this macro indicates that the provider may be invoked again while its previous value is still in use, meaning it should return a new object each time.

Definition at line 23 of file storage_provider.hpp.

◆ GRAPHLE_REUSABLE

#define GRAPHLE_REUSABLE   /** @qualifier GRAPHLE_REUSABLE */

If a storage provider is invoked multiple times by a single call to a Graphle algorithm, it will be marked with GRAPHLE_REUSABLE. Note that at most one instance of the provider will be used at a time, so it is valid behaviour to simply clear the same storage object and return it again.

Definition at line 15 of file storage_provider.hpp.