Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
JDETECTOR::JPMTData< JElement_t > Class Template Reference

Template data structure for PMT I/O. More...

#include <JPMTSimulator.hh>

Inheritance diagram for JDETECTOR::JPMTData< JElement_t >:
std::vector< JElement_t >

Public Types

typedef std::vector
< JElement_t >::iterator 
iterator
 
typedef std::vector
< JElement_t >::const_iterator 
const_iterator
 
typedef std::vector
< JElement_t >
::reverse_iterator 
reverse_iterator
 
typedef std::vector
< JElement_t >
::const_reverse_iterator 
const_reverse_iterator
 

Public Member Functions

 JPMTData ()
 Default constructor. More...
 
void sort ()
 Sort. More...
 
void insert (const JElement_t &element)
 Insert element whilst maintaining order. More...
 

Detailed Description

template<class JElement_t>
class JDETECTOR::JPMTData< JElement_t >

Template data structure for PMT I/O.

Definition at line 168 of file JPMTSimulator.hh.

Member Typedef Documentation

template<class JElement_t>
typedef std::vector<JElement_t>::iterator JDETECTOR::JPMTData< JElement_t >::iterator

Definition at line 173 of file JPMTSimulator.hh.

template<class JElement_t>
typedef std::vector<JElement_t>::const_iterator JDETECTOR::JPMTData< JElement_t >::const_iterator

Definition at line 174 of file JPMTSimulator.hh.

template<class JElement_t>
typedef std::vector<JElement_t>::reverse_iterator JDETECTOR::JPMTData< JElement_t >::reverse_iterator

Definition at line 175 of file JPMTSimulator.hh.

template<class JElement_t>
typedef std::vector<JElement_t>::const_reverse_iterator JDETECTOR::JPMTData< JElement_t >::const_reverse_iterator

Definition at line 176 of file JPMTSimulator.hh.

Constructor & Destructor Documentation

template<class JElement_t>
JDETECTOR::JPMTData< JElement_t >::JPMTData ( )
inline

Default constructor.

Definition at line 182 of file JPMTSimulator.hh.

Member Function Documentation

template<class JElement_t>
void JDETECTOR::JPMTData< JElement_t >::sort ( )
inline

Sort.

Definition at line 190 of file JPMTSimulator.hh.

191  {
192  std::sort(this->begin(), this->end());
193  }
template<class JElement_t>
void JDETECTOR::JPMTData< JElement_t >::insert ( const JElement_t &  element)
inline

Insert element whilst maintaining order.

Parameters
elementelement

Definition at line 201 of file JPMTSimulator.hh.

202  {
203  iterator i = std::lower_bound(this->begin(), this->end(), element);
204 
206  }
std::vector< JElement_t >::iterator iterator

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