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

#include <force_class.hpp>

Inherits array_common_base< array< T, data::forced< A, 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

void reshape (size_t len)
 Reshape is same as resize for 1-d arrays.
 ~array ()
 destructor
Size functions
size_t length () const
 Get the length of the element sequence.
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

best_reference operator[] (typename tool::brackets_arg i)
 Returns the const element found at position offset.
const_reference operator[] (typename tool::brackets_arg i) const
 Returns the element found at position offset.
Special members
template<class D >
bool overlap (const D &a) const
void setref (A &a)
Constructors
 array ()
 Default constructor.
 array (A &a)
 construction from the reference arrays
 array (const array &o)
 copy constructor
filler constructors
 array (size_t)
 unused constructor with size_type
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
Assignement Operators
this_typeoperator= (const this_type &a)

Detailed Description

template<class T, class A, class DERIVED_INFO>
class array< T, data::forced< A, DERIVED_INFO > >

Force class is a wrapper of another normal array that is writeable and possibly resizeable. The only action of this class is that it hides the wrapped class and pointer from the rest of ivl, and it has some special behavior so that overlap always returns false in any circumstances. So this array won't detect data overlapping with other arrays, allowing the experienced user to force an array to not be copied when it is input and output at the same time when upon request.


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