|
preCICE
|
Configuration for communication channels between solvers. More...
#include <M2NConfiguration.hpp>
Classes | |
| struct | ConfiguredM2N |
Public Types | |
| using | SharedPointer = std::shared_ptr<M2NConfiguration> |
Public Member Functions | |
| M2NConfiguration (xml::XMLTag &parent) | |
| ~M2NConfiguration () override=default | |
| m2n::PtrM2N | getM2N (const std::string &acceptor, const std::string &connector) |
| Returns the communication object for the given user names. | |
| std::vector< ConfiguredM2N > & | m2ns () |
| Returns all configured communication objects. | |
| bool | isM2NConfigured (const std::string &acceptor, const std::string &connector) |
| void | xmlTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
| Callback at begin of XML tag. | |
| void | xmlEndTagCallback (const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override |
| Callback at end of XML tag and at end of subtag. | |
| Public Member Functions inherited from precice::xml::XMLTag::Listener | |
| Listener & | operator= (Listener &&)=delete |
| virtual | ~Listener ()=default |
Private Member Functions | |
| void | checkDuplicates (const std::string &acceptor, const std::string &connector) |
Private Attributes | |
| logging::Logger | _log {"m2n::M2NConfiguration"} |
| const std::string | TAG = "m2n" |
| const std::string | ATTR_EXCHANGE_DIRECTORY = "exchange-directory" |
| const std::string | ATTR_ENFORCE_GATHER_SCATTER = "enforce-gather-scatter" |
| const std::string | ATTR_USE_TWO_LEVEL_INIT = "use-two-level-initialization" |
| std::vector< ConfiguredM2N > | _m2ns |
Configuration for communication channels between solvers.
Definition at line 16 of file M2NConfiguration.hpp.
| using precice::m2n::M2NConfiguration::SharedPointer = std::shared_ptr<M2NConfiguration> |
Definition at line 18 of file M2NConfiguration.hpp.
|
explicit |
|
overridedefault |
|
private |
Definition at line 207 of file M2NConfiguration.cpp.
| m2n::PtrM2N precice::m2n::M2NConfiguration::getM2N | ( | const std::string & | acceptor, |
| const std::string & | connector ) |
Returns the communication object for the given user names.
Exits with an error message, when no object is configured for the given user names.
Definition at line 112 of file M2NConfiguration.cpp.
| bool precice::m2n::M2NConfiguration::isM2NConfigured | ( | const std::string & | acceptor, |
| const std::string & | connector ) |
Definition at line 123 of file M2NConfiguration.cpp.
|
inline |
Returns all configured communication objects.
Definition at line 44 of file M2NConfiguration.hpp.
|
inlineoverridevirtual |
Callback at end of XML tag and at end of subtag.
At this callback, the attributes and all subtags of callingTag are parsed. This callback is first done for the listener, and then for the parent tag listener (if existing).
Implements precice::xml::XMLTag::Listener.
Definition at line 53 of file M2NConfiguration.hpp.
|
overridevirtual |
Callback at begin of XML tag.
At this callback, the attributes of the callingTag are already parsed and available, while the subtags are not yet parsed.
Implements precice::xml::XMLTag::Listener.
Definition at line 131 of file M2NConfiguration.cpp.
|
private |
Definition at line 56 of file M2NConfiguration.hpp.
|
private |
Definition at line 63 of file M2NConfiguration.hpp.
|
private |
Definition at line 60 of file M2NConfiguration.hpp.
|
private |
Definition at line 59 of file M2NConfiguration.hpp.
|
private |
Definition at line 61 of file M2NConfiguration.hpp.
|
private |
Definition at line 58 of file M2NConfiguration.hpp.