Classes | Namespaces

_src_base_array.hh File Reference

Array template class based on Shared. More...

#include "base/types.hh"

Go to the source code of this file.

Classes

class  base::Array< T >
 Array template class similar to STL vector but checks index and can be Shared. More...

Namespaces

namespace  base
 

Library of base code.



Detailed Description

Array template class based on Shared.

LastChangedDate:
2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
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 >
 *
 * 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10