doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
idVectorSet< type, dimension > Class Template Reference

#include <VectorSet.h>

Inheritance diagram for idVectorSet< type, dimension >:
idList< type >

Public Member Functions

 idVectorSet (void)
 
 idVectorSet (const type &mins, const type &maxs, const int boxHashSize, const int initialSize)
 
size_t Allocated (void) const
 
size_t Size (void) const
 
void Init (const type &mins, const type &maxs, const int boxHashSize, const int initialSize)
 
void ResizeIndex (const int newSize)
 
void Clear (void)
 
int FindVector (const type &v, const float epsilon)
 
- Public Member Functions inherited from idList< type >
 idList (int newgranularity=16)
 
 idList (const idList< type > &other)
 
 ~idList (void)
 
void Clear (void)
 
int Num (void) const
 
int NumAllocated (void) const
 
void SetGranularity (int newgranularity)
 
int GetGranularity (void) const
 
size_t Allocated (void) const
 
size_t Size (void) const
 
size_t MemoryUsed (void) const
 
idList< type > & operator= (const idList< type > &other)
 
const typeoperator[] (int index) const
 
typeoperator[] (int index)
 
void Condense (void)
 
void Resize (int newsize)
 
void Resize (int newsize, int newgranularity)
 
void SetNum (int newnum, bool resize=true)
 
void AssureSize (int newSize)
 
void AssureSize (int newSize, const type &initValue)
 
void AssureSizeAlloc (int newSize, new_t *allocator)
 
typePtr (void)
 
const typePtr (void) const
 
typeAlloc (void)
 
int Append (const type &obj)
 
int Append (const idList< type > &other)
 
int AddUnique (const type &obj)
 
int Insert (const type &obj, int index=0)
 
int FindIndex (const type &obj) const
 
typeFind (type const &obj) const
 
int FindNull (void) const
 
int IndexOf (const type *obj) const
 
bool RemoveIndex (int index)
 
bool Remove (const type &obj)
 
void Sort (cmp_t *compare=(cmp_t *)&idListSortCompare< type >)
 
void SortSubSection (int startIndex, int endIndex, cmp_t *compare=(cmp_t *)&idListSortCompare< type >)
 
void Swap (idList< type > &other)
 
void DeleteContents (bool clear)
 

Private Attributes

idHashIndex hash
 
type mins
 
type maxs
 
int boxHashSize
 
float boxInvSize [dimension]
 
float boxHalfSize [dimension]
 

Additional Inherited Members

- Public Types inherited from idList< type >
typedef int cmp_t (const type *, const type *)
 
typedef type new_t (void)
 

Detailed Description

template<class type, int dimension>
class idVectorSet< type, dimension >

Definition at line 43 of file VectorSet.h.

Constructor & Destructor Documentation

template<class type , int dimension>
ID_INLINE idVectorSet< type, dimension >::idVectorSet ( void  )

Definition at line 69 of file VectorSet.h.

template<class type , int dimension>
ID_INLINE idVectorSet< type, dimension >::idVectorSet ( const type mins,
const type maxs,
const int  boxHashSize,
const int  initialSize 
)

Definition at line 77 of file VectorSet.h.

Member Function Documentation

template<class type, int dimension>
size_t idVectorSet< type, dimension >::Allocated ( void  ) const
inline

Definition at line 49 of file VectorSet.h.

template<class type , int dimension>
ID_INLINE void idVectorSet< type, dimension >::Clear ( void  )

Definition at line 109 of file VectorSet.h.

template<class type , int dimension>
ID_INLINE int idVectorSet< type, dimension >::FindVector ( const type v,
const float  epsilon 
)

Definition at line 115 of file VectorSet.h.

template<class type , int dimension>
ID_INLINE void idVectorSet< type, dimension >::Init ( const type mins,
const type maxs,
const int  boxHashSize,
const int  initialSize 
)

Definition at line 82 of file VectorSet.h.

template<class type , int dimension>
ID_INLINE void idVectorSet< type, dimension >::ResizeIndex ( const int  newSize)

Definition at line 103 of file VectorSet.h.

template<class type, int dimension>
size_t idVectorSet< type, dimension >::Size ( void  ) const
inline

Definition at line 51 of file VectorSet.h.

Member Data Documentation

template<class type, int dimension>
float idVectorSet< type, dimension >::boxHalfSize[dimension]
private

Definition at line 65 of file VectorSet.h.

template<class type, int dimension>
int idVectorSet< type, dimension >::boxHashSize
private

Definition at line 63 of file VectorSet.h.

template<class type, int dimension>
float idVectorSet< type, dimension >::boxInvSize[dimension]
private

Definition at line 64 of file VectorSet.h.

template<class type, int dimension>
idHashIndex idVectorSet< type, dimension >::hash
private

Definition at line 60 of file VectorSet.h.

template<class type, int dimension>
type idVectorSet< type, dimension >::maxs
private

Definition at line 62 of file VectorSet.h.

template<class type, int dimension>
type idVectorSet< type, dimension >::mins
private

Definition at line 61 of file VectorSet.h.


The documentation for this class was generated from the following file: