#include <carray.hxx>
Public Types | |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | iterator |
| typedef const T * | const_iterator |
Public Member Functions | |
| carray () | |
| carray (T value) | |
| carray (const T *data) | |
| template<typename It> | |
| carray (It it) | |
| reference | operator[] (unsigned int i) |
| const_reference | operator[] (unsigned int i) const |
| const unsigned int | size () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
Private Attributes | |
| T | m_data [n] |
This class can be used to pass a bundle of equal-type parameters to or from functions without the overhead of dynamic memory-allocation. It can be used for any type and any size. To be compatible with the standard-containers and standard-algorithms, some iterators are provided. Note: to wrap only two parameters even of different type, you may use std::pair .
Definition at line 25 of file carray.hxx.
|
|||||
|
Definition at line 31 of file carray.hxx. |
|
|||||
|
Definition at line 29 of file carray.hxx. |
|
|||||
|
Definition at line 30 of file carray.hxx. |
|
|||||
|
Definition at line 28 of file carray.hxx. |
|
|||||||||
|
Default constructor. Does nothing, i.e. leaves the values un-initialized. Should be used only when you want to initialize the values later. Definition at line 4 of file carray.inl. |
|
||||||||||
|
Initalizes all elements with the given value (by copy).
Definition at line 10 of file carray.inl. |
|
||||||||||
|
Initalizes all elements by reading n values from a native C-array.
Definition at line 20 of file carray.inl. |
|
||||||||||||||
|
Initalizes all elements by reading n values from an iterator.
Definition at line 31 of file carray.inl. |
|
|||||||||
|
Read-only iterator (constant) pointing to the first element. Definition at line 83 of file carray.inl. |
|
|||||||||
|
Read/write iterator (non-constant) pointing to the first element. Definition at line 67 of file carray.inl. |
|
|||||||||
|
Iterator (constant) pointing one behind the last element. Definition at line 91 of file carray.inl. |
|
|||||||||
|
Iterator (non-constant) pointing one behind the last element. Definition at line 75 of file carray.inl. |
|
||||||||||
|
Value access operator for read-only access (constant) Definition at line 51 of file carray.inl. |
|
||||||||||
|
Value access operator for read/write access (non-constant) Definition at line 43 of file carray.inl. |
|
|||||||||
|
Size of the carray ( == n ) Definition at line 59 of file carray.inl. |
|
|||||
|
Definition at line 84 of file carray.hxx. |
1.3.9.1