Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPC_BoxPruning.cpp File Reference
#include "Stdafx.h"

Go to the source code of this file.

Macros

#define PRUNING_SORTER   RadixSort
 
#define ORIGINAL_VERSION
 

Functions

inline_ void FindRunningIndex (udword &index, float *array, udword *sorted, int last, float max)
 
inline_ PRUNING_SORTERGetCompletePruningSorter ()
 
inline_ PRUNING_SORTERGetBipartitePruningSorter0 ()
 
inline_ PRUNING_SORTERGetBipartitePruningSorter1 ()
 
void ReleasePruningSorters ()
 

Variables

static PRUNING_SORTERgCompletePruningSorter = null
 
static PRUNING_SORTERgBipartitePruningSorter0 = null
 
static PRUNING_SORTERgBipartitePruningSorter1 = null
 

Macro Definition Documentation

#define ORIGINAL_VERSION

Definition at line 177 of file OPC_BoxPruning.cpp.

#define PRUNING_SORTER   RadixSort

Function Documentation

inline_ void FindRunningIndex ( udword index,
float array,
udword sorted,
int  last,
float  max 
)

Definition at line 38 of file OPC_BoxPruning.cpp.

References index.

39  {
40  int First=index;
41  while(First<=last)
42  {
43  index = (First+last)>>1;
44 
45  if(max>array[sorted[index]]) First = index+1;
46  else last = index-1;
47  }
48  }
inline_ PRUNING_SORTER* GetBipartitePruningSorter0 ( )

Definition at line 65 of file OPC_BoxPruning.cpp.

References gBipartitePruningSorter0, and PRUNING_SORTER.

inline_ PRUNING_SORTER* GetBipartitePruningSorter1 ( )

Definition at line 70 of file OPC_BoxPruning.cpp.

References gBipartitePruningSorter1, and PRUNING_SORTER.

inline_ PRUNING_SORTER* GetCompletePruningSorter ( )

Definition at line 60 of file OPC_BoxPruning.cpp.

References gCompletePruningSorter, and PRUNING_SORTER.

Variable Documentation

PRUNING_SORTER* gBipartitePruningSorter0 = null
static

Definition at line 58 of file OPC_BoxPruning.cpp.

Referenced by GetBipartitePruningSorter0(), and ReleasePruningSorters().

PRUNING_SORTER* gBipartitePruningSorter1 = null
static

Definition at line 59 of file OPC_BoxPruning.cpp.

Referenced by GetBipartitePruningSorter1(), and ReleasePruningSorters().

PRUNING_SORTER* gCompletePruningSorter = null
static

Definition at line 57 of file OPC_BoxPruning.cpp.

Referenced by GetCompletePruningSorter(), and ReleasePruningSorters().