summaryrefslogtreecommitdiffstats
path: root/include/framework/ShardInterface.h
blob: 1f48a45131ed0b7e3657e9a3121e77d6e5f9f7df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * include/framework/ShardInterface.h
 *
 * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu> 
 *
 * All rights reserved. Published under the Modified BSD License.
 *
 */
#pragma once

#include <concepts>

#include "util/types.h"

template <typename S>
concept ShardInterface = requires(S s, void *p) {
    s.point_lookup();

    {s.get_record_count()} -> std::convertible_to<size_t>;
    {s.get_tombstone_count()} -> std::convertible_to<size_t>;
    {s.get_memory_usage()} -> std::convertible_to<size_t>;
};