#include <fixed_1D.h>


Public Types | |
| enum | { array_size = Size } |
| The length as an enumerated value. More... | |
| typedef value_type | array_impl [Size] |
| typedef const Element * | const_pointer |
| typedef const Element & | const_reference |
| typedef oned_tag | dimension_tag |
| typedef fixed< Size,-1 > | generator_type |
| typedef fixed_memory_tag | memory_tag |
| typedef Element * | pointer |
| typedef Element & | reference |
| typedef not_resizable_tag | resizing_tag |
| typedef fixed_size_tag | size_tag |
| typedef Element | value_type |
Public Member Functions | |
| CML_STATIC_REQUIRE (Size > 0) | |
| const_pointer | data () const |
| Return access to the data as a raw pointer. | |
| pointer | data () |
| Return access to the data as a raw pointer. | |
| const_reference | operator[] (size_t i) const |
| Const access to the data as a C array. | |
| reference | operator[] (size_t i) |
| Access to the data as a C array. | |
| size_t | size () const |
| Return the number of elements in the array. | |
Protected Member Functions | |
| fixed_1D () | |
Protected Attributes | |
| array_impl | m_data |
It's also possible to do this with a pointer to an array of values (e.g. a double*), whether or not it was actually declared as a fixed C array. This is HIGHLY DISCOURAGED, though. It's relatively straightforward to implement a separate class to take a C array (or pointer) and turn it into an array object.
Definition at line 47 of file fixed_1D.h.
| typedef value_type cml::fixed_1D< Element, Size >::array_impl[Size] |
Definition at line 65 of file fixed_1D.h.
| typedef const Element* cml::fixed_1D< Element, Size >::const_pointer |
Definition at line 62 of file fixed_1D.h.
| typedef const Element& cml::fixed_1D< Element, Size >::const_reference |
| typedef oned_tag cml::fixed_1D< Element, Size >::dimension_tag |
Definition at line 77 of file fixed_1D.h.
| typedef fixed<Size,-1> cml::fixed_1D< Element, Size >::generator_type |
| typedef fixed_memory_tag cml::fixed_1D< Element, Size >::memory_tag |
| typedef Element* cml::fixed_1D< Element, Size >::pointer |
Definition at line 59 of file fixed_1D.h.
| typedef Element& cml::fixed_1D< Element, Size >::reference |
| typedef not_resizable_tag cml::fixed_1D< Element, Size >::resizing_tag |
Definition at line 74 of file fixed_1D.h.
| typedef fixed_size_tag cml::fixed_1D< Element, Size >::size_tag |
| typedef Element cml::fixed_1D< Element, Size >::value_type |
| anonymous enum |
| cml::fixed_1D< Element, Size >::fixed_1D | ( | ) | [inline, protected] |
Definition at line 117 of file fixed_1D.h.
| cml::fixed_1D< Element, Size >::CML_STATIC_REQUIRE | ( | Size | , | |
| 0 | ||||
| ) |
| const_pointer cml::fixed_1D< Element, Size >::data | ( | ) | const [inline] |
| pointer cml::fixed_1D< Element, Size >::data | ( | ) | [inline] |
| const_reference cml::fixed_1D< Element, Size >::operator[] | ( | size_t | i | ) | const [inline] |
Const access to the data as a C array.
| i | a size_t index into the array. |
Definition at line 107 of file fixed_1D.h.
| reference cml::fixed_1D< Element, Size >::operator[] | ( | size_t | i | ) | [inline] |
Access to the data as a C array.
| i | a size_t index into the array. |
Definition at line 98 of file fixed_1D.h.
| size_t cml::fixed_1D< Element, Size >::size | ( | ) | const [inline] |
array_impl cml::fixed_1D< Element, Size >::m_data [protected] |
Definition at line 122 of file fixed_1D.h.
Referenced by cml::fixed_1D< Element, Size >::data(), and cml::fixed_1D< Element, Size >::operator[]().
1.5.9