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) {}
const T end_
Definition: Span.h:33
const T begin_
Definition: Span.h:32
T begin() const
Definition: Span.h:20
T end() const
Definition: Span.h:21

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); }
const T end_
Definition: Span.h:33

◆ begin()

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

Definition at line 20 of file Span.h.

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

20 { return begin_; }
const T begin_
Definition: Span.h:32

◆ empty()

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

Definition at line 23 of file Span.h.

23 { return begin_ == end_; }
const T end_
Definition: Span.h:33
const T begin_
Definition: Span.h:32

◆ end()

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

Definition at line 21 of file Span.h.

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

21 { return end_; }
const T end_
Definition: Span.h:33

◆ front()

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

Definition at line 28 of file Span.h.

28 { return *begin_; }
const T begin_
Definition: Span.h:32

◆ operator[]()

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

Definition at line 26 of file Span.h.

◆ size()

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

Definition at line 24 of file Span.h.

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

24 { return end_ - begin_; }
const T end_
Definition: Span.h:33
const T begin_
Definition: Span.h:32

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