FX::Maths::Array< type, A > Class Template Reference

#include <FXMaths.h>

List of all members.


Detailed Description

template<typename type, unsigned int A>
class FX::Maths::Array< type, A >

A fixed-length array.

This is useful for denoting compile-time fixed length arrays. It emulates the STL vector class so you can iterate it. If you are thinking of a vector, use FX::Maths::Vector instead and if you are thinking of a matrix, use FX::Maths::Matrix instead. That said, an Array<Vector<float, 64>, 64> can make sense in certain circumstances.

Definition at line 1087 of file FXMaths.h.

Public Types

typedef type value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef value_typeiterator
typedef const value_typeconst_iterator

Public Member Functions

size_t max_size () const
 Array ()
 Array (const type *d)
bool operator== (const Array &o) const
bool operator!= (const Array &o) const
reference at (int i)
const_reference at (int i) const
reference operator[] (int i)
const_reference operator[] (int i) const
reference front ()
const_reference front () const
reference back ()
const_reference back () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:38:02 2009 for TnFOX by doxygen v1.4.7