| 138 | |
| 139 | template <typename PointType> |
| 140 | int KD_TREE<PointType>::validnum() |
| 141 | { |
| 142 | int s = 0; |
| 143 | if (Rebuild_Ptr == nullptr || *Rebuild_Ptr != Root_Node) |
| 144 | { |
| 145 | if (Root_Node != nullptr) |
| 146 | return (Root_Node->TreeSize - Root_Node->invalid_point_num); |
| 147 | else |
| 148 | return 0; |
| 149 | } |
| 150 | else |
| 151 | { |
| 152 | if (!pthread_mutex_trylock(&working_flag_mutex)) |
| 153 | { |
| 154 | s = Root_Node->TreeSize - Root_Node->invalid_point_num; |
| 155 | pthread_mutex_unlock(&working_flag_mutex); |
| 156 | return s; |
| 157 | } |
| 158 | else |
| 159 | { |
| 160 | return -1; |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | template <typename PointType> |
| 166 | void KD_TREE<PointType>::root_alpha(float &alpha_bal, float &alpha_del) |
nothing calls this directly
no outgoing calls
no test coverage detected