blob: ea58b2abfba008db4ed54e88ed1451c25a5693e0 (
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/interface/Record.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>;
};
}
|