ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
LArG4Identifier Class Reference

#include <LArG4Identifier.h>

Collaboration diagram for LArG4Identifier:

Public Types

enum  max_value_type { max_value = SHRT_MAX }
 
typedef short element_type
 
typedef std::vector< element_typeelement_vector
 
typedef std::vector< element_type >::size_type size_type
 

Public Member Functions

 LArG4Identifier ()
 
 LArG4Identifier (const LArG4Identifier &other)
 
 LArG4Identifier (const LArG4Identifier &other, size_type start)
 
 LArG4Identifier (const std::string &text)
 
virtual ~LArG4Identifier ()
 
LArG4Identifieroperator= (const LArG4Identifier &)
 
void add (element_type value)
 
LArG4Identifieroperator<< (element_type value)
 
element_typeoperator[] (size_type index)
 
void set (const std::string &text)
 
void clear ()
 
element_type operator[] (size_type index) const
 
size_type fields () const
 
int operator== (const LArG4Identifier &other) const
 
int operator!= (const LArG4Identifier &other) const
 
int operator< (const LArG4Identifier &other) const
 
int operator> (const LArG4Identifier &other) const
 
int prefix_less (const LArG4Identifier &other) const
 
int match (const LArG4Identifier &other) const
 Test if the shorter of two ids is identical to the equivalent sub-id extracted from the longer. More...
 
 operator std::string () const
 
void show () const
 

Private Attributes

element_vector m_fields
 

Detailed Description

Definition at line 120 of file LArG4Identifier.h.

Member Typedef Documentation

◆ element_type

Definition at line 128 of file LArG4Identifier.h.

◆ element_vector

Definition at line 129 of file LArG4Identifier.h.

◆ size_type

Definition at line 130 of file LArG4Identifier.h.

Member Enumeration Documentation

◆ max_value_type

Enumerator
max_value 

Definition at line 132 of file LArG4Identifier.h.

133  {
134  max_value = SHRT_MAX
135  } max_value_type;

Constructor & Destructor Documentation

◆ LArG4Identifier() [1/4]

LArG4Identifier::LArG4Identifier ( )

◆ LArG4Identifier() [2/4]

LArG4Identifier::LArG4Identifier ( const LArG4Identifier other)

◆ LArG4Identifier() [3/4]

LArG4Identifier::LArG4Identifier ( const LArG4Identifier other,
size_type  start 
)

◆ LArG4Identifier() [4/4]

LArG4Identifier::LArG4Identifier ( const std::string &  text)

◆ ~LArG4Identifier()

virtual LArG4Identifier::~LArG4Identifier ( )
inlinevirtual

Definition at line 161 of file LArG4Identifier.h.

161 {};

Member Function Documentation

◆ add()

void LArG4Identifier::add ( element_type  value)

◆ clear()

void LArG4Identifier::clear ( )

◆ fields()

size_type LArG4Identifier::fields ( ) const

◆ match()

int LArG4Identifier::match ( const LArG4Identifier other) const

Test if the shorter of two ids is identical to the equivalent sub-id extracted from the longer.

◆ operator std::string()

LArG4Identifier::operator std::string ( ) const

◆ operator!=()

◆ operator<()

int LArG4Identifier::operator< ( const LArG4Identifier other) const

◆ operator<<()

LArG4Identifier& LArG4Identifier::operator<< ( element_type  value)

◆ operator=()

LArG4Identifier& LArG4Identifier::operator= ( const LArG4Identifier )

◆ operator==()

int LArG4Identifier::operator== ( const LArG4Identifier other) const

◆ operator>()

int LArG4Identifier::operator> ( const LArG4Identifier other) const

◆ operator[]() [1/2]

element_type& LArG4Identifier::operator[] ( size_type  index)

◆ operator[]() [2/2]

element_type LArG4Identifier::operator[] ( size_type  index) const

◆ prefix_less()

int LArG4Identifier::prefix_less ( const LArG4Identifier other) const

◆ set()

void LArG4Identifier::set ( const std::string &  text)

◆ show()

void LArG4Identifier::show ( ) const

Member Data Documentation

◆ m_fields

element_vector LArG4Identifier::m_fields
private

Definition at line 233 of file LArG4Identifier.h.


The documentation for this class was generated from the following file:
LArG4Identifier::max_value
@ max_value
Definition: LArG4Identifier.h:134
LArG4Identifier::max_value_type
max_value_type
Definition: LArG4Identifier.h:133