Debian Codegraph @

ncrystal_core/include/NCrystal/internal/NCSABFactory.hh

raw symbols SCIP
1 #cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABFactory.hh`/ifndef NCrystal_SABFactory_hh
2 #define NCrystal_SABFactory_hhcxx . . $ `ncrystal_core/include/NCrystal/internal/NCSABFactory.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/NCSABData.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCSABData.hh`/
25 #include "NCrystal/internal/NCSABScatterHelper.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABScatterHelper.hh`/
26
27 namespace NCrystalcxx . . $ NCrystal/ {
28
29 namespace SABcxx . . $ NCrystal/SAB/ {
30
31 //Direct factory function with no caching:
32 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<const SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#> createScatterHelpercxx . . $ NCrystal/SAB/createScatterHelper(4a57b21f6ab7a9c8).( shared_objcxx . . $ NCrystal/shared_obj#<const SABDatacxx . . $ NCrystal/SABData#>,
33 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<const VectDcxx . . $ NCrystal/VectD#> energyGrid = nullptrcxx . . $ std/shared_ptr#shared_ptr(6d988fd07f070dfc). );
34
35 //Same with caching:
36 void clearScatterHelperCachecxx . . $ NCrystal/SAB/clearScatterHelperCache(49f6e7a06ebc5aa8).();
37 shared_objcxx . . $ NCrystal/shared_obj#<const SABScatterHelpercxx . . $ NCrystal/SAB/SABScatterHelper#> createScatterHelperWithCachecxx . . $ NCrystal/SAB/createScatterHelperWithCache(e68c43829f0a1ef8).( shared_objcxx . . $ NCrystal/shared_obj#<const SABDatacxx . . $ NCrystal/SABData#>,
38 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<const VectDcxx . . $ NCrystal/VectD#> energyGrid = nullptrcxx . . $ std/shared_ptr#shared_ptr(6d988fd07f070dfc). );
39
40 //For caching reasons, we keep a database of energy grid's and an associated
41 //unique id. Note that it is expected that most energy grids specified will
42 //either be "unspecified" (nullptr or empty) or just 3 entries long (emin
43 //emax npts). Thus, this cache is not expected to actually become very big:
44 UniqueIDValuecxx . . $ NCrystal/UniqueIDValue# egridToUniqueIDcxx . . $ NCrystal/SAB/egridToUniqueID(308c72f62361a18e).(const VectDcxx . . $ NCrystal/VectD#& egrid);
45 UniqueIDValuecxx . . $ NCrystal/UniqueIDValue# egridToUniqueIDcxx . . $ NCrystal/SAB/egridToUniqueID(4e5f10ae6e1f18b8).(const stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<const VectDcxx . . $ NCrystal/VectD#>& egrid);
46 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<const VectDcxx . . $ NCrystal/VectD#> egridFromUniqueIDcxx . . $ NCrystal/SAB/egridFromUniqueID(736dc79247c94eb6).(UniqueIDValuecxx . . $ NCrystal/UniqueIDValue#);
47 }
48
49 }
50
51 #endif