DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | List of all members
dd4hep::PlacedVolumeExtension::VolIDs Class Reference

Volume ID container. More...

#include <Volumes.h>

Inheritance diagram for dd4hep::PlacedVolumeExtension::VolIDs:

Public Types

typedef std::vector< VolIDBase
 

Public Member Functions

 VolIDs ()=default
 Default constructor. More...
 
 VolIDs (VolIDs &&copy)=default
 Move constructor. More...
 
 VolIDs (const VolIDs &copy)=default
 Copy constructor. More...
 
VolIDsoperator= (VolIDs &&copy)=default
 Move assignment. More...
 
VolIDsoperator= (const VolIDs &c)=default
 Assignment operator. More...
 
std::vector< VolID >::const_iterator find (const std::string &name) const
 Find entry. More...
 
std::pair< std::vector< VolID >::iterator, bool > insert (const std::string &name, int value)
 Insert new entry. More...
 
template<class InputIt >
iterator insert (InputIt first, InputIt last)
 Insert bunch of entries. More...
 
template<class InputIt >
iterator insert (std::vector< VolID >::const_iterator pos, InputIt first, InputIt last)
 Insert bunch of entries. More...
 
std::string str () const
 String representation for debugging. More...
 

Detailed Description

Volume ID container.

Author
M.Frank
Version
1.0

Definition at line 88 of file Volumes.h.

Member Typedef Documentation

◆ Base

Definition at line 90 of file Volumes.h.

Constructor & Destructor Documentation

◆ VolIDs() [1/3]

dd4hep::PlacedVolumeExtension::VolIDs::VolIDs ( )
default

Default constructor.

◆ VolIDs() [2/3]

dd4hep::PlacedVolumeExtension::VolIDs::VolIDs ( VolIDs &&  copy)
default

Move constructor.

◆ VolIDs() [3/3]

dd4hep::PlacedVolumeExtension::VolIDs::VolIDs ( const VolIDs copy)
default

Copy constructor.

Member Function Documentation

◆ find()

std::vector< PlacedVolumeExtension::VolID >::const_iterator PlacedVolumeExtension::VolIDs::find ( const std::string &  name) const

Find entry.

Lookup volume ID.

Definition at line 397 of file Volumes.cpp.

◆ insert() [1/3]

std::pair< std::vector< PlacedVolumeExtension::VolID >::iterator, bool > PlacedVolumeExtension::VolIDs::insert ( const std::string &  name,
int  value 
)

Insert new entry.

Insert a new value into the volume ID container.

Definition at line 406 of file Volumes.cpp.

◆ insert() [2/3]

template<class InputIt >
iterator dd4hep::PlacedVolumeExtension::VolIDs::insert ( InputIt  first,
InputIt  last 
)
inline

Insert bunch of entries.

Definition at line 107 of file Volumes.h.

◆ insert() [3/3]

template<class InputIt >
iterator dd4hep::PlacedVolumeExtension::VolIDs::insert ( std::vector< VolID >::const_iterator  pos,
InputIt  first,
InputIt  last 
)
inline

Insert bunch of entries.

Definition at line 112 of file Volumes.h.

◆ operator=() [1/2]

VolIDs& dd4hep::PlacedVolumeExtension::VolIDs::operator= ( const VolIDs c)
default

Assignment operator.

◆ operator=() [2/2]

VolIDs& dd4hep::PlacedVolumeExtension::VolIDs::operator= ( VolIDs &&  copy)
default

Move assignment.

◆ str()

std::string PlacedVolumeExtension::VolIDs::str ( ) const

String representation for debugging.

Definition at line 420 of file Volumes.cpp.


The documentation for this class was generated from the following files: