|
Graphle 1.0.0
A C++20 header-only graph library
|
Concepts | |
| concept | vector_storage_type |
| concept | unordered_map_storage_type |
| concept | unordered_set_storage_type |
| concept | deque_storage_type |
| concept | storage_for |
| concept | storage_ref |
| concept | storage_provider_for |
| concept | storage_provider_ref |
Typedefs | |
| template<storage_type ST, typename... Args> | |
| using | default_provided_t = decltype(get_default_storage_provider< ST, Args... >()) |
| template<typename P > | |
| using | provided_storage_type = std::invoke_result_t< P > |
| template<typename P > | |
| using | provided_storage_value_type = std::remove_reference_t< std::invoke_result_t< P > > |
Enumerations | |
| enum class | overload_mode { DEFAULT_IMPLEMENTATION , USER_PROVIDED } |
| enum class | storage_type { VECTOR , UNORDERED_MAP , UNORDERED_SET , DEQUE } |
Functions | |
| template<storage_type ST, typename... Args> | |
| constexpr auto | get_default_storage_provider (void) |
Variables | |
| template<typename S , storage_type ST, typename... Args> | |
| constexpr bool | is_storage_type_v = is_storage_type<S, ST, Args...>::value |
| template<typename P , storage_type ST, typename... Args> | |
| constexpr bool | is_storage_provider_v = is_storage_provider<P, ST, Args...>::value |
Storage providers.
| using graphle::store::default_provided_t = typedef decltype(get_default_storage_provider<ST, Args...>()) |
Equal to the type returned by get_default_storage_provider
Definition at line 138 of file default_storage_provider.hpp.
| using graphle::store::provided_storage_type = typedef std::invoke_result_t<P> |
The type of storage returned by the storage provider P (with its original reference type).
Definition at line 192 of file storage_provider.hpp.
| using graphle::store::provided_storage_value_type = typedef std::remove_reference_t<std::invoke_result_t<P> > |
The type of storage returned by the storage provider P (as an lvalue).
Definition at line 194 of file storage_provider.hpp.
|
strong |
Used to differentiate between the graphle-implementation and any user-provided implementation of the default_storage_provider.
| Enumerator | |
|---|---|
| DEFAULT_IMPLEMENTATION | |
| USER_PROVIDED | |
Definition at line 17 of file default_storage_provider.hpp.
|
strong |
Defines different types of storage used internally by Graphle algorithms. Each value of this enum has an associated concept with requirements for the type to be used with Graphle.
Definition at line 32 of file storage_provider.hpp.
|
inlineconstexpr |
Returns an instance of the user-provided default storage provider for the given storage type if there is one, or an instance of the default implementation specified above otherwise.
| ST | The storage type that must be provided. |
| Args | Template arguments for the provided storage object (E.g. key and value types for a map storage provider). |
Definition at line 115 of file default_storage_provider.hpp.
|
inlineconstexpr |
Type trait to check if the type P is a storage provider (See default_storage_provider.hpp) of storage type ST.
Definition at line 180 of file storage_provider.hpp.
|
inlineconstexpr |
Type trait to check if the type S is a container of storage type ST.
Definition at line 156 of file storage_provider.hpp.