|
gtouchable
|
A single (name,value) identifier element used to build a touchable identity vector. More...
#include <gtouchable.h>
Public Member Functions | |
| GIdentifier (const std::string &n, int v) | |
Constructs a GIdentifier. | |
| bool | operator== (const GIdentifier &gid) const |
| Compares identifiers by value only. | |
| std::string | getName () const |
| Returns the identifier name. | |
| int | getValue () const |
| Returns the identifier value. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const GIdentifier &gidentifier) |
| Stream output helper used in logs and diagnostics. | |
A GTouchable identity is an ordered vector of these identifiers, typically created by parsing a user-facing identity string, e.g. "sector: 2, layer: 4, wire: 33".
Important:
Definition at line 77 of file gtouchable.h.
|
inline |
| n | Identifier name (e.g. "sector"). |
| v | Identifier value (e.g. 2). |
Definition at line 86 of file gtouchable.h.
|
inline |
Definition at line 103 of file gtouchable.h.
|
inline |
Definition at line 109 of file gtouchable.h.
|
inline |
This is used during GTouchable comparisons, where the identifier schema is expected to match.
| gid | The identifier to compare with. |
Definition at line 97 of file gtouchable.h.
|
friend |
Definition at line 166 of file gtouchable.cc.