![]() |
helics
2.8.1
|
Classes | |
| class | CoreBuilder |
| class | CoreTypeBuilder |
Functions | |
| void | defineCoreBuilder (std::shared_ptr< CoreBuilder > cb, const std::string &name, int code) |
| std::shared_ptr< Core > | makeCore (core_type type, const std::string &name) |
| std::shared_ptr< Core > | create (const std::string &initializationString) |
| std::shared_ptr< Core > | create (core_type type, const std::string &configureString) |
| std::shared_ptr< Core > | create (core_type type, const std::string &coreName, const std::string &configureString) |
| std::shared_ptr< Core > | create (std::vector< std::string > args) |
| std::shared_ptr< Core > | create (core_type type, std::vector< std::string > args) |
| std::shared_ptr< Core > | create (core_type type, const std::string &coreName, std::vector< std::string > args) |
| std::shared_ptr< Core > | create (int argc, char *argv[]) |
| std::shared_ptr< Core > | create (core_type type, int argc, char *argv[]) |
| std::shared_ptr< Core > | create (core_type type, const std::string &coreName, int argc, char *argv[]) |
| std::shared_ptr< Core > | FindOrCreate (core_type type, const std::string &coreName, std::vector< std::string > args) |
| std::shared_ptr< Core > | FindOrCreate (core_type type, const std::string &coreName, const std::string &configureString) |
| std::shared_ptr< Core > | FindOrCreate (core_type type, const std::string &coreName, int argc, char *argv[]) |
| std::shared_ptr< Core > | findCore (const std::string &name) |
| std::shared_ptr< Core > | findJoinableCoreOfType (core_type type) |
| bool | registerCore (const std::shared_ptr< Core > &core, core_type type) |
| size_t | cleanUpCores () |
| size_t | cleanUpCores (std::chrono::milliseconds delay) |
| void | terminateAllCores () |
| void | abortAllCores (int errorCode, const std::string &errorString) |
| size_t | getCoreCount () |
| bool | copyCoreIdentifier (const std::string ©FromName, const std::string ©ToName) |
| void | unregisterCore (const std::string &name) |
| void | addAssociatedCoreType (const std::string &name, core_type type) |
| void | displayHelp (core_type type) |
| template<class CoreTYPE > | |
| std::shared_ptr< CoreBuilder > | addCoreType (const std::string &coreTypeName, int code) |
| HELICS_SHARED_DEPRECATED_CORE bool | registerCore (const std::shared_ptr< Core > &core) |
Factory for building Core API instances. available core types
| void helics::CoreFactory::abortAllCores | ( | int | errorCode, |
| const std::string & | errorString | ||
| ) |
abort all cores
References abortAllCores(), cleanUpCores(), and helics::local_core_id().
Referenced by abortAllCores().
| void helics::CoreFactory::addAssociatedCoreType | ( | const std::string & | name, |
| core_type | type | ||
| ) |
add a type associated with a core
References addAssociatedCoreType().
Referenced by addAssociatedCoreType().
| std::shared_ptr<CoreBuilder> helics::CoreFactory::addCoreType | ( | const std::string & | coreTypeName, |
| int | code | ||
| ) |
template function to create a builder and link it into the library
| HELICS_SHARED_DEPRECATED_CORE size_t helics::CoreFactory::cleanUpCores | ( | ) |
clean up unused cores
when Cores are unregistered they get put in a holding area that gets cleaned up when a new Core is registered or when the clean up function is called this prevents some odd threading issues
References cleanUpCores().
Referenced by abortAllCores(), cleanUpCores(), helics::cleanupHelicsLibrary(), helics::Federate::Federate(), helicsCloseLibrary(), helicsCoreFree(), helicsFederateFree(), registerCore(), and terminateAllCores().
| HELICS_SHARED_DEPRECATED_CORE size_t helics::CoreFactory::cleanUpCores | ( | std::chrono::milliseconds | delay | ) |
clean up unused cores
when Cores are unregistered they get put in a holding area that gets cleaned up when a new Core is registered or when the clean up function is called this prevents some odd threading issues
| delay | the delay time in milliseconds to wait for the cores to finish before destroying |
References cleanUpCores().
| HELICS_SHARED_DEPRECATED_CORE bool helics::CoreFactory::copyCoreIdentifier | ( | const std::string & | copyFromName, |
| const std::string & | copyToName | ||
| ) |
make a copy of the core pointer to allow access to the new name
References copyCoreIdentifier().
Referenced by copyCoreIdentifier().
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | core_type | type, |
| const std::string & | coreName, | ||
| const std::string & | initializationString | ||
| ) |
create a core from a type, name, and initializationString
| type | the type of core to create |
| coreName | the name for the core |
| configureString | a string containing arguments for configuration of the core |
create a core from a type, name, and initializationString
| type | the type of core to create |
| coreName | the name for the core |
| initializationString | a string containing arguments for the core |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | core_type | type, |
| const std::string & | coreName, | ||
| int | argc, | ||
| char * | argv[] | ||
| ) |
create a core from a type, name, and arguments
| type | the type of core to create |
| coreName | the name for the core |
| argc | the number of arguments |
| argv | the actual argument parameters |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | core_type | type, |
| const std::string & | coreName, | ||
| std::vector< std::string > | args | ||
| ) |
create a core from a type, name, and arguments
| type | the type of core to create |
| coreName | the name for the core |
| args | a vector of reversed command line arguments |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | core_type | type, |
| int | argc, | ||
| char * | argv[] | ||
| ) |
create a core from a type and command line arguments
| type | the type of core to create |
| argc | the number of command line arguments |
| argv | the actual string parameters for the command line |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | core_type | type, |
| std::vector< std::string > | args | ||
| ) |
create a core from a type and command line arguments
| type | the type of core to create |
| args | a vector of reversed command line arguments |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | int | argc, |
| char * | argv[] | ||
| ) |
create a core from arguments
an argument of '–coretype' must be specified to define the type, otherwise the default type is used
| argc | the number of arguments |
| argv | the actual argument parameters |
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::create | ( | std::vector< std::string > | args | ) |
create a core from arguments
an argument of '–coretype' must be specified to define the type, otherwise the default type is used
| args | a vector of reversed command line arguments |
| void helics::CoreFactory::displayHelp | ( | core_type | type = core_type::UNRECOGNIZED | ) |
display the help listing for a particular core_type
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::findCore | ( | const std::string & | name | ) |
locate a registered Core by name
| name | the name of the core to find |
References findCore().
Referenced by helics::CoreApp::CoreApp(), findCore(), FindOrCreate(), and helics::CommonCore::unregister().
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::findJoinableCoreOfType | ( | core_type | type | ) |
try to find a joinable core of a specific type
References findJoinableCoreOfType().
Referenced by helics::Federate::Federate(), and findJoinableCoreOfType().
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::FindOrCreate | ( | core_type | type, |
| const std::string & | coreName, | ||
| const std::string & | initializationString | ||
| ) |
tries to find a named core if it fails it creates a new one
References findCore(), FindOrCreate(), and registerCore().
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::FindOrCreate | ( | core_type | type, |
| const std::string & | coreName, | ||
| int | argc, | ||
| char * | argv[] | ||
| ) |
tries to find a named core if it fails it creates a new one
References findCore(), FindOrCreate(), and registerCore().
| HELICS_SHARED_DEPRECATED_CORE std::shared_ptr< Core > helics::CoreFactory::FindOrCreate | ( | core_type | type, |
| const std::string & | coreName, | ||
| std::vector< std::string > | args | ||
| ) |
tries to find a named core if it fails it creates a new one
References findCore(), FindOrCreate(), and registerCore().
Referenced by helics::Federate::Federate(), FindOrCreate(), helicsCreateCore(), and helicsCreateCoreFromArgs().
| size_t helics::CoreFactory::getCoreCount | ( | ) |
| HELICS_SHARED_DEPRECATED_CORE bool helics::CoreFactory::registerCore | ( | const std::shared_ptr< Core > & | core | ) |
register a testCore so it can be found by others
also cleans up any leftover bCoresrokers that were previously unregistered this can be controlled by calling cleanUpBrokers earlier if desired
| core | a pointer to a testCore object that should be found globally |
register a testCore so it can be found by others
also cleans up any leftover Cores that were previously unregistered this can be controlled by calling cleanUpCores earlier if desired
| core | a pointer to a testCore object that should be found globally |
References cleanUpCores(), and registerCore().
Referenced by FindOrCreate(), and registerCore().
| void helics::CoreFactory::terminateAllCores | ( | ) |
terminate All existing cores
References cleanUpCores(), and terminateAllCores().
Referenced by terminateAllCores().
| HELICS_SHARED_DEPRECATED_CORE void helics::CoreFactory::unregisterCore | ( | const std::string & | name | ) |
remove a Core from the registry
| name | the name of the Core to unregister |
References unregisterCore().
Referenced by helics::CommonCore::unregister(), and unregisterCore().
1.8.17