NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Array< T > Class Template Reference

#include <Array.hpp>

Inherits FW::ArrayBase< T, S32 >.

Public Member Functions

 Array (void)
 
 Array (const T &item)
 
 Array (const T *ptr, S32 size)
 
 Array (const Array< T > &other)
 
- Public Member Functions inherited from FW::ArrayBase< T, S32 >
 ArrayBase (void)
 
 ArrayBase (const T &item)
 
 ArrayBase (const T *ptr, S32size)
 
 ArrayBase (const ArrayBase< T, S32 > &other)
 
 ~ArrayBase (void)
 
S32 getSize (void) const
 
S32 getCapacity (void) const
 
const T * getPtr (S32idx=0) const
 
T * getPtr (S32idx=0)
 
S32 getStride (void) const
 
S32 getNumBytes (void) const
 
const T & get (S32idx) const
 
T & get (S32idx)
 
set (S32idx, const T &item)
 
void set (const T *ptr, S32size)
 
void set (const ArrayBase< T, S32 > &other)
 
const T & getFirst (void) const
 
T & getFirst (void)
 
const T & getLast (void) const
 
T & getLast (void)
 
void getRange (S32start, S32end, T *ptr) const
 
ArrayBase< T, S32getRange (S32start, S32end) const
 
void setRange (S32start, S32end, const T *ptr)
 
void setRange (S32start, const ArrayBase< T, S32 > &other)
 
void reset (S32size=0)
 
void setCapacity (S32numElements)
 
void compact (void)
 
void clear (void)
 
void resize (S32size)
 
void reserve (S32numElements)
 
T & add (void)
 
T & add (const T &item)
 
T * add (const T *ptr, S32size)
 
T * add (const ArrayBase< T, S32 > &other)
 
T & insert (S32idx)
 
T & insert (S32idx, const T &item)
 
T * insert (S32idx, const T *ptr, S32size)
 
T * insert (S32idx, const ArrayBase< T, S32 > &other)
 
remove (S32idx)
 
void remove (S32start, S32end)
 
T & removeLast (void)
 
removeSwap (S32idx)
 
void removeSwap (S32start, S32end)
 
T * replace (S32start, S32end, S32size)
 
T * replace (S32start, S32end, const T *ptr, S32size)
 
T * replace (S32start, S32end, const ArrayBase< T, S32 > &other)
 
S32 indexOf (const T &item, S32fromIdx=0) const
 
S32 lastIndexOf (const T &item) const
 
S32 lastIndexOf (const T &item, S32fromIdx) const
 
bool contains (const T &item) const
 
bool removeItem (const T &item)
 
const T & operator[] (S32idx) const
 
T & operator[] (S32idx)
 
ArrayBase< T, S32 > & operator= (const ArrayBase< T, S32 > &other)
 
bool operator== (const ArrayBase< T, S32 > &other) const
 
bool operator!= (const ArrayBase< T, S32 > &other) const
 

Additional Inherited Members

- Static Public Member Functions inherited from FW::ArrayBase< T, S32 >
static void copy (T *dst, const T *src, S32size)
 
static void copyOverlap (T *dst, const T *src, S32size)
 

Detailed Description

template<class T>
class FW::Array< T >

Definition at line 746 of file Array.hpp.

Constructor & Destructor Documentation

template<class T>
FW::Array< T >::Array ( void  )
inline

Definition at line 749 of file Array.hpp.

template<class T>
FW::Array< T >::Array ( const T &  item)
inlineexplicit

Definition at line 750 of file Array.hpp.

template<class T>
FW::Array< T >::Array ( const T *  ptr,
S32  size 
)
inline

Definition at line 751 of file Array.hpp.

template<class T>
FW::Array< T >::Array ( const Array< T > &  other)
inline

Definition at line 752 of file Array.hpp.


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