CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Member Function Documentation

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
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
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
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
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
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); }
const T begin_
Definition: Span.h:32
template<class T>
auto edm::Span< T >::size ( void  ) const
inline

Definition at line 24 of file Span.h.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and TritonData< IO >::reset().

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

Member Data Documentation

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