ATLAS Offline Software
Loading...
Searching...
No Matches
InPlaceClusterization::IndexWithBeginIndexCache Struct Reference

#include <CellContainerProxy.h>

Collaboration diagram for InPlaceClusterization::IndexWithBeginIndexCache:

Public Member Functions

IndexWithBeginIndexCacheoperator++ ()
bool operator== (const IndexWithBeginIndexCache &other) const
std::size_t operator- (const IndexWithBeginIndexCache &other) const
IndexWithBeginIndexCache operator+ (std::size_t counter) const

Public Attributes

unsigned int m_clusterIndex
unsigned int m_cellBeginIndex
unsigned int m_idHash

Detailed Description

Definition at line 49 of file CellContainerProxy.h.

Member Function Documentation

◆ operator+()

IndexWithBeginIndexCache InPlaceClusterization::IndexWithBeginIndexCache::operator+ ( std::size_t counter) const
inline

Definition at line 64 of file CellContainerProxy.h.

64 {
65 IndexWithBeginIndexCache ret(*this);
66 ret.m_clusterIndex += counter;
67 return ret;
68 }

◆ operator++()

IndexWithBeginIndexCache & InPlaceClusterization::IndexWithBeginIndexCache::operator++ ( )
inline

Definition at line 50 of file CellContainerProxy.h.

◆ operator-()

std::size_t InPlaceClusterization::IndexWithBeginIndexCache::operator- ( const IndexWithBeginIndexCache & other) const
inline

Definition at line 57 of file CellContainerProxy.h.

57 {
58 assert( m_clusterIndex >= other.m_clusterIndex);
59 return m_clusterIndex - other.m_clusterIndex;
60 }

◆ operator==()

bool InPlaceClusterization::IndexWithBeginIndexCache::operator== ( const IndexWithBeginIndexCache & other) const
inline

Definition at line 51 of file CellContainerProxy.h.

51 {
52 // should only be executed if the indices refer to the same module,
53 // thus the cached begin index should always be identical.
54 assert(m_cellBeginIndex == other.m_cellBeginIndex);
55 return m_clusterIndex == other.m_clusterIndex;
56 }

Member Data Documentation

◆ m_cellBeginIndex

unsigned int InPlaceClusterization::IndexWithBeginIndexCache::m_cellBeginIndex

Definition at line 70 of file CellContainerProxy.h.

◆ m_clusterIndex

unsigned int InPlaceClusterization::IndexWithBeginIndexCache::m_clusterIndex

Definition at line 69 of file CellContainerProxy.h.

◆ m_idHash

unsigned int InPlaceClusterization::IndexWithBeginIndexCache::m_idHash

Definition at line 71 of file CellContainerProxy.h.


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