Geant4 10.7.0
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 433 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 435 of file G4FastList.hh.

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

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