summaryrefslogtreecommitdiffstats
path: root/include/framework/ShardInterface.h
blob: 3aa62df5c2f58205716e2978869b307a5a1e78f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * 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"
#include "framework/RecordInterface.h"

namespace de {

//template <template<typename> typename S, typename R>
template <typename S>
concept ShardInterface = requires(S s, void *p, bool b) {
    //{s.point_lookup(r, b) } -> std::same_as<R*>;
    {s.get_record_count()} -> std::convertible_to<size_t>;
    {s.get_memory_usage()} -> std::convertible_to<size_t>;
};

}