#include <G4KDNode.hh>
Definition at line 61 of file G4KDNode.hh.
◆ G4KDNode_Base()
Definition at line 71 of file G4KDNode.cc.
Referenced by FindParent(), G4KDNode< PointT >::G4KDNode(), G4KDNode_Base(), G4KDNodeCopy< PointCopyT >::G4KDNodeCopy(), GetLeft(), GetParent(), GetRight(), Insert(), Insert(), Insert(), and G4KDNode< PointT >::~G4KDNode().
◆ ~G4KDNode_Base()
G4KDNode_Base::~G4KDNode_Base |
( |
| ) |
|
|
virtualdefault |
◆ FindParent()
template<typename Position>
◆ GetAxis()
G4int G4KDNode_Base::GetAxis |
( |
| ) |
const |
|
inline |
◆ GetDim()
G4int G4KDNode_Base::GetDim |
( |
| ) |
const |
◆ GetLeft()
◆ GetParent()
◆ GetRight()
◆ GetTree()
G4KDTree * G4KDNode_Base::GetTree |
( |
| ) |
const |
|
inline |
◆ InactiveNode()
void G4KDNode_Base::InactiveNode |
( |
| ) |
|
|
virtual |
◆ Insert() [1/3]
template<typename PointT>
◆ Insert() [2/3]
Definition at line 114 of file G4KDNode.cc.
115{
117
118
119
122
123 if((*newNode)[aParent->
fAxis] > (*aParent)[aParent->
fAxis])
124 {
125 aParent->
fRight = newNode ;
127 }
128 else
129 {
130 aParent->
fLeft = newNode ;
131 newNode->
fSide = -1 ;
132 }
133
134 newNode->
fRight =
nullptr;
135 newNode->
fLeft =
nullptr;
136
137 return 0 ;
138}
G4KDNode_Base(G4KDTree *, G4KDNode_Base *)
G4KDNode_Base * FindParent(const Position &x0)
◆ Insert() [3/3]
template<typename PointT>
◆ IsValid()
virtual bool G4KDNode_Base::IsValid |
( |
| ) |
const |
|
inlinevirtual |
◆ operator[]()
virtual double G4KDNode_Base::operator[] |
( |
std::size_t | | ) |
const |
|
pure virtual |
◆ Print()
void G4KDNode_Base::Print |
( |
std::ostream & | out, |
|
|
G4int | level = 0 ) const |
Definition at line 172 of file G4KDNode.cc.
173{
174
176 for (
G4int i=0; i<level; ++i)
177 {
178 out << " ";
179 }
180 out << level;
181
182
184 {
185 fLeft->Print(out, level + 1);
186 }
188 {
189 fRight->Print(out, level + 1);
190 }
191}
◆ PullSubTree()
void G4KDNode_Base::PullSubTree |
( |
| ) |
|
◆ RetrieveNodeList()
void G4KDNode_Base::RetrieveNodeList |
( |
std::list< G4KDNode_Base * > & | node_list | ) |
|
Definition at line 161 of file G4KDNode.cc.
162{
163 output.push_back(this);
164
166 fLeft->RetrieveNodeList(output);
167
169 fRight->RetrieveNodeList(output);
170}
◆ SetTree()
void G4KDNode_Base::SetTree |
( |
G4KDTree * | tree | ) |
|
|
inline |
◆ fAxis
std::size_t G4KDNode_Base::fAxis |
|
protected |
◆ fLeft
◆ fParent
◆ fRight
◆ fSide
G4int G4KDNode_Base::fSide |
|
protected |
◆ fTree
G4KDTree* G4KDNode_Base::fTree {nullptr} |
|
protected |
The documentation for this class was generated from the following files: