FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
map_base< D > Struct Template Reference

A partition of some prefix of the whole numbers into substrings. More...

Public Member Functions

constexpr Color bin (std::size_t) const
 Find the substring that contains a value.
 
constexpr std::pair< Color, std::size_t > invert (std::size_t i) const
 Express a value in terms of its containing substring.
 
constexpr std::size_t operator() (Color) const
 Return the start of a substring.
 
constexpr iota_view< std::size_t > operator[] (Color c) const
 Return a substring.
 
constexpr Color size () const
 Return the number of substrings.
 
constexpr std::size_t total () const
 Return the length of the overall prefix.
 

Detailed Description

template<class D>
struct flecsi::util::map_base< D >

A partition of some prefix of the whole numbers into substrings.

Member Function Documentation

◆ operator[]()

template<class D >
constexpr iota_view< std::size_t > operator[] ( Color  c) const
constexpr

Return a substring.

◆ total()

template<class D >
constexpr std::size_t total ( ) const
constexpr

Return the length of the overall prefix.

◆ invert()

template<class D >
constexpr std::pair< Color, std::size_t > invert ( std::size_t  i) const
constexpr

Express a value in terms of its containing substring.

Returns
the index of the substring and the position of i within it

◆ size()

template<class D >
constexpr Color size ( ) const
constexpr

Return the number of substrings.

◆ operator()()

template<class D >
constexpr std::size_t operator() ( Color  ) const
constexpr

Return the start of a substring.

◆ bin()

template<class D >
constexpr Color bin ( std::size_t  ) const
constexpr

Find the substring that contains a value.