ivl 679
array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > > Class Template Reference

1-dimensional array of type T More...

#include <binary_elem_func_ptr_class.hpp>

Inherits array_common_base< array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > > >.

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 tool1::brackets_arg i) const
Special members

class specialization specific members

void validate ()
 validate function called externally when an elem-func array is constructed.
void setref (ptr_t p1, const A1 &a1, const A2 &a2)
template<class A >
bool self_overlap (const A &a) const
Constructors
 array ()
 default constructor. setref needs to be called to complete construction.
 array (ptr_t p1, const A1 &a1, const A2 &a2)
 construction from the reference arrays
 array (const array &o)
 copy constructor
filler chain 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 S >
 array (size_t, const array< J, S > &)
 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, typename > class F, class A1, class A2, bool SWAP_ARGS, class DERIVED_INFO>
class array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, 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, typename > class F, class A1 , class A2 , bool SWAP_ARGS, class DERIVED_INFO >
size_t array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::length ( ) const [inline]

Get the length of the element sequence Optional length property

template<class T , template< typename, typename, typename > class F, class A1 , class A2 , bool SWAP_ARGS, class DERIVED_INFO >
const_reference array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::operator[] ( typename tool1::brackets_arg  i) const [inline]

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

template<class T , template< typename, typename, typename > class F, class A1 , class A2 , bool SWAP_ARGS, class DERIVED_INFO >
void array< T, data::binary_elem_func_ptr< F, A1, A2, SWAP_ARGS, DERIVED_INFO > >::setref ( ptr_t  p1,
const A1 &  a1,
const A2 &  a2 
) [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