CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::Span< T > Class Template Reference

#include <Span.h>

Public Member Functions

auto const & back () const
 
T begin () const
 
bool empty () const
 
T end () const
 
auto const & front () const
 
auto const & operator[] (std::size_t idx) const
 
auto size () const
 
 Span (T begin, T end)
 

Private Attributes

const T begin_
 
const T end_
 

Detailed Description

template<class T>
class edm::Span< T >

Definition at line 16 of file Span.h.

Constructor & Destructor Documentation

◆ Span()

template<class T>
edm::Span< T >::Span ( T  begin,
T  end 
)
inline

Definition at line 18 of file Span.h.

18 : begin_(begin), end_(end) {}

Member Function Documentation

◆ back()

template<class T>
auto const& edm::Span< T >::back ( ) const
inline

Definition at line 29 of file Span.h.

29 { return *(end_ - 1); }

◆ begin()

template<class T>
T edm::Span< T >::begin ( void  ) const
inline

Definition at line 20 of file Span.h.

20 { return begin_; }

Referenced by TritonData< IO >::anyNeg(), and TritonData< IO >::dimProduct().

◆ empty()

template<class T>
bool edm::Span< T >::empty ( void  ) const
inline

Definition at line 23 of file Span.h.

23 { return begin_ == end_; }

◆ end()

template<class T>
T edm::Span< T >::end ( void  ) const
inline

Definition at line 21 of file Span.h.

21 { return end_; }

Referenced by TritonData< IO >::anyNeg(), and TritonData< IO >::dimProduct().

◆ front()

template<class T>
auto const& edm::Span< T >::front ( ) const
inline

Definition at line 28 of file Span.h.

28 { return *begin_; }

◆ operator[]()

template<class T>
auto const& edm::Span< T >::operator[] ( std::size_t  idx) const
inline

Definition at line 26 of file Span.h.

26 { return *(begin_ + idx); }

◆ size()

template<class T>
auto edm::Span< T >::size ( void  ) const
inline

Definition at line 24 of file Span.h.

24 { return end_ - begin_; }

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

Member Data Documentation

◆ begin_

template<class T>
const T edm::Span< T >::begin_
private

◆ end_

template<class T>
const T edm::Span< T >::end_
private
edm::Span::end_
const T end_
Definition: Span.h:33
edm::Span::end
T end() const
Definition: Span.h:21
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
edm::Span::begin_
const T begin_
Definition: Span.h:32
edm::Span::begin
T begin() const
Definition: Span.h:20