Lumiera  0.pre.03
»edit your freedom«
DataSpan< D > Class Template Reference

#include "lib/stat/statistic.hpp"

Description

template<typename D>
class lib::stat::DataSpan< D >

Read-only view into a segment within a sequence of data.

Template Parameters
Dvalue type of the data series
Remarks
simplistic workaround since we don't support C++20 yet
Todo:
replace by const std::span

Definition at line 91 of file statistic.hpp.

Public Types

using const_iterator = iterator
 
using iterator = const D *
 

Public Member Functions

 DataSpan (D const &begin, D const &end)
 
template<class CON >
 DataSpan (CON const &container)
 
D const & at (size_t i) const
 
iterator begin () const
 
bool empty () const
 
iterator end () const
 
D const & operator[] (size_t i) const
 
size_t size () const
 

Friends

const_iterator begin (DataSpan const &span)
 
const_iterator end (DataSpan const &span)
 

Private Attributes

const D *const b_ {nullptr}
 
const D *const e_ {nullptr}
 

Additional Inherited Members

- Private Member Functions inherited from Cloneable
 Cloneable (Cloneable &&)=delete
 
 Cloneable (Cloneable const &)=default
 
Cloneableoperator= (Cloneable &&)=delete
 
Cloneableoperator= (Cloneable const &)=delete
 
+ Inheritance diagram for DataSpan< D >:
+ Collaboration diagram for DataSpan< D >:

The documentation for this class was generated from the following file: