gtouchable
Loading...
Searching...
No Matches
GIdentifier Struct Reference

Represents a unique identifier for a sensitive detector element. More...

#include <gtouchable.h>

Collaboration diagram for GIdentifier:
Collaboration graph

Public Member Functions

 GIdentifier (const std::string &n, int v)
 Constructs a GIdentifier.
 
bool operator== (const GIdentifier &gid) const
 Equality operator comparing only the identifier value.
 
std::string getName () const
 Gets the identifier name.
 
int getValue () const
 Gets the identifier value.
 

Detailed Description

Each identifier consists of a name and an integer value.

Definition at line 53 of file gtouchable.h.

Constructor & Destructor Documentation

◆ GIdentifier()

GIdentifier::GIdentifier ( const std::string & n,
int v )
inline
Parameters
nThe identifier name.
vThe identifier value.

Definition at line 61 of file gtouchable.h.

Member Function Documentation

◆ getName()

std::string GIdentifier::getName ( ) const
inline
Returns
The identifier name.

Definition at line 75 of file gtouchable.h.

◆ getValue()

int GIdentifier::getValue ( ) const
inline
Returns
The identifier value.

Definition at line 81 of file gtouchable.h.

◆ operator==()

bool GIdentifier::operator== ( const GIdentifier & gid) const
inline
Parameters
gidThe GIdentifier to compare.
Returns
True if the identifier values are equal.

Definition at line 69 of file gtouchable.h.


The documentation for this struct was generated from the following file: