nclist-cpp
C++ implementation of nested containment lists
Loading...
Searching...
No Matches
nearest.hpp File Reference

Find the nearest interval. More...

#include <vector>
#include <algorithm>
#include <optional>
#include <limits>
#include "build.hpp"
#include "utils.hpp"

Go to the source code of this file.

Classes

struct  nclist::NearestWorkspace< Index_ >
 Workspace for nearest(). More...
 
struct  nclist::NearestParameters< Position_ >
 Parameters for nearest(). More...
 

Namespaces

namespace  nclist
 Header-only library for nested containment lists.
 

Functions

template<typename Index_ , typename Position_ >
void nclist::nearest (const Nclist< Index_, Position_ > &subject, const Position_ query_start, const Position_ query_end, const NearestParameters< Position_ > &params, NearestWorkspace< Index_ > &workspace, std::vector< Index_ > &matches)
 

Detailed Description

Find the nearest interval.