EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement > Struct Template Reference

#include <acts/blob/sPHENIX/Core/include/Acts/EventData/MultiTrajectory.hpp>

Public Member Functions

auto addCol (size_t n=1)
 
auto col (size_t index)
 Writable access to a column w/o checking its existence first.
 
auto col (size_t index) const
 Read-only access to a column w/o checking its existence first.
 
size_t capacity () const
 Return the current allocated storage capacity.
 
size_t size () const
 

Private Attributes

Storage data
 
size_t m_size {0}
 

Detailed Description

template<typename Storage, size_t kSizeIncrement>
struct Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >

wrapper for a dynamic Eigen type that adds support for automatic growth

Warning
Assumes the underlying storage has a fixed number of rows

Definition at line 53 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 53 of file MultiTrajectory.hpp

Member Function Documentation

template<typename Storage , size_t kSizeIncrement>
auto Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::addCol ( size_t  n = 1)
inline

Make sure storage for n additional columns is allocated. Will update the size of the container accordingly. The indices added by this call can safely be written to.

Parameters
nNumber of columns to add, defaults to 1.
Returns
View into the last allocated column

Definition at line 59 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 59 of file MultiTrajectory.hpp

References Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::capacity(), Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::data, Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::m_size, and n.

+ Here is the call graph for this function:

template<typename Storage , size_t kSizeIncrement>
size_t Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::capacity ( ) const
inline

Return the current allocated storage capacity.

Definition at line 80 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 80 of file MultiTrajectory.hpp

References Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::data.

Referenced by Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::addCol().

+ Here is the caller graph for this function:

template<typename Storage , size_t kSizeIncrement>
auto Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::col ( size_t  index)
inline

Writable access to a column w/o checking its existence first.

Definition at line 74 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 74 of file MultiTrajectory.hpp

References Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::data.

Referenced by pevrec().

+ Here is the caller graph for this function:

template<typename Storage , size_t kSizeIncrement>
auto Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::col ( size_t  index) const
inline

Read-only access to a column w/o checking its existence first.

Definition at line 77 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 77 of file MultiTrajectory.hpp

References Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::data.

template<typename Storage , size_t kSizeIncrement>
size_t Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::size ( ) const
inline

Definition at line 82 of file MultiTrajectory.hpp.

View newest version in sPHENIX GitHub at line 82 of file MultiTrajectory.hpp

References Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::m_size.

Member Data Documentation

template<typename Storage , size_t kSizeIncrement>
Storage Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::data
private
template<typename Storage , size_t kSizeIncrement>
size_t Acts::detail_lt::GrowableColumns< Storage, kSizeIncrement >::m_size {0}
private

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