base_types_array.hh File Reference

Array types. More...

#include "base_shared_ptr.hh"
#include "base_types.hh"
#include "base_types2.hh"
#include "base_funcs2.hh"

Go to the source code of this file.

Namespaces

namespace  base

Classes

class  base::Array< T >
 Array template class similar to STL vector but checks index and can be Shared. More...
class  base::TinyArray< CNT, T >
 Light-weight fixed-length Array class with index-checking (if DEBUG==2). More...
class  base::SmallArray< FIXED_SIZE, T >
 Pretends to have a variable-size (but underlying array is fixed-size). More...
class  base::SortedArray< T, CONTAINER >
 Sorted array that provides read-only operator[]. More...
class  base::TempArray< T, TEMP, TEMP_SIZE >
 Template class for reusing a pre-allocated array for speed. More...
class  base::Array2D< T, BASE >
 2D array that clamps indexs. More...

Defines

#define BASE_TYPES_ARRAY_HH   1
#define virtual   VIRTUAL_METHODS_IN_BASIC_TYPES_IS_TOO_SLOW

Functions

template<uint CNT, typename T>
bool base::operator< (const TinyArray< CNT, T > &a1, const TinyArray< CNT, T > &a2)
template<uint FIXED_SIZE, typename T>
bool base::operator< (const SmallArray< FIXED_SIZE, T > &a1, const SmallArray< FIXED_SIZE, T > &a2)


Detailed Description

Array types.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org
 *
 * These arrays are very specialized and have both advantaes and disadvantages.
 *
 * PTR() guidelines:
 * -----------------
 * PTR() has limited uses.
 * Acceptable uses are inside frequent functions that use PTR() in their own scope.
 * PTR() opens the pitfall of dangling pointers.
 * Never store (or pass to a function that may store) what PTR() returns.
 * Be sure that what PTR() returned isn't still used after its object was destroyed.
 *
 * Coding notes:
 * -------------
 * if ( a > b )       // problem is that operator>() is rarely defined
 * if ( not(a < b) )  // WRONG: that's >=
 * if ( b < a )       // right: swapping operands of < is equivalent to >
 *
 * 

Define Documentation

#define BASE_TYPES_ARRAY_HH   1

#define virtual   VIRTUAL_METHODS_IN_BASIC_TYPES_IS_TOO_SLOW

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:14 2007