7#include "interval_tree.hpp"
8#include "tree_hooks.hpp"
11#include "../../bpp_include/bpp.h"
18using IntervalType = lib_interval_tree::interval<uint64_t, lib_interval_tree::closed>;
20struct EntityNode : lib_interval_tree::node<uint64_t, IntervalType, EntityNode> {
21 using base_type = lib_interval_tree::node<uint64_t, IntervalType, EntityNode>;
27 :
base_type(parent, std::move(interval)) {}
33 template <
typename IteratorT>
34 static inline bool on_find(IteratorT)
noexcept {
return true; }
36 template <
typename IteratorT>
38 std::conditional<
true,
39 lib_interval_tree::interval_tree<lib_interval_tree::interval<uint64_t,
40 lib_interval_tree::closed>,
42 const lib_interval_tree::interval_tree<lib_interval_tree::interval<uint64_t,
43 lib_interval_tree::closed>,
46 lib_interval_tree::interval_tree<lib_interval_tree::interval<uint64_t,
47 lib_interval_tree::closed>,
49 const lib_interval_tree::interval_tree<lib_interval_tree::interval<uint64_t,
50 lib_interval_tree::closed>,
52 )
noexcept {
return true; }
lib_interval_tree::interval< uint64_t, lib_interval_tree::closed > IntervalType
Definition EntityNode.h:18
Definition bash_case.cpp:8
Definition EntityNode.h:30
static bool on_overlap_find_all(std::conditional< true, lib_interval_tree::interval_tree< lib_interval_tree::interval< uint64_t, lib_interval_tree::closed >, EntityHooks >, const lib_interval_tree::interval_tree< lib_interval_tree::interval< uint64_t, lib_interval_tree::closed >, EntityHooks > >::type &, lib_interval_tree::interval_tree< lib_interval_tree::interval< uint64_t, lib_interval_tree::closed >, EntityHooks >::node_type *&, const lib_interval_tree::interval_tree< lib_interval_tree::interval< uint64_t, lib_interval_tree::closed >, EntityHooks >::interval_type &) noexcept
Definition EntityNode.h:37
EntityNode node_type
Definition EntityNode.h:31
static bool on_find(IteratorT) noexcept
Definition EntityNode.h:34
Definition EntityNode.h:20
EntityNode(EntityNode *parent, interval_type interval)
Definition EntityNode.h:26
typename base_type::interval_type interval_type
Definition EntityNode.h:22
lib_interval_tree::node< uint64_t, IntervalType, EntityNode > base_type
Definition EntityNode.h:21
std::shared_ptr< bpp::bpp_entity > payload
Definition EntityNode.h:24