Bank holding the volumetric sources defined in the input file. More...
#include <source_bank.h>
Public Member Functions | |
| SourceBank (const json &json_input) | |
| Construct a new Source Bank object. Source structs are build using the JSON input file. | |
| Public Member Functions inherited from hummingbird::BankBase< std::unique_ptr< SourceBase > > | |
| const std::unique_ptr< SourceBase > & | GetByID (const int id) const |
| Get the object by its ID. | |
| const std::unique_ptr< SourceBase > & | GetByName (const std::string &name) const |
| Get the object by its name in the JSON input file. | |
| int | GetIDByName (const std::string &name) const |
| Get the ID of an object by its name in the JSON input file. | |
Private Member Functions | |
| void | Build (const json &json_input) |
| Build internal maps based on JSON input. | |
Additional Inherited Members | |
| Protected Attributes inherited from hummingbird::BankBase< std::unique_ptr< SourceBase > > | |
| std::unordered_map< int, std::unique_ptr< SourceBase > > | id_object_map_ |
| ID to object map. | |
| std::unordered_map< std::string, int > | name_id_map_ |
| name to object ID map | |
Bank holding the volumetric sources defined in the input file.
Definition at line 25 of file source_bank.h.
| hummingbird::SourceBank::SourceBank | ( | const json & | json_input | ) |
Construct a new Source Bank object. Source structs are build using the JSON input file.
| json_input | Input file as json object |
Definition at line 5 of file source_bank.cc.
|
privatevirtual |
Build internal maps based on JSON input.
| json_input | JSON object containing input file information |
Implements hummingbird::BankBase< std::unique_ptr< SourceBase > >.
Definition at line 7 of file source_bank.cc.