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

Build a nested containment list. More...

#include <stdexcept>
#include <vector>
#include <cstddef>
#include <algorithm>
#include <numeric>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Classes

struct  nclist::Nclist< Index_, Position_ >
 Pre-built nested containment list. More...
 

Namespaces

namespace  nclist
 Header-only library for nested containment lists.
 

Typedefs

template<class Array_ >
using nclist::ArrayElement = typename std::remove_const<typename std::remove_reference<decltype(std::declval<Array_>()[0])>::type>::type
 

Functions

template<typename Index_ , class StartArray_ , class EndArray_ >
Nclist< Index_, ArrayElement< StartArray_ > > nclist::build_custom (Index_ num_subset, const Index_ *subset, const StartArray_ &starts, const EndArray_ &ends)
 
template<typename Index_ , class StartArray_ , class EndArray_ >
Nclist< Index_, ArrayElement< StartArray_ > > nclist::build_custom (Index_ num_intervals, const StartArray_ &starts, const EndArray_ &ends)
 
template<typename Index_ , typename Position_ >
Nclist< Index_, Position_ > nclist::build (Index_ num_subset, const Index_ *subset, const Position_ *starts, const Position_ *ends)
 
template<typename Index_ , typename Position_ >
Nclist< Index_, Position_ > nclist::build (Index_ num_intervals, const Position_ *starts, const Position_ *ends)
 

Detailed Description

Build a nested containment list.