Array< Element, Allocator > Class Template Reference
An array whose size is variable at run-time.
More...
#include <array.h>
Detailed Description
template<typename Element, typename Allocator = DefaultAllocator<Element>>
class Array< Element, Allocator >
An array whose size is variable at run-time.
- Resizing the array destroys all the existing elements and invalidates all iterators.
- Default-Constructible, Copyable, Assignable.
- Compatible with the containers and algorithms in the Standard Template Library (STL) - http://www.sgi.com/tech/stl/
- Parameters:
-
| Element | The type to be stored in the array. Must provide a default-constructor and a copy-constructor. |
| Allocator | A custom memory-allocator, conforming to the std::allocator interface. |
Definition at line 39 of file array.h.
Member Typedef Documentation
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Constructor & Destructor Documentation
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Array< Element, Allocator >::Array |
( |
std::size_t |
size |
) |
[inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename T1 >
Array< Element, Allocator >::Array |
( |
std::size_t |
size, |
|
|
const T1 & |
value | |
|
) |
| | [inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Array< Element, Allocator >::Array |
( |
const Array< Element, Allocator > & |
other |
) |
[inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Iterator >
Array< Element, Allocator >::Array |
( |
Iterator |
start, |
|
|
Iterator |
finish | |
|
) |
| | [inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Member Function Documentation
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Definition at line 97 of file array.h.
Referenced by Array< ub4 >::Array(), ControlPoints_parse(), ControlPoints_write(), HashKey< UB4Traits >::copy(), CatmullRomSpline::curveChanged(), NURBSCurve::curveChanged(), HashKey< UB4Traits >::equal(), CurveEdit::forEach(), CurveEdit::forEachSelected(), CurveEdit::isSelected(), Array< ub4 >::operator=(), NURBSCurve::parseCurve(), plotBasisFunction(), TranslateManipulator::RenderableArrowHead::setColour(), RotateManipulator::RenderableSemiCircle::setColour(), RotateManipulator::RenderableCircle::setColour(), CurveEdit::setSelected(), CurveEdit::testSelect(), and Brush::update_faces_wireframe().
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename T1 >
Element* Array< Element, Allocator >::construct |
( |
std::size_t |
size, |
|
|
const T1 & |
value | |
|
) |
| | [inline, private] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Element* Array< Element, Allocator >::construct |
( |
std::size_t |
size |
) |
[inline, private] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
void Array< Element, Allocator >::destroy |
( |
Element * |
data, |
|
|
std::size_t |
size | |
|
) |
| | [inline, private] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
bool Array< Element, Allocator >::empty |
( |
|
) |
const [inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Definition at line 103 of file array.h.
Referenced by Array< ub4 >::Array(), ControlPoints_parse(), ControlPoints_write(), HashKey< UB4Traits >::copy(), CatmullRomSpline::curveChanged(), NURBSCurve::curveChanged(), HashKey< UB4Traits >::equal(), CurveEdit::forEach(), CurveEdit::forEachSelected(), CurveEdit::isSelected(), Array< ub4 >::operator=(), NURBSCurve::parseCurve(), plotBasisFunction(), TranslateManipulator::RenderableArrowHead::setColour(), RotateManipulator::RenderableSemiCircle::setColour(), RotateManipulator::RenderableCircle::setColour(), CurveEdit::setSelected(), and CurveEdit::testSelect().
template<typename Element, typename Allocator = DefaultAllocator<Element>>
Array& Array< Element, Allocator >::operator= |
( |
const Array< Element, Allocator > & |
other |
) |
[inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
const value_type& Array< Element, Allocator >::operator[] |
( |
std::size_t |
index |
) |
const [inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
value_type& Array< Element, Allocator >::operator[] |
( |
std::size_t |
index |
) |
[inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
void Array< Element, Allocator >::resize |
( |
std::size_t |
count, |
|
|
const value_type & |
value | |
|
) |
| | [inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
void Array< Element, Allocator >::resize |
( |
std::size_t |
count |
) |
[inline] |
template<typename Element, typename Allocator = DefaultAllocator<Element>>
std::size_t Array< Element, Allocator >::size |
( |
|
) |
const [inline] |
Definition at line 128 of file array.h.
Referenced by BSpline_evaluate(), CatmullRom_evaluate(), ControlPoints_write(), HashKey< UB4Traits >::copy(), CurveEdit::curveChanged(), HashKey< UB4Traits >::equal(), CurveEdit::forEachSelected(), KnotVector_openUniform(), NURBS_evaluate(), Array< ub4 >::operator=(), Array< ub4 >::operator[](), NURBSCurve::parseCurve(), TranslateManipulator::RenderableArrowHead::render(), RotateManipulator::RenderableSemiCircle::render(), RotateManipulator::RenderableCircle::render(), Array< ub4 >::resize(), CatmullRomSpline::tesselate(), NURBSCurve::tesselate(), CurveEdit::testSelect(), Brush::update_faces_wireframe(), and Brush::update_wireframe().
template<typename Element, typename Allocator = DefaultAllocator<Element>>
void Array< Element, Allocator >::swap |
( |
Array< Element, Allocator > & |
other |
) |
[inline] |
Field Documentation
template<typename Element, typename Allocator = DefaultAllocator<Element>>
template<typename Element, typename Allocator = DefaultAllocator<Element>>
std::size_t Array< Element, Allocator >::m_size [private] |
The documentation for this class was generated from the following file:
- src/tools/radiant/libs/container/array.h