This is the documentation for Enlighten.
module Containers
Classes
Name | Description |
|---|---|
A range within an array [first, last). | |
A fixed size array. | |
A storage unit for a page based allocation system. | |
A type of std::allocator, that passes memory requests through to the Geo heap functions This is used as the default allocator argument for the STL-like GeoMap/GeoList containers. | |
A custom std::allocator, that uses simple malloc/free. | |
Basic templated dynamic array class. | |
STL adaptor to make the GeoArray look like a proper STL container. | |
Adaptor to allow storing of pointers in a container (calls GEO_DELETE on each pointer upon array destruction) | |
Adaptor to allow container to own the pointed-to value data (calls GEO_DELETE() on each pointer upon container destruction) | |
Adaptor to allow container to own the pointed-to value data (calls GEO_DELETE() on each pointer upon container destruction) | |
Adaptor to allow storing of IGeoReleasable pointers in a container (calls Release() on each pointer upon array destruction) | |
Adaptor to allow container to own the pointed-to value data (calls Release() on each pointer upon container destruction) | |
Container for a set of bits. | |
iterator to a nonmodifiable GeoBitStore, allows reading data by the operator*() | |
A hash functor for a null-terminated string. | |
A std::allocator that passes memory requests through to a single underlying GeoAllocationPage. | |
To make usage of this pool class a bit less painful, create template holding classes for typedefs; since template typedefs do not exist, this is the closest you can get. | |
To make usage of this pool class a bit less painful, create template holding classes for typedefs; since template typedefs do not exist, this is the closest you can get. | |
A really simple texture where all elements are T. | |
A const handle into the hash table. | |
A hash functor for a null-terminated string. | |
A generic hashing functor. | |
A non-const handle into the hash table. | |
The hash table. | |
A functor which hashes a char string. | |
Basic templated dynamic immutable array class. | |
A fast implementation of a set associative container, this one using a sorted array of key values to lookup a similar array of value pointers. | |
Our implementation of an STL list, with some modifications. | |
Iterator for nonmutable GeoList. | |
Iterator for mutable GeoList. | |
Our implementation of an STL map, with some modifications. | |
Iterator for nonmutable GeoMap. | |
Iterator for mutable GeoMap. | |
A generic pair class. Inherits things like CopyConstructible or Assignable from its argument types. | |
Simple FIFO queue. | |
Any class which wishes to use the queue Walk function must inherit from this class to define its callback interface. | |
A generic triple class. Inherits things like CopyConstructible or Assignable from its argument types. | |
A really simple texture where all elements are float vectors. | |
Comparison class for std::sort. | |
An index value that may or may not be present. | |
A read-only view into an array with optional stride. | |
Class that writes a 2D block of memory to disk as a texture file. | |
A generic tree structure, where each node contains an item by value. | |
Provides a type id for the given type. |
Functions
Name | Description |
|---|---|
Return iterator to support ranged-based for loop. | |
Return iterator to support ranged-based for loop. | |
Removes all entries from the collection. Remember, this object did not take ownership. | |
Appends the contents of the 'source' GeoList to the 'dest' GeoList. | |
Return iterator to support ranged-based for loop. | |
Return iterator to support ranged-based for loop. | |
Find a value in the collection with TKey key. | |
Find array index for first element that matches data, returns -1 if no match. | |
Find the index of a given key. | |
Insert an pointer to a TValue item into the container. | |
Returns an array range for first and last. | |
Create a GeoArray which is a copy of the specified strided array view. | |
Create a GeoArray which is a copy of the specified array. | |
Function to create a Geo::GeoPair, similar to the STL function std::make_pair. | |
Function to create a Geo::GeoTriple, extended from MakeGeoPair. | |
Create a StridedArrayView which refers to the entire of the specified array. | |
Create a read-only view into an array with optional stride. | |
operator!=(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
operator!=(const GeoAllocatorUnchecked< T1 > &, const GeoAllocatorUnchecked< T2 > &) | Comparison operators for allocator classes. |
operator!=(const GeoAllocator< T1 > &, const GeoAllocator< T2 > &) | Comparison operators for allocator classes. |
operator!=(const GeoFixedPoolAllocator< T1 > &, const GeoFixedPoolAllocator< T2 > &) | Comparison operators for allocator classes. |
operator<(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
operator<=(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
Array equality testing function. | |
operator==(const GeoAllocator< T1 > &, const GeoAllocator< T2 > &) | Comparison operators for allocator classes. |
operator==(const GeoFixedPoolAllocator< T1 > &, const GeoFixedPoolAllocator< T2 > &) | Comparison operators for allocator classes. |
operator==(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
operator==(const GeoAllocatorUnchecked< T1 > &, const GeoAllocatorUnchecked< T2 > &) | Comparison operators for allocator classes. |
operator>(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
operator>=(const GeoList< _Ty, _Alloc > &, const GeoList< _Ty, _Alloc > &) | Operator overloads for GeoList. |
Remove the entry referenced to by key. | |
Remove the entry referenced by index obtained by FindIndex (note that all indices are of course invalidated). | |
SafeDestructArrayContents(Geo::GeoArray< tType * > &, tTypeDestructor) | Given a GeoArray of pointers, and a destruct function (or any type that has operator()), destroy the elements and clear the array. |
Optimised std::swap compatible function. | |
swap(GeoMap< _Kty, _Ty, _Pr, _Alloc > &, GeoMap< _Kty, _Ty, _Pr, _Alloc > &) | Optimised std::swap compatible function. |
Typedefs
Name | Description |
|---|---|
const Impl::Empty * TypeId | A value that uniquely identifies a type within a single executable or dynamic library. |
T* Geo::begin
public: T * begin
(
ArrayRange< T > & a
)
Return iterator to support ranged-based for loop.
const T* Geo::begin
public: const T * begin
(
const ArrayRange< T > & a
)
Return iterator to support ranged-based for loop.
void Geo::GeoKeyValueArray< TKey, TValue >::Clear
public: void Clear()
Removes all entries from the collection. Remember, this object did not take ownership.
bool Geo::Copy
public: bool Copy
(
const GeoList< T > & source,
GeoList< T > & dest
)
Appends the contents of the 'source' GeoList to the 'dest' GeoList.
T* Geo::end
public: T * end
(
ArrayRange< T > & a
)
Return iterator to support ranged-based for loop.
const T* Geo::end
public: const T * end
(
const ArrayRange< T > & a
)
Return iterator to support ranged-based for loop.
TValue * Geo::GeoKeyValueArray< TKey, TValue >::Find
public: TValue * Find
(
const TKey & key
) const
Find a value in the collection with TKey key.
O(logN) operation.
Returns
NULL on failure.
Geo::s32 Geo::FindIndex
public: Geo::s32 FindIndex
(
const GeoArray< T > & lhs,
const T & data
)
Find array index for first element that matches data, returns -1 if no match.
This requires T to implement operator == (const T& rhs) const.
Note
Make sure your operator == is a const function!
s32 Geo::GeoKeyValueArray< TKey, TValue >::FindIndex
public: s32 FindIndex
(
const TKey & key
) const
Find the index of a given key.
O(logN) operation.
Returns
-1 on failure.
s32 Geo::GeoKeyValueArray< TKey, TValue >::Insert
public: s32 Insert
(
const TKey & key,
TValue * value
)
Insert an pointer to a TValue item into the container.
O(logN) operation.
Returns
-1 on failure.
GEO_FORCE_INLINE ArrayRange<T> Geo::MakeArrayRange
public: GEO_FORCE_INLINE ArrayRange< T > MakeArrayRange
(
T * first,
T * last
)
Returns an array range for first and last.
GeoArray<T> Geo::MakeGeoArray
public: GeoArray< T > MakeGeoArray
(
StridedArrayView< T > a
)
Create a GeoArray which is a copy of the specified strided array view.
GeoArray<T> Geo::MakeGeoArray
public: GeoArray< T > MakeGeoArray
(
const T * p,
s32 n
)
Create a GeoArray which is a copy of the specified array.
GeoPair<T1, T2> Geo::MakeGeoPair
public: GeoPair< T1, T2 > MakeGeoPair
(
const T1 & t1,
const T2 & t2
)
Function to create a Geo::GeoPair, similar to the STL function std::make_pair.
GeoTriple<T1, T2, T3> Geo::MakeGeoTriple
public: GeoTriple< T1, T2, T3 > MakeGeoTriple
(
const T1 & t1,
const T2 & t2,
const T3 & t3
)
Function to create a Geo::GeoTriple, extended from MakeGeoPair.
StridedArrayView<T> Geo::MakeStridedArrayView
public: StridedArrayView< T > MakeStridedArrayView
(
const GeoArray< T > & a
)