|
Field3D
|
Contains functions for pattern matching field name/attributes. More...
#include <vector>#include <boost/foreach.hpp>#include <boost/tokenizer.hpp>#include <boost/thread/mutex.hpp>#include "Field.h"#include "ns.h"Go to the source code of this file.
Enumerations | |
| enum | MatchFlags { MatchNoFlags = 0 , MatchEmptyPattern = 1 << 0 } |
Contains functions for pattern matching field name/attributes.
Definition in file PatternMatch.h.
| Enumerator | |
|---|---|
| MatchNoFlags | |
| MatchEmptyPattern | |
Definition at line 64 of file PatternMatch.h.
| std::vector< std::string > split | ( | const std::string & | s | ) |
Splits a string into a vector of strings, using ',' as the separator.
Definition at line 75 of file PatternMatch.cpp.
References FIELD3D_MTX_T, and split().
| std::vector< std::string > split | ( | const std::string & | s, |
| const std::string & | separatorChars | ||
| ) |
Splits a string into a vector of strings, given separator characters.
Definition at line 83 of file PatternMatch.cpp.
References FIELD3D_MTX_T.
| bool match | ( | const std::string & | name, |
| const std::string & | attribute, | ||
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches a <name>:<attribute> string against a set of patterns.
Definition at line 102 of file PatternMatch.cpp.
References FIELD3D_MTX_T, and MatchEmptyPattern.
Referenced by Sparse::CheckAllEqual< Data_T >::check(), match(), match(), match(), and match().
| bool match | ( | const std::string & | name, |
| const std::string & | attribute, | ||
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Definition at line 153 of file PatternMatch.cpp.
References FIELD3D_MTX_T, match(), and split().
| bool match | ( | const std::string & | attribute, |
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches an <attribute> string against a set of patterns.
Definition at line 163 of file PatternMatch.cpp.
References FIELD3D_MTX_T, and MatchEmptyPattern.
| bool match | ( | const std::string & | attribute, |
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Definition at line 208 of file PatternMatch.cpp.
References FIELD3D_MTX_T, match(), and split().
| bool match | ( | const FieldRes * | f, |
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches a field's name and attribute against a set of patterns.
Definition at line 217 of file PatternMatch.cpp.
References FIELD3D_MTX_T, and match().
| bool match | ( | const FieldRes * | f, |
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |