A container of strings groupped by prefix. More...
#include <SMESH_2smeshpy.hxx>
Public Member Functions | |
| bool | Add (const char *str) |
| Adds an object ID to some family of IDs with a common prefix. More... | |
| bool | IsInArgs (Handle(_pyCommand)&cmd, std::list< _AString > &subStr) |
| Finds an object ID in the command. More... | |
| void | Print (int level=0) |
| DEBUG. More... | |
Private Member Functions | |
| int | isIn (const char *str) |
| Return remainder length of the object ID after my _prefix. More... | |
Private Attributes | |
| _AString | _prefix |
| std::list< _pyStringFamily > | _subFams |
| std::list< _AString > | _strings |
A container of strings groupped by prefix.
It is used for a faster search of objects requiring to KeepAgrCmds() in commands. A speed up is gained because only a common prefix (e.g. "aArea") of many object IDs is searched in a command and not every object ID
| bool _pyStringFamily::Add | ( | const char * | str | ) |
Adds an object ID to some family of IDs with a common prefix.
| [in] | str | - the object ID |
false if str does not have the same prefix as this family (for internal usage) References _prefix, _strings, and _subFams.
Referenced by _pyGen::KeepAgrCmds().
|
private |
Return remainder length of the object ID after my _prefix.
| [in] | str | - remainder of the command after my _prefix |
References _strings, _subFams, and _pyCommand::IsIDChar().
| bool _pyStringFamily::IsInArgs | ( | Handle(_pyCommand)& | cmd, |
| std::list< _AString > & | subStr | ||
| ) |
Finds an object ID in the command.
| [in] | longStr | - the command string |
| [out] | subStr | - the found object ID |
true if the object ID found References _strings, _subFams, _pyCommand::GetArgBeginning(), _pyCommand::GetString(), and _pyCommand::IsIDChar().
|
private |
Referenced by Add(), isIn(), IsInArgs(), and Print().
|
private |
Referenced by Add(), isIn(), IsInArgs(), and Print().