| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- $#include "Vector.h"
- $#include "Vector3.h"
- $#include "OctreeQuery.h"
- class PODVector
- {
- TOLUA_TEMPLATE_BIND(T, Vector3, RayQueryResult)
-
- PODVector();
- PODVector(const PODVector<T>& vector);
- ~PODVector();
-
- PODVector<T> operator + (const T& rhs) const;
- PODVector<T> operator + (const PODVector<T>& rhs) const;
-
- bool operator == (const PODVector<T>& rhs) const;
-
- T& operator [] (unsigned index);
- const T& operator [] (unsigned index) const;
- T& At(unsigned index);
- const T& At(unsigned index) const;
-
- void Push(const T& value);
- void Push(const PODVector<T>& vector);
- void Pop();
-
- void Insert(unsigned pos, const T& value);
- void Insert(unsigned pos, const PODVector<T>& vector);
- void Erase(unsigned pos, unsigned length = 1);
-
- bool Remove(const T& value);
- void Clear();
-
- void Resize(unsigned newSize);
- void Reserve(unsigned newCapacity);
- void Compact();
-
- bool Contains(const T& value) const;
-
- T& Front();
- const T& Front() const;
- T& Back();
- const T& Back() const;
-
- unsigned Size() const;
- unsigned Capacity() const;
- bool Empty() const;
-
- tolua_readonly tolua_property__no_prefix unsigned size;
- tolua_readonly tolua_property__no_prefix unsigned capacity;
- tolua_readonly tolua_property__no_prefix bool empty;
- };
- $renaming PODVector<RayQueryResult> @ RayQueryResultVector
|