43 |
|
#include <set> |
44 |
|
#include <string> |
45 |
|
#include <map> |
46 |
< |
|
46 |
> |
#include "brains/SimInfo.hpp" |
47 |
|
#include "utils/BitSet.hpp" |
48 |
|
namespace oopse { |
49 |
|
|
59 |
|
public: |
60 |
|
NameFinder(SimInfo* info); |
61 |
|
~NameFinder(); |
62 |
< |
bool match(const std::string& name, BitSet& bs); |
62 |
> |
BitSet match(const std::string& name); |
63 |
|
|
64 |
|
private: |
65 |
|
void loadNames(); |
67 |
|
void matchStuntDouble(const std::string& molName, const std::string& sdName, BitSet& bs); |
68 |
|
void matchRigidAtoms(const std::string& molName, const std::string& rbName, const std::string& rbAtomName, BitSet& bs); |
69 |
|
|
70 |
+ |
void matchInternalIndex(const std::string& name, int internalIndex, BitSet& bs); |
71 |
+ |
|
72 |
+ |
TreeNode* createNode(TreeNode* parent, const std::string& name); |
73 |
|
std::vector<TreeNode*> getMatchedChildren(TreeNode* node, const std::string& name); |
74 |
|
bool isMatched(const std::string& str, const std::string& wildcard); |
75 |
|
|
76 |
+ |
bool isInteger(const std::string str); |
77 |
+ |
|
78 |
|
SimInfo* info_; |
79 |
|
int nStuntDouble_; |
80 |
|
TreeNode* root_; |