UT_Vector4Array Class Reference

#include <UT_Vector4Array.h>

List of all members.

Public Member Functions

 UT_Vector4Array (unsigned int sz=0)
 UT_Vector4Array (unsigned int sz, unsigned int count)
virtual ~UT_Vector4Array (void)
 UT_Vector4Array (const UT_Vector4Array &a)
unsigned int append (void)
unsigned int append (const UT_Vector4 &t)
unsigned int insert (unsigned int index)
unsigned int insert (const UT_Vector4 &t, unsigned int index)
unsigned int concat (const UT_Vector4Array &a)
unsigned int multipleInsert (unsigned int index, unsigned int count)
unsigned int append (const UT_Vector4 &t, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2))
unsigned int insert (const UT_Vector4 &t, unsigned int index, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2))
unsigned int insertAt (const UT_Vector4 &t, unsigned int index)
int remove (const UT_Vector4 &t, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2))
int shift (unsigned int srcIdx, unsigned int destIdx, unsigned int howMany)
void cycle (int howMany)
int find (const UT_Vector4 &t, unsigned int s=0) const
int find (const UT_Vector4 &t, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2), unsigned int s=0) const
int find (const void *any, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2), unsigned int s=0) const
int index (const UT_Vector4 &t) const
int safeIndex (const UT_Vector4 &t) const
void sort (int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2))
void resize (unsigned int sz, unsigned short copyFlag=1)
void resizeIfNeeded (uint sz, bool copyFlag=true)
uint capacity (void) const
int64 getMemoryUsage () const
uint entries (void) const
bool isEmpty (void) const
void entries (unsigned int ne)
UT_Vector4Arrayoperator= (const UT_Vector4Array &a)
int operator== (const UT_Vector4Array &a) const
int isEqual (const UT_Vector4Array &a, int(*compare)(const UT_Vector4 *t1, const UT_Vector4 *t2)) const
UT_Vector4operator() (unsigned int i)
const UT_Vector4operator() (unsigned int i) const
UT_Vector4operator[] (unsigned int i)
const UT_Vector4operator[] (unsigned int i) const
UT_Vector4last ()
UT_Vector4 last () const
unsigned int apply (int(*applyFct)(UT_Vector4 &t, void *d), void *d)
const UT_Vector4getRawArray (void) const
UT_Vector4array (void)
int remove (const UT_Vector4 &t)
int remove (unsigned int aindex)


Detailed Description

Definition at line 30 of file UT_Vector4Array.h.


Constructor & Destructor Documentation

UT_Vector4Array::UT_Vector4Array ( unsigned int  sz = 0  )  [inline, explicit]

Definition at line 33 of file UT_Vector4Array.h.

UT_Vector4Array::UT_Vector4Array ( unsigned int  sz,
unsigned int  count 
)

virtual UT_Vector4Array::~UT_Vector4Array ( void   )  [virtual]

UT_Vector4Array::UT_Vector4Array ( const UT_Vector4Array a  ) 


Member Function Documentation

unsigned int UT_Vector4Array::append ( const UT_Vector4 t,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare 
)

unsigned int UT_Vector4Array::append ( const UT_Vector4 t  ) 

unsigned int UT_Vector4Array::append ( void   )  [inline]

Definition at line 61 of file UT_Vector4Array.h.

unsigned int UT_Vector4Array::apply ( int(*)(UT_Vector4 &t, void *d)  applyFct,
void *  d 
)

UT_Vector4* UT_Vector4Array::array ( void   )  [inline]

Definition at line 216 of file UT_Vector4Array.h.

uint UT_Vector4Array::capacity ( void   )  const [inline]

Definition at line 158 of file UT_Vector4Array.h.

unsigned int UT_Vector4Array::concat ( const UT_Vector4Array a  ) 

void UT_Vector4Array::cycle ( int  howMany  ) 

void UT_Vector4Array::entries ( unsigned int  ne  )  [inline]

Definition at line 164 of file UT_Vector4Array.h.

uint UT_Vector4Array::entries ( void   )  const [inline]

Definition at line 160 of file UT_Vector4Array.h.

int UT_Vector4Array::find ( const void *  any,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare,
unsigned int  s = 0 
) const

int UT_Vector4Array::find ( const UT_Vector4 t,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare,
unsigned int  s = 0 
) const

int UT_Vector4Array::find ( const UT_Vector4 t,
unsigned int  s = 0 
) const

int64 UT_Vector4Array::getMemoryUsage ( void   )  const [inline]

Definition at line 159 of file UT_Vector4Array.h.

const UT_Vector4* UT_Vector4Array::getRawArray ( void   )  const [inline]

Definition at line 215 of file UT_Vector4Array.h.

int UT_Vector4Array::index ( const UT_Vector4 t  )  const [inline]

Definition at line 137 of file UT_Vector4Array.h.

unsigned int UT_Vector4Array::insert ( const UT_Vector4 t,
unsigned int  index,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare 
)

unsigned int UT_Vector4Array::insert ( const UT_Vector4 t,
unsigned int  index 
)

unsigned int UT_Vector4Array::insert ( unsigned int  index  ) 

unsigned int UT_Vector4Array::insertAt ( const UT_Vector4 t,
unsigned int  index 
)

bool UT_Vector4Array::isEmpty ( void   )  const [inline]

Definition at line 161 of file UT_Vector4Array.h.

int UT_Vector4Array::isEqual ( const UT_Vector4Array a,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare 
) const

UT_Vector4 UT_Vector4Array::last (  )  const [inline]

Definition at line 203 of file UT_Vector4Array.h.

UT_Vector4& UT_Vector4Array::last (  )  [inline]

Definition at line 198 of file UT_Vector4Array.h.

unsigned int UT_Vector4Array::multipleInsert ( unsigned int  index,
unsigned int  count 
)

const UT_Vector4& UT_Vector4Array::operator() ( unsigned int  i  )  const [inline]

Definition at line 187 of file UT_Vector4Array.h.

UT_Vector4& UT_Vector4Array::operator() ( unsigned int  i  )  [inline]

Definition at line 182 of file UT_Vector4Array.h.

UT_Vector4Array& UT_Vector4Array::operator= ( const UT_Vector4Array a  ) 

int UT_Vector4Array::operator== ( const UT_Vector4Array a  )  const

const UT_Vector4& UT_Vector4Array::operator[] ( unsigned int  i  )  const [inline]

Definition at line 193 of file UT_Vector4Array.h.

UT_Vector4& UT_Vector4Array::operator[] ( unsigned int  i  ) 

int UT_Vector4Array::remove ( const UT_Vector4 t,
int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare 
)

More remove() methods that search for the object to be removed with a user-defined comparison function. These methods assume the array is sorted. t1 and t2 must be pointers to UT_Vector4. The methods return the last (removed) object index.

int UT_Vector4Array::remove ( unsigned int  aindex  )  [inline]

Remove one element from the array given the element itself or its position in the list, and fill the gap by shifting the elements down by one position. Both methods return the index if successful, and (int)-1 if the element is not found. The method that takes an index argument does not return a reference to the object for safety purposes: if UT_Vector4 is an object, then when the array is shrunk the memory previously used by UT_Vector4 will be overwritten by the next element.

Definition at line 96 of file UT_Vector4Array.h.

int UT_Vector4Array::remove ( const UT_Vector4 t  ) 

Remove one element from the array given the element itself or its position in the list, and fill the gap by shifting the elements down by one position. Both methods return the index if successful, and (int)-1 if the element is not found. The method that takes an index argument does not return a reference to the object for safety purposes: if UT_Vector4 is an object, then when the array is shrunk the memory previously used by UT_Vector4 will be overwritten by the next element.

void UT_Vector4Array::resize ( unsigned int  sz,
unsigned short  copyFlag = 1 
)

void UT_Vector4Array::resizeIfNeeded ( uint  sz,
bool  copyFlag = true 
) [inline]

Definition at line 150 of file UT_Vector4Array.h.

int UT_Vector4Array::safeIndex ( const UT_Vector4 t  )  const [inline]

Definition at line 138 of file UT_Vector4Array.h.

int UT_Vector4Array::shift ( unsigned int  srcIdx,
unsigned int  destIdx,
unsigned int  howMany 
)

void UT_Vector4Array::sort ( int(*)(const UT_Vector4 *t1, const UT_Vector4 *t2)  compare  ) 


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

Generated on Fri May 25 00:10:55 2012 for HDK by  doxygen 1.5.9