ATLAS Offline Software
Loading...
Searching...
No Matches
TableUtils::Range2D< T > Struct Template Reference

#include <TableUtils.h>

Collaboration diagram for TableUtils::Range2D< T >:

Classes

struct  const_iterator

Public Member Functions

const_iterator begin () const
const_iterator end () const
Range< T > operator[] (std::size_t index) const
std::size_t nColumns () const
std::size_t nRows () const
 operator bool ()
template<typename T_Other>
bool equalSize (const T_Other &other_range)

Public Attributes

const T * m_ptr = nullptr
std::size_t m_rows = 0u
std::size_t m_columns = 0u
std::size_t m_columnOffset = 0u
std::size_t m_firstColumnIndex = 0u
std::size_t m_offset = 1u

Detailed Description

template<typename T>
struct TableUtils::Range2D< T >

Definition at line 62 of file TableUtils.h.

Member Function Documentation

◆ begin()

template<typename T>
const_iterator TableUtils::Range2D< T >::begin ( ) const
inline

Definition at line 81 of file TableUtils.h.

◆ end()

template<typename T>
const_iterator TableUtils::Range2D< T >::end ( ) const
inline

Definition at line 84 of file TableUtils.h.

◆ equalSize()

template<typename T>
template<typename T_Other>
bool TableUtils::Range2D< T >::equalSize ( const T_Other & other_range)
inline

Definition at line 97 of file TableUtils.h.

97 {
98 return m_rows == other_range.m_size;
99 }

◆ nColumns()

template<typename T>
std::size_t TableUtils::Range2D< T >::nColumns ( ) const
inline

Definition at line 92 of file TableUtils.h.

92{ return m_columns; }

◆ nRows()

template<typename T>
std::size_t TableUtils::Range2D< T >::nRows ( ) const
inline

Definition at line 93 of file TableUtils.h.

93{ return m_rows; }

◆ operator bool()

template<typename T>
TableUtils::Range2D< T >::operator bool ( )
inline

Definition at line 95 of file TableUtils.h.

95{ return m_ptr != nullptr && m_columns>0; }

◆ operator[]()

template<typename T>
Range< T > TableUtils::Range2D< T >::operator[] ( std::size_t index) const
inline

Definition at line 87 of file TableUtils.h.

Member Data Documentation

◆ m_columnOffset

template<typename T>
std::size_t TableUtils::Range2D< T >::m_columnOffset = 0u

Definition at line 66 of file TableUtils.h.

◆ m_columns

template<typename T>
std::size_t TableUtils::Range2D< T >::m_columns = 0u

Definition at line 65 of file TableUtils.h.

◆ m_firstColumnIndex

template<typename T>
std::size_t TableUtils::Range2D< T >::m_firstColumnIndex = 0u

Definition at line 67 of file TableUtils.h.

◆ m_offset

template<typename T>
std::size_t TableUtils::Range2D< T >::m_offset = 1u

Definition at line 68 of file TableUtils.h.

◆ m_ptr

template<typename T>
const T* TableUtils::Range2D< T >::m_ptr = nullptr

Definition at line 63 of file TableUtils.h.

◆ m_rows

template<typename T>
std::size_t TableUtils::Range2D< T >::m_rows = 0u

Definition at line 64 of file TableUtils.h.


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