FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
offsets Struct Reference

A partition with substrings of arbitrary size. More...

Public Member Functions

 offsets ()=default
 Construct an empty partition.
 
 offsets (const equal_map &em)
 Convert an equal mapping.
 
 offsets (storage e)
 Construct a partition from specified endpoints.
 
- Public Member Functions inherited from map_base< offsets >
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

A partition with substrings of arbitrary size.

Constructor & Destructor Documentation

◆ offsets() [1/3]

offsets ( )
default

Construct an empty partition.

◆ offsets() [2/3]

offsets ( storage  e)

Construct a partition from specified endpoints.

The first substring starts at an implicit 0.

◆ offsets() [3/3]

offsets ( const equal_map em)

Convert an equal mapping.