|
SLIP
1.4
|
This is a linear (one-dimensional) dynamic template container. This container statisfies the RandomAccessContainer concepts of the Standard Template Library (STL). More...
#include <Array.hpp>

Public Types | |
| typedef T | value_type |
| typedef Array< T > | self |
| typedef const Array< T > | const_self |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef ptrdiff_t | difference_type |
| typedef std::size_t | size_type |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
| typedef slip::stride_iterator < pointer > | iterator_range |
| typedef slip::stride_iterator < const_pointer > | const_iterator_range |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| typedef std::reverse_iterator < iterator_range > | reverse_iterator_range |
| typedef std::reverse_iterator < const_iterator_range > | const_reverse_iterator_range |
| typedef iterator | default_iterator |
| typedef const_iterator | const_default_iterator |
Public Member Functions | |
| void | resize (const size_type size, const T &val=T()) |
| Resizes a Array. More... | |
| std::string | name () const |
| Returns the name of the class. More... | |
| size_type | size () const |
| Returns the number of elements in the Array. More... | |
| size_type | max_size () const |
| Returns the maximal size (number of elements) in the Array. More... | |
| bool | empty () const |
| Returns true if the Array is empty. (Thus size() == 0) More... | |
| void | swap (self &rhs) |
| Swaps data with another Array. More... | |
| template<typename T> | |
| Array (const typename Array< T >::size_type n) | |
| template<typename T> | |
| Array (typename Array< T >::size_type n, const T &val) | |
| template<typename T> | |
| Array (typename Array< T >::size_type n, const T *val) | |
Constructors & Destructors | |
| Array () | |
| Constructs a Array. More... | |
| Array (const size_type size) | |
| Constructs a Array. More... | |
| Array (const size_type size, const T &val) | |
| Constructs a Array initialized by the scalar value val. More... | |
| Array (const size_type size, const T *val) | |
| Constructs a Array initialized by an array val. More... | |
| template<typename InputIterator > | |
| Array (const size_type n, InputIterator first, InputIterator last) | |
| Constructs a Array from a range. More... | |
| Array (const self &rhs) | |
| Constructs a copy of the Array rhs. More... | |
| ~Array () | |
| Destructor of the Array. More... | |
iterators | |
| iterator | begin () |
| Returns a read/write iterator that points to the first element in the Array. Iteration is done in ordinary element order. More... | |
| const_iterator | begin () const |
| Returns a read-only (constant) iterator that points to the first element in the Array. Iteration is done in ordinary element order. More... | |
| iterator | end () |
| Returns a read/write iterator that points one past the last element in the Array. Iteration is done in ordinary element order. More... | |
| const_iterator | end () const |
| Returns a read-only (constant) iterator that points one past the last element in the Array. Iteration is done in ordinary element order. More... | |
| reverse_iterator | rbegin () |
| Returns a read/write reverse iterator that points to the last element in the Array. Iteration is done in reverse element order. More... | |
| const_reverse_iterator | rbegin () const |
| Returns a read-only (constant) reverse iterator that points to the last element in the Array. Iteration is done in reverse element order. More... | |
| reverse_iterator | rend () |
| Returns a read/write reverse iterator that points to one before the first element in the Array. Iteration is done in reverse element order. More... | |
| const_reverse_iterator | rend () const |
| Returns a read-only (constant) reverse iterator that points to one before the first element within the Array. Iteration is done in reverse element order. More... | |
| iterator_range | begin (const slip::Range< int > &range) |
| Returns a read/write iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range. More... | |
| const_iterator_range | begin (const slip::Range< int > &range) const |
| Returns a read-only (constant) iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range. More... | |
| iterator_range | end (const slip::Range< int > &range) |
| Returns a read/write iterator_range that points one past the last element in the Array. Iteration is done in ordinary element order according to the Range. More... | |
| const_iterator_range | end (const slip::Range< int > &range) const |
| Returns a read-only (constant) iterator_range that points one past the last element in the Array. Iteration is done in ordinary element order according to the Range. More... | |
| iterator | begin (const slip::Box1d< int > &box) |
| Returns a read/write iterator that points the first element within the Box1d. Iteration is done in ordinary element order. More... | |
| const_iterator | begin (const slip::Box1d< int > &box) const |
| Returns a read-only (constant) iterator that points the first element within the Box1d. Iteration is done in ordinary element order. More... | |
| iterator | end (const slip::Box1d< int > &box) |
| Returns a read/write iterator that points one past the last element in the Array. Iteration is done in ordinary element order. More... | |
| const_iterator | end (const slip::Box1d< int > &box) const |
| Returns a read-only (constant) iterator that points one past the last element within the Box1d. Iteration is done in ordinary element order. More... | |
| reverse_iterator_range | rbegin (const slip::Range< int > &range) |
| Returns a read/write reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range. More... | |
| const_reverse_iterator_range | rbegin (const slip::Range< int > &range) const |
| Returns a read-only (constant) reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range. More... | |
| reverse_iterator_range | rend (const slip::Range< int > &range) |
| Returns a read/write reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range. More... | |
| const_reverse_iterator_range | rend (const slip::Range< int > &range) const |
| Returns a read-only (constant) reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range. More... | |
| reverse_iterator | rbegin (const slip::Box1d< int > &box) |
| Returns a read/write reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order. More... | |
| const_reverse_iterator | rbegin (const slip::Box1d< int > &box) const |
| Returns a read-only (constant) reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order. More... | |
| reverse_iterator | rend (const slip::Box1d< int > &box) |
| Returns a read/write reverse_iterator that points one previous the first element in the Box1d. Iteration is done in reverse element order. More... | |
| const_reverse_iterator | rend (const slip::Box1d< int > &box) const |
| Returns a read-only (constant) reverse_iterator that points one previous the first element of the Box1d. Iteration is done in reverse element order. More... | |
Assignment operators and methods | |
| self & | operator= (const self &rhs) |
| Assigns a Array in rhs. More... | |
| self & | operator= (const T &value) |
| Assign all the elements of the Array by value. More... | |
| void | fill (const T &value) |
| Fills the container range [begin(),begin()+N) with copies of value. More... | |
| void | fill (const T *value) |
| Fills the container range [begin(),begin()+N) with a copy of the value array. More... | |
| template<typename InputIterator > | |
| void | fill (InputIterator first, InputIterator last) |
| Fills the container range [begin(),begin()+N) with a copy of the range [first,last) More... | |
Element access operators | |
| reference | operator[] (const size_type n) |
| Subscript access to the data contained in the Array. More... | |
| const_reference | operator[] (const size_type n) const |
| Subscript access to the data contained in the Array. More... | |
| reference | operator() (const size_type n) |
| Subscript access to the data contained in the Array. More... | |
| const_reference | operator() (const size_type n) const |
| Subscript access to the data contained in the Array. More... | |
| reference | operator() (const slip::Point1d< size_type > &p) |
| Subscript access to the data contained in the Array. More... | |
| const_reference | operator() (const slip::Point1d< size_type > &p) const |
| Subscript access to the data contained in the Array. More... | |
| self | operator() (const slip::Range< int > &range) |
| Subscript access to the data contained in the Array. More... | |
Static Public Attributes | |
| static const std::size_t | DIM = 1 |
Friends | |
| class | boost::serialization::access |
i/o operators | |
| std::ostream & | operator<< (std::ostream &out, const self &a) |
| Write the Array to the ouput stream. More... | |
Comparison operators | |
| bool | operator== (const Array< T > &x, const Array< T > &y) |
| Array equality comparison More... | |
| bool | operator!= (const Array< T > &x, const Array< T > &y) |
| Array inequality comparison More... | |
| bool | operator< (const Array< T > &x, const Array< T > &y) |
| Less than comparison operator (Array ordering relation) More... | |
| bool | operator> (const Array< T > &x, const Array< T > &y) |
| More than comparison operator. More... | |
| bool | operator<= (const Array< T > &x, const Array< T > &y) |
| Less than equal comparison operator. More... | |
| bool | operator>= (const Array< T > &x, const Array< T > &y) |
| More than equal comparison operator. More... | |
This is a linear (one-dimensional) dynamic template container. This container statisfies the RandomAccessContainer concepts of the Standard Template Library (STL).
| T | Type of the element in the Array |
| typedef const_iterator slip::Array< T >::const_default_iterator |
| typedef const_pointer slip::Array< T >::const_iterator |
| typedef slip::stride_iterator<const_pointer> slip::Array< T >::const_iterator_range |
| typedef const value_type* slip::Array< T >::const_pointer |
| typedef const value_type& slip::Array< T >::const_reference |
| typedef std::reverse_iterator<const_iterator> slip::Array< T >::const_reverse_iterator |
| typedef std::reverse_iterator<const_iterator_range> slip::Array< T >::const_reverse_iterator_range |
| typedef const Array<T> slip::Array< T >::const_self |
| typedef iterator slip::Array< T >::default_iterator |
| typedef ptrdiff_t slip::Array< T >::difference_type |
| typedef pointer slip::Array< T >::iterator |
| typedef slip::stride_iterator<pointer> slip::Array< T >::iterator_range |
| typedef value_type* slip::Array< T >::pointer |
| typedef value_type& slip::Array< T >::reference |
| typedef std::reverse_iterator<iterator> slip::Array< T >::reverse_iterator |
| typedef std::reverse_iterator<iterator_range> slip::Array< T >::reverse_iterator_range |
| typedef Array<T> slip::Array< T >::self |
| typedef std::size_t slip::Array< T >::size_type |
| typedef T slip::Array< T >::value_type |
|
inline |
| slip::Array< T >::Array | ( | const size_type | size | ) |
Constructs a Array.
| size | dimension of the Array |
| slip::Array< T >::Array | ( | const size_type | size, |
| const T & | val | ||
| ) |
Constructs a Array initialized by the scalar value val.
| size | dimension of the Array |
| val | initialization value of the elements |
| slip::Array< T >::Array | ( | const size_type | size, |
| const T * | val | ||
| ) |
Constructs a Array initialized by an array val.
| size | dimension of the Array |
| val | initialization array value of the elements |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a read/write iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read-only (constant) iterator_range that points the first element within the Range. Iteration is done in ordinary element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read/write iterator that points the first element within the Box1d. Iteration is done in ordinary element order.
| box | Box1d to iterate. |
|
inline |
Returns a read-only (constant) iterator that points the first element within the Box1d. Iteration is done in ordinary element order.
| box | Box1d to iterate. |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a read/write iterator_range that points one past the last element in the Array. Iteration is done in ordinary element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read-only (constant) iterator_range that points one past the last element in the Array. Iteration is done in ordinary element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read/write iterator that points one past the last element in the Array. Iteration is done in ordinary element order.
| box | Box1d to iterate. |
|
inline |
Returns a read-only (constant) iterator that points one past the last element within the Box1d. Iteration is done in ordinary element order.
| box | Box1d to iterate. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| reference slip::Array< T >::operator() | ( | const size_type | n | ) |
Subscript access to the data contained in the Array.
| n | The index of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
| const_reference slip::Array< T >::operator() | ( | const size_type | n | ) | const |
Subscript access to the data contained in the Array.
| n | The index of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
| reference slip::Array< T >::operator() | ( | const slip::Point1d< size_type > & | p | ) |
Subscript access to the data contained in the Array.
| p | The index point corresponding of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
| const_reference slip::Array< T >::operator() | ( | const slip::Point1d< size_type > & | p | ) | const |
Subscript access to the data contained in the Array.
| p | The index point corresponding of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
|
inline |
Subscript access to the data contained in the Array.
| range | The range of the Array. |
This operator allows for easy, 1d array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
|
inline |
|
inline |
| reference slip::Array< T >::operator[] | ( | const size_type | n | ) |
Subscript access to the data contained in the Array.
| n | The index of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
| const_reference slip::Array< T >::operator[] | ( | const size_type | n | ) | const |
Subscript access to the data contained in the Array.
| n | The index of the element for which data should be accessed. |
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined.
|
inline |
|
inline |
|
inline |
Returns a read/write reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read-only (constant) reverse_iterator_range that points the end element within the Range. Iteration is done in reverse element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read/write reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order.
| box | Box1d to iterate. |
|
inline |
Returns a read-only (constant) reverse_iterator that points the last element within the Box1d. Iteration is done in reverse element order.
| box | Box1d to iterate. |
|
inline |
|
inline |
Returns a read-only (constant) reverse iterator that points to one before the first element within the Array. Iteration is done in reverse element order.
|
inline |
Returns a read/write reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read-only (constant) reverse_iterator_range that points one previous the first element in the Range. Iteration is done in reverse element order according to the Range.
| range | Range to iterate. |
|
inline |
Returns a read/write reverse_iterator that points one previous the first element in the Box1d. Iteration is done in reverse element order.
| box | Box1d to iterate. |
|
inline |
Returns a read-only (constant) reverse_iterator that points one previous the first element of the Box1d. Iteration is done in reverse element order.
| box | Box1d to iterate. |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
static |
1.8.6