ivl 679
array< T, data::mask< A, B, DERIVED_INFO > > Class Template Reference

1-dimensional array of type T More...

#include <mask_class.hpp>

Inherits array_common_base< array< T, data::mask< A, B, DERIVED_INFO > > >.

List of all members.

Public Types

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_t length ()
size_type size () const
 Get the size of the array. generic-class function.
size_type size ()
size_t numel () const
 Get the length of the element sequence.
size_t numel ()
void resize (size_t l)
this_typecalc_length ()
Constructors
 array (A &a, const B &b)
 The only constructor.
 array (const this_type &o)
 Copy constructor.
Special Members
template<class D >
bool overlap (const D &d) const
template<class D >
bool self_overlap (const D &d) const
template<class J , class P >
derived_type & assign_array (const array< J, data::empty< P > > &o)
template<class D >
derived_type & assign_array (const D &o)
Assignement Operators
this_typeoperator= (const this_type &o)

Detailed Description

template<class T, class A, class B, class DERIVED_INFO>
class array< T, data::mask< A, B, DERIVED_INFO > >

1-dimensional array of type T

This class defines an simple one-dimensional array.


Member Function Documentation

template<class T , class A , class B , class DERIVED_INFO >
this_type& array< T, data::mask< A, B, DERIVED_INFO > >::calc_length ( ) [inline]

Calculates and stores the length of this array in a "cache" variable. It is not pre-calculated by default cause this could halve the mask-array's performance in some single operations, like copying from-to the mask-array, since length is not needed there (iterators are used).

template<class T , class A , class B , class DERIVED_INFO >
size_t array< T, data::mask< A, B, DERIVED_INFO > >::length ( ) const [inline]

Get the length of the element sequence in a non random-access array, length well might be slow.


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