Class representing a collection of nodes/ports selected using differemt categories:
#include <gridmd.h>
Public Member Functions | |
| gmSelector (const string &str_, int dup_sel_=gmSEL_NEAREST) | |
| Construct from a string, dup_sel indicates how to treat duplicated names (see gmNAME_SORT). | |
| gmSelector (const char *str_, int dup_sel_=gmSEL_NEAREST) | |
| Construct from a char *, same as above. | |
| gmSelector (gmNodeID id_) | |
| Construct from integer flag, string is empty then. | |
| void | init (const string &str_, int dup_sel_=gmSEL_NEAREST) |
| (Re-)initialize from a string | |
Public Attributes | |
| string | str |
| String representation of a selector (regular expression to select by name). | |
| gmNodeID | id |
| Integer representation. | |
| int | dup_sel |
| Flag indicating how to handle duplicated node names. | |
Class representing a collection of nodes/ports selected using differemt categories:
NB: port selection is not implemented yet. The ports for gmManager::mark_node() function are selected explicitly by indicating portid (the same for all selectted nodes) or automatically (when portid is -1).
| gmSelector::gmSelector | ( | const string & | str_, | |
| int | dup_sel_ = gmSEL_NEAREST | |||
| ) | [inline] |
Construct from a string, dup_sel indicates how to treat duplicated names (see gmNAME_SORT).
The string is a standard regular expression to math the node names. For details on regular expressions see wxWidgets manual. For example, for selecting nodes with names starting from 'A' and 'B' the expression "(A.*|B.*)" may be used. If there are nodes with the same names and the flag gmSEL_NEAREST is given, then only the node closest to the curren node in id will be selected among duplicates. Otherwise all duplicates are listed.
| string gmSelector::str |
String representation of a selector (regular expression to select by name).
When the string is void, uses integer representation.
1.7.1