2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 * @file AthenaKernel/ThinningDecisionBase.icc
6 * @author scott snyder <snyder@bnl.gov>
8 * @brief Hold thinning decisions for one container.
16 *@ brief Return true if element @c ndx should be thinned.
19 bool ThinningDecisionBase::thinned (size_t ndx) const
21 return m_mask.test (ndx);
26 * @brief Return the total size of the container being thinned.
29 size_t ThinningDecisionBase::size() const
36 * @brief Return the index corresponding to @c ndxOrig after thinning.
37 * @param ndxOrig Original container index.
39 * Returns the index at which element @c ndxOrig ends up after thinning.
40 * If the element was thinned away, returns @c RemovedIdx.
42 * This information is available only after @c buildIndexMap has been called.
45 size_t ThinningDecisionBase::index (size_t ndxOrig) const
47 return m_indexMap.at (ndxOrig);