#include <VesselRegister.h>
Public Member Functions | |
| ~VesselRegister () | |
| The destructor. | |
| void | add (std::string keyword, creator_pointer, keyword_pointer k, keyword_pointer ik) |
| Add a new distribution function option to the register of distribution functions. | |
| bool | check (const std::string &keyname) |
| Verify if a distribution keyword is present in the register. | |
| std::unique_ptr< Vessel > | create (std::string keyword, const VesselOptions &da) |
| Create a distribution function of the specified type. | |
| Keywords | getKeywords () |
| Return the keywords. | |
| void | remove (creator_pointer f) |
| Remove a distribution function from the register of distribution functions. | |
Private Types | |
| typedef std::unique_ptr< Vessel >(* | creator_pointer) (const VesselOptions &) |
| Pointer to a function which, given the keyword for a distribution function, creates it. | |
| typedef void(* | keyword_pointer) (Keywords &) |
| Pointer to the function that reserves the keyword for the distribution. | |
Private Attributes | |
| Keywords | keywords |
| A vector of function pointers - this is used to create the documentation. | |
| std::map< std::string, creator_pointer > | m |
| The set of possible distribution functions we can work with. | |
| std::map< std::string, keyword_pointer > | mk |
| Map action to a function which documents the related object. | |
|
private |
Pointer to a function which, given the keyword for a distribution function, creates it.
|
private |
Pointer to the function that reserves the keyword for the distribution.
| PLMD::vesselbase::VesselRegister::~VesselRegister | ( | ) |
The destructor.
| void PLMD::vesselbase::VesselRegister::add | ( | std::string | keyword, |
| creator_pointer | f, | ||
| keyword_pointer | k, | ||
| keyword_pointer | ik ) |
Add a new distribution function option to the register of distribution functions.
| bool PLMD::vesselbase::VesselRegister::check | ( | const std::string & | keyname | ) |
Verify if a distribution keyword is present in the register.
| std::unique_ptr< Vessel > PLMD::vesselbase::VesselRegister::create | ( | std::string | keyword, |
| const VesselOptions & | da ) |
Create a distribution function of the specified type.
| Keywords PLMD::vesselbase::VesselRegister::getKeywords | ( | ) |
Return the keywords.
| void PLMD::vesselbase::VesselRegister::remove | ( | creator_pointer | f | ) |
Remove a distribution function from the register of distribution functions.
|
private |
A vector of function pointers - this is used to create the documentation.
|
private |
The set of possible distribution functions we can work with.
|
private |
Map action to a function which documents the related object.
Hosted by GitHub
|
1.17.0
|