|
|
|||
File indexing completed on 2025-10-28 07:54:54
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 namespace Acts { 0012 class Surface; 0013 } 0014 0015 namespace ActsFatras { 0016 0017 /// Do not select any surface, ever. 0018 struct NoSurface { 0019 /// Reject all surfaces unconditionally 0020 /// @param surface The surface to evaluate (unused) 0021 /// @return Always false 0022 constexpr bool operator()(const Acts::Surface& surface) const { 0023 static_cast<void>(surface); 0024 return false; 0025 } 0026 }; 0027 0028 /// Select every surface. 0029 struct EverySurface { 0030 /// Accept all surfaces unconditionally 0031 /// @param surface The surface to evaluate (unused) 0032 /// @return Always true 0033 constexpr bool operator()(const Acts::Surface& surface) const { 0034 static_cast<void>(surface); 0035 return true; 0036 } 0037 }; 0038 0039 } // namespace ActsFatras
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|