ivl 679
ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > > Class Template Reference

1-dimensional array of type T More...

#include <array.hpp>

Inherits ivl::array_common_base< C >.

List of all members.

Public Types

typedef ptrdiff_t diff_type
 difference type of iterators
typedef size_t size_type
 parameter of resize, in each class of the hierarchy

Public Member Functions

 ~array ()
 destructor
Size functions
size_t length () const
size_type size () const
 Get the size of the array. generic-class function.
size_t numel () const
 Get the length of the element sequence.
Element access

Access a unique element by specifying the position

const_reference operator[] (typename tool::brackets_arg i) const
Special members

class specialization specific members

void setref (const A &a)
template<class D >
bool self_overlap (const D &a) const
void init (const A &a)
void init (const array &o)
Constructors
 array ()
 default constructor. setref needs to be called to complete construction.
 array (const A &a)
 construction from the reference arrays
 array (const array &o)
 copy constructor
filler constructors
 array (size_t)
 unused constructor with size_type
 array (size_t, const T &)
 unused constructor with size_type and T&
template<class J , class D >
 array (size_t, const array< J, D > &)
 unused constructor with size_type and T& or A&
 array (size_t, const T *)
 unused constructor with size_type and T*
template<class J , class S >
 array (const array< J, S > &a)
 unused constructor with other type array

Detailed Description

template<class T, template< typename, typename > class F, class A, class DERIVED_INFO>
class ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >

1-dimensional array of type T

This class defines an simple one-dimensional array.


Member Function Documentation

template<class T , template< typename, typename > class F, class A , class DERIVED_INFO >
size_t ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::length ( ) const [inline]

Get the length of the element sequence Optional length property

template<class T , template< typename, typename > class F, class A , class DERIVED_INFO >
const_reference ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::operator[] ( typename tool::brackets_arg  i) const [inline]

Returns the const element found at position offset Optional random access operator []

template<class T , template< typename, typename > class F, class A , class DERIVED_INFO >
void ivl::array< T, data::unary_elem_func< F, A, DERIVED_INFO > >::setref ( const A &  a) [inline]

set the reference arrays. needs to be called exactly once right after the construction except from the corresponding constructor or the copy constructor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations