Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
sortWatcher< OBJECT > Struct Template Reference

#include <G4FastList.hh>

Public Member Functions

bool operator() (const typename G4FastList< OBJECT >::Watcher *left, const typename G4FastList< OBJECT >::Watcher *right) const
 

Detailed Description

template<class OBJECT>
struct sortWatcher< OBJECT >

Definition at line 432 of file G4FastList.hh.

Member Function Documentation

◆ operator()()

template<class OBJECT >
bool sortWatcher< OBJECT >::operator() ( const typename G4FastList< OBJECT >::Watcher * left,
const typename G4FastList< OBJECT >::Watcher * right ) const
inline

Definition at line 434 of file G4FastList.hh.

436 {
437 if(left && right)
438 {
439 if(left->GetPriority() != right->GetPriority())
440 {
441 return left->GetPriority() < right->GetPriority();
442 }
443 return left < right;
444 }
445 return false;
446 }

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