Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
__1DSortOut::sortOutNDim Struct Reference

#include <G4KDMap.hh>

Public Member Functions

 sortOutNDim (size_t dimension)
 
bool operator() (G4KDNode_Base *const &lhs, G4KDNode_Base *const &rhs)
 

Public Attributes

size_t fDimension
 

Detailed Description

Definition at line 75 of file G4KDMap.hh.

Constructor & Destructor Documentation

◆ sortOutNDim()

__1DSortOut::sortOutNDim::sortOutNDim ( size_t  dimension)
inline

Definition at line 77 of file G4KDMap.hh.

78 {
79 fDimension = dimension;
80 }

Member Function Documentation

◆ operator()()

bool __1DSortOut::sortOutNDim::operator() ( G4KDNode_Base *const &  lhs,
G4KDNode_Base *const &  rhs 
)

Definition at line 35 of file G4KDMap.cc.

37{
38 return (*lhs)[fDimension] < (*rhs)[fDimension];
39}

Member Data Documentation

◆ fDimension

size_t __1DSortOut::sortOutNDim::fDimension

Definition at line 82 of file G4KDMap.hh.

Referenced by __1DSortOut::GetDimension(), operator()(), and sortOutNDim().


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