|
WRApplication
External kratos "application" for multiscale time integration.
|
A class for working with formatted strings related to Checkpoint. More...
#include <PatternUtility.hpp>
Public Member Functions | |
Type Definitions | |
| KRATOS_CLASS_POINTER_DEFINITION (CheckpointPattern) | |
Life Cycle | |
| CheckpointPattern ()=default | |
| CheckpointPattern (const std::string &rPattern) | |
| CheckpointPattern (CheckpointPattern &&rOther)=default | |
| CheckpointPattern (const CheckpointPattern &rOther)=default | |
Operators | |
| PlaceholderPattern & | operator= (PlaceholderPattern &&rOther)=default |
| PlaceholderPattern & | operator= (const PlaceholderPattern &rOther)=default |
Public Member Functions inherited from ModelPartPattern | |
| KRATOS_CLASS_POINTER_DEFINITION (ModelPartPattern) | |
| ModelPartPattern ()=default | |
| ModelPartPattern (const std::string &rPattern) | |
| ModelPartPattern (ModelPartPattern &&rOther)=default | |
| ModelPartPattern (const ModelPartPattern &rOther)=default | |
| std::string | Apply (const ModelPart &rModelPart) const |
| Substitute values from the specified ModelPart in the stored pattern. | |
| std::string | Apply (Ref< const PlaceholderMap > rPlaceholderValueMap) const |
| Substitute values in the stored pattern. | |
| PlaceholderPattern & | operator= (PlaceholderPattern &&rOther)=default |
| PlaceholderPattern & | operator= (const PlaceholderPattern &rOther)=default |
Public Member Functions inherited from PlaceholderPattern | |
| PlaceholderPattern ()=default | |
| PlaceholderPattern (Ref< const std::string > rPattern, Ref< const PlaceholderMap > rPlaceholderMap) | |
| Construct from a placeholder pattern and its associated map. | |
| PlaceholderPattern (PlaceholderPattern &&rOther)=default | |
| PlaceholderPattern (const PlaceholderPattern &rOther)=default | |
| virtual | ~PlaceholderPattern ()=default |
| PlaceholderPattern & | operator= (PlaceholderPattern &&rOther)=default |
| PlaceholderPattern & | operator= (const PlaceholderPattern &rOther)=default |
| bool | IsAMatch (Ref< const std::string > rString) const |
| Check whether a string satisfies the pattern. | |
| MatchType | Match (Ref< const std::string > rString) const |
| Find all placeholders' values in the input string. | |
| std::string | Apply (Ref< const PlaceholderMap > rPlaceholderValueMap) const |
| Substitute values in the stored pattern. | |
| template<class TOutputIterator > | |
| void | Glob (TOutputIterator it) const |
| Collect all file/directory paths that match the pattern. | |
| bool | IsConst () const |
| Return true if the input pattern contains no placeholders. | |
| Ref< const std::regex > | GetRegex () const |
| Get the regex for the input pattern. | |
| Ref< const std::string > | GetRegexString () const |
| Get the string representation of the regex. | |
| PlaceholderMap | GetPlaceholderMap () const |
| Get a map of all placeholders and their associated regex representations. | |
| Ref< const std::string > | GetPatternString () const |
| Get the pattern with placeholders. | |
| KRATOS_CLASS_POINTER_DEFINITION (PlaceholderPattern) | |
Protected Operations | |
| static PlaceholderMap | GetPlaceholderMap () |
| virtual void | PopulatePlaceholderMap (PlaceholderMap &rMap, const ModelPart &rModelPart) const override |
| Populate a key-value map of registered placeholders from a ModelPart. | |
Additional Inherited Members | |
Public Types inherited from PlaceholderPattern | |
| using | PlaceholderMap = std::map< std::string, std::string > |
| using | PlaceholderGroupMap = std::map< std::string, std::optional< std::vector< std::size_t > > > |
| using | MatchType = std::map< std::string, std::vector< std::string > > |
| using | PathType = std::filesystem::path |
Protected Member Functions inherited from ModelPartPattern | |
| ModelPartPattern (const std::string &rPattern, const PlaceholderMap &rPlaceholderMap) | |
| Forwarding constructor for derived classes. | |
Static Protected Member Functions inherited from ModelPartPattern | |
| static PlaceholderMap | GetPlaceholderMap () |
A class for working with formatted strings related to Checkpoint.
An extension of ModelPartPattern with <path_id>. Operations on strings with the following placeholders are supported:
|
default |
| CheckpointPattern | ( | const std::string & | rPattern | ) |
|
default |
|
default |
|
staticprotected |
| KRATOS_CLASS_POINTER_DEFINITION | ( | CheckpointPattern | ) |
|
default |
|
default |
|
overrideprotectedvirtual |
Populate a key-value map of registered placeholders from a ModelPart.
Reimplemented from ModelPartPattern.