Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:18:06

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/EventData/SeedContainer.hpp"
0012 
0013 #include "Acts/EventData/SeedProxy.hpp"
0014 
0015 namespace Acts {
0016 
0017 inline MutableSeedProxy SeedContainer::at(Index index) {
0018   if (index >= size()) {
0019     throw std::out_of_range("Index out of range in SeedContainer");
0020   }
0021   return MutableProxy(*this, index);
0022 }
0023 
0024 inline ConstSeedProxy SeedContainer::at(Index index) const {
0025   if (index >= size()) {
0026     throw std::out_of_range("Index out of range in SeedContainer");
0027   }
0028   return ConstProxy(*this, index);
0029 }
0030 
0031 inline MutableSeedProxy SeedContainer::operator[](Index index) noexcept {
0032   return MutableProxy(*this, index);
0033 }
0034 
0035 inline ConstSeedProxy SeedContainer::operator[](Index index) const noexcept {
0036   return ConstProxy(*this, index);
0037 }
0038 
0039 }  // namespace Acts