Geant4 11.1.1
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 (std::size_t dimension)
 
G4bool operator() (G4KDNode_Base *const &lhs, G4KDNode_Base *const &rhs)
 

Public Attributes

std::size_t fDimension
 

Detailed Description

Definition at line 77 of file G4KDMap.hh.

Constructor & Destructor Documentation

◆ sortOutNDim()

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

Definition at line 79 of file G4KDMap.hh.

80 {
81 fDimension = dimension;
82 }
std::size_t fDimension
Definition: G4KDMap.hh:84

Member Function Documentation

◆ operator()()

G4bool __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

std::size_t __1DSortOut::sortOutNDim::fDimension

Definition at line 84 of file G4KDMap.hh.

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


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