CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
edm::soa::TableView< Args > Class Template Reference

#include <TableView.h>

Public Types

using const_iterator = ConstTableItr< Args...>
 
using Layout = std::tuple< Args...>
 

Public Member Functions

const_iterator begin () const
 
template<typename U >
ColumnValues< typename U::typecolumn () const
 
const_iterator end () const
 
template<typename U >
U::type const & get (size_t iRow) const
 
 m_values (iArray)
 
unsigned int size () const
 
template<typename... OArgs>
 TableView (Table< OArgs...> const &iTable)
 
 TableView (unsigned int iSize, std::array< void *, sizeof...(Args)> &iArray)
 

Public Attributes

 __pad0__: m_size(iSize)
 

Static Public Attributes

static constexpr const size_t kNColumns = sizeof...(Args)
 

Private Member Functions

template<typename U >
void const * columnAddress () const
 
template<typename T , size_t... I>
void fillArray (T const &iTable, std::index_sequence< I...>)
 

Private Attributes

unsigned int m_size
 
std::array< void const
*, sizeof...(Args)> 
m_values
 

Detailed Description

template<typename... Args>
class edm::soa::TableView< Args >

Definition at line 49 of file TableView.h.

Member Typedef Documentation

template<typename... Args>
using edm::soa::TableView< Args >::const_iterator = ConstTableItr<Args...>

Definition at line 53 of file TableView.h.

template<typename... Args>
using edm::soa::TableView< Args >::Layout = std::tuple<Args...>

Definition at line 51 of file TableView.h.

Constructor & Destructor Documentation

template<typename... Args>
template<typename... OArgs>
edm::soa::TableView< Args >::TableView ( Table< OArgs...> const &  iTable)
inline

Definition at line 56 of file TableView.h.

References edm::soa::TableView< Args >::fillArray().

56  : m_size(iTable.size()) {
57  fillArray(iTable, std::make_index_sequence<sizeof...(Args)>{});
58  }
void fillArray(T const &iTable, std::index_sequence< I...>)
Definition: TableView.h:89
unsigned int m_size
Definition: TableView.h:81
template<typename... Args>
edm::soa::TableView< Args >::TableView ( unsigned int  iSize,
std::array< void *, sizeof...(Args)> &  iArray 
)
inline

Definition at line 59 of file TableView.h.

59 : m_size(iSize), m_values(iArray) {}
unsigned int m_size
Definition: TableView.h:81
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80

Member Function Documentation

template<typename... Args>
const_iterator edm::soa::TableView< Args >::begin ( void  ) const
inline

Definition at line 76 of file TableView.h.

References edm::soa::TableView< Args >::m_values.

76 { return const_iterator{m_values}; }
ConstTableItr< Args...> const_iterator
Definition: TableView.h:53
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80
template<typename... Args>
template<typename U >
ColumnValues<typename U::type> edm::soa::TableView< Args >::column ( ) const
inline

Definition at line 72 of file TableView.h.

References runTheMatrix::const, and edm::soa::TableView< Args >::m_size.

72  {
73  return ColumnValues<typename U::type>{static_cast<typename U::type const*>(columnAddress<U>()), m_size};
74  }
unsigned int m_size
Definition: TableView.h:81
template<typename... Args>
template<typename U >
void const* edm::soa::TableView< Args >::columnAddress ( ) const
inlineprivate

Definition at line 84 of file TableView.h.

References edm::soa::TableView< Args >::m_values.

84  {
86  }
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80
template<typename... Args>
const_iterator edm::soa::TableView< Args >::end ( void  ) const
inline

Definition at line 77 of file TableView.h.

References edm::soa::TableView< Args >::m_values, and edm::soa::TableView< Args >::size().

77 { return const_iterator{m_values, size()}; }
unsigned int size() const
Definition: TableView.h:64
ConstTableItr< Args...> const_iterator
Definition: TableView.h:53
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80
template<typename... Args>
template<typename T , size_t... I>
void edm::soa::TableView< Args >::fillArray ( T const &  iTable,
std::index_sequence< I...>   
)
inlineprivate

Definition at line 89 of file TableView.h.

References runTheMatrix::const, Exhume::I, and edm::soa::TableView< Args >::m_values.

Referenced by edm::soa::TableView< Args >::TableView().

89  {
90  ((m_values[I] = iTable.columnAddressWorkaround(
91  static_cast<typename std::tuple_element<I, Layout>::type const*>(nullptr))),
92  ...);
93  }
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80
const std::complex< double > I
Definition: I.h:8
template<typename... Args>
template<typename U >
U::type const& edm::soa::TableView< Args >::get ( size_t  iRow) const
inline
template<typename... Args>
edm::soa::TableView< Args >::m_values ( iArray  )
inline

Definition at line 62 of file TableView.h.

62 : m_size(iSize), m_values(iArray) {}
unsigned int m_size
Definition: TableView.h:81
std::array< void const *, sizeof...(Args)> m_values
Definition: TableView.h:80
template<typename... Args>
unsigned int edm::soa::TableView< Args >::size ( void  ) const
inline

Member Data Documentation

template<typename... Args>
edm::soa::TableView< Args >::__pad0__

Definition at line 62 of file TableView.h.

template<typename... Args>
constexpr const size_t edm::soa::TableView< Args >::kNColumns = sizeof...(Args)
static

Definition at line 52 of file TableView.h.

template<typename... Args>
unsigned int edm::soa::TableView< Args >::m_size
private
template<typename... Args>
std::array<void const*, sizeof...(Args)> edm::soa::TableView< Args >::m_values
private