| 1 | #cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABScatterHelper.hh`/ifndef NCrystal_SABScatterHelper_hh |
| 2 | #define NCrystal_SABScatterHelper_hhcxx . . $ `ncrystal_core/include/NCrystal/internal/NCSABScatterHelper.hh:2:9`! |
| 3 | |
| 4 | //////////////////////////////////////////////////////////////////////////////// |
| 5 | // // |
| 6 | // This file is part of NCrystal (see https://mctools.github.io/ncrystal/) // |
| 7 | // // |
| 8 | // Copyright 2015-2022 NCrystal developers // |
| 9 | // // |
| 10 | // Licensed under the Apache License, Version 2.0 (the "License"); // |
| 11 | // you may not use this file except in compliance with the License. // |
| 12 | // You may obtain a copy of the License at // |
| 13 | // // |
| 14 | // http://www.apache.org/licenses/LICENSE-2.0 // |
| 15 | // // |
| 16 | // Unless required by applicable law or agreed to in writing, software // |
| 17 | // distributed under the License is distributed on an "AS IS" BASIS, // |
| 18 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // |
| 19 | // See the License for the specific language governing permissions and // |
| 20 | // limitations under the License. // |
| 21 | // // |
| 22 | //////////////////////////////////////////////////////////////////////////////// |
| 23 | |
| 24 | #include "NCrystal/internal/NCSABSampler.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABSampler.hh`/ |
| 25 | #include "NCrystal/internal/NCSABXSProvider.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABXSProvider.hh`/ |
| 26 | |
| 27 | namespace NCrystalcxx . . $ NCrystal/ { |
| 28 | |
| 29 | namespace SABcxx . . $ NCrystal/SAB/ { |
| 30 | |
| 31 | //Convenience struct and helper class for when both sampler and xsprovider |
| 32 | //are both needed and with similar lifetimes. Should normally be constructed |
| 33 | //by using either the SABFactory functions or a SABIntegrator. |
| 34 | // |
| 35 | //For reference it can optionally hold a JSON descriptive dictionary (in a |
| 36 | //format suitable for ProcImpl::specificJSONDescription). |
| 37 | |
| 38 | class SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper# : private MoveOnlycxx . . $ NCrystal/MoveOnly# { |
| 39 | public: |
| 40 | SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#SABScatterHelper(4893dc16abb57502).( SABXSProvidercxx . . $ NCrystal/SABXSProvider#&& xp, |
| 41 | SABSamplercxx . . $ NCrystal/SABSampler#&&sp, |
| 42 | Optionalcxx . . $ NCrystal/Optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> json = NullOptcxx . . $ NCrystal/Optional#Optional(a6755bfb5fc08f99). ) |
| 43 | : xsprovidercxx . . $ NCrystal/SABXSProvider#SABXSProvider(c7555abd81653e1c).(stdcxx . . $ std/::move(xp)), |
| 44 | samplercxx . . $ NCrystal/SAB/SABScatterHelper#sampler.(stdcxx . . $ std/::move(sp)), |
| 45 | specificJSONDescriptioncxx . . $ NCrystal/Optional#Optional(810dce349de67e7d).(stdcxx . . $ std/::move(json)) |
| 46 | { |
| 47 | } |
| 48 | SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#SABScatterHelper(49f6e7a06ebc5aa8).() = default;//incomplete |
| 49 | SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#SABScatterHelper(b772c94ae220ab85).( SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#&& ) = default; |
| 50 | SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#& operatorcxx . . $ NCrystal/SAB/SABScatterHelper#`operator=`(fff34a9cc7f1129e).=( SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#&& ) = default; |
| 51 | SABXSProvidercxx . . $ NCrystal/SABXSProvider# xsprovidercxx . . $ NCrystal/SAB/SABScatterHelper#xsprovider.; |
| 52 | SABSamplercxx . . $ NCrystal/SABSampler# samplercxx . . $ NCrystal/SAB/SABScatterHelper#sampler.; |
| 53 | Optionalcxx . . $ NCrystal/Optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> specificJSONDescriptioncxx . . $ NCrystal/SAB/SABScatterHelper#specificJSONDescription.; |
| 54 | |
| 55 | }; |
| 56 | |
| 57 | } |
| 58 | |
| 59 | } |
| 60 | |
| 61 | #endif |