Debian Codegraph @

ncrystal_core/include/NCrystal/NCFact.hh

raw symbols SCIP
1 #cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCFact.hh`/ifndef NCrystal_Fact_hh
2 #define NCrystal_Fact_hhcxx . . $ `ncrystal_core/include/NCrystal/NCFact.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/NCMatCfg.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCMatCfg.hh`/
25 #include "NCrystal/NCProc.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCProc.hh`/
26 #include "NCrystal/NCInfo.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCInfo.hh`/
27
28 namespace NCrystalcxx . . $ NCrystal/ {
29
30 ///////////////////////////////////////////////////////////////////////////////
31 // Factory functions needed by most clients. //
32 // //
33 // These factory functions are thin wrappers around the factory functions //
34 // from the FactImpl namespace (in NCFactImpl.hh). For the case of Scatter //
35 // and Absorption classes, they add caching and (for Scatter) RNG stream //
36 // handling, on top of the process implementations from the ProcImpl //
37 // namespace (in NCProcImpl.hh). For multi-threaded applications, one can use //
38 // the cloneXXX() methods of the Absorption and Scatter classes, or simply //
39 // use the ProcImpl classes directly, along with the RNG stream handling from //
40 // NCRNG.hh. //
41 ////////////////////////////////////////////////////////////////////////////////
42
43 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! shared_objcxx . . $ NCrystal/shared_obj#<const Infocxx . . $ NCrystal/Info#> createInfocxx . . $ NCrystal/createInfo(ddcdca128c88f32).( const MatCfgcxx . . $ NCrystal/MatCfg#& cfg );
44 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! Scattercxx . . $ NCrystal/Scatter# createScattercxx . . $ NCrystal/createScatter(9a9743cf56a77a6).( const MatCfgcxx . . $ NCrystal/MatCfg#& cfg );
45 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! Absorptioncxx . . $ NCrystal/Absorption# createAbsorptioncxx . . $ NCrystal/createAbsorption(27e704886bc0de23).( const MatCfgcxx . . $ NCrystal/MatCfg#& cfg );
46
47 //////////////////////////////////////////////////////////////////////////
48 // For the case of Scatter instance, they can also by created with more //
49 // control over the RNG streams (again, this is just thin wrappers over //
50 // functionaliy available in NCRNG.hh+NCFactImpl.hh+NCProc.hh): //
51 //////////////////////////////////////////////////////////////////////////
52
53 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! Scattercxx . . $ NCrystal/Scatter# createScatter_RNGByIdxcxx . . $ NCrystal/createScatter_RNGByIdx(725a6cead87277d9).( const MatCfgcxx . . $ NCrystal/MatCfg#& cfg, RNGStreamIndexcxx . . $ NCrystal/RNGStreamIndex# rngidx );
54 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! Scattercxx . . $ NCrystal/Scatter# createScatter_RNGForCurrentThreadcxx . . $ NCrystal/createScatter_RNGForCurrentThread(9a9743cf56a77a6).( const MatCfgcxx . . $ NCrystal/MatCfg#& cfg );
55
56 //////////////////////////////////////////////////////////////////////////
57 // Register in-memory data files which can later be referred to in //
58 // cfg strings. Note that the file NCDataSources.hh provides MANY more //
59 // options and control of input data. //
60 //////////////////////////////////////////////////////////////////////////
61
62 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! void registerInMemoryFileDatacxx . . $ NCrystal/registerInMemoryFileData(78c844f1a7adbc73).( stdcxx . . $ std/::stringcxx . . $ std/string# virtualFileName,
63 stdcxx . . $ std/::stringcxx . . $ std/string#&& data );
64
65 //Version which just registers the address of data and does not copy
66 //it. Naturally the lifetime of the static_data should be longer than any
67 //direct or indirect calls to FactImpl::createTextData (it is intended for
68 //efficiently hard-coding file content in C/C++ code):
69 NCRYSTAL_APIcxx . . $ `ncrystal_core/include/NCrystal/ncapi.h:51:13`! void registerInMemoryStaticFileDatacxx . . $ NCrystal/registerInMemoryStaticFileData(6c0e07dc8c744e61).( stdcxx . . $ std/::stringcxx . . $ std/string# virtualFileName,
70 const char* static_data );
71
72 }
73
74 #endif