arr< T > Class Template Reference
[Array classes]

#include <arr.h>

Inheritance diagram for arr< T >:

arrT< T, normalAlloc__< T > > arr_ref< T >

List of all members.

Public Member Functions

 arr ()
 arr (tsize sz)
 arr (tsize sz, const T &inival)
 arr (T *ptr, tsize sz)
 arr (const arr &orig)


Detailed Description

template<typename T>
class arr< T >

One-dimensional array type.

Definition at line 300 of file arr.h.


Constructor & Destructor Documentation

template<typename T>
arr< T >::arr (  )  [inline]

Creates a zero-sized array.

Definition at line 304 of file arr.h.

template<typename T>
arr< T >::arr ( tsize  sz  )  [inline, explicit]

Creates an array with sz entries.

Definition at line 306 of file arr.h.

template<typename T>
arr< T >::arr ( tsize  sz,
const T &  inival 
) [inline]

Creates an array with sz entries, and initializes them with inival.

Definition at line 309 of file arr.h.

template<typename T>
arr< T >::arr ( T *  ptr,
tsize  sz 
) [inline]

Creates an array with sz entries, which uses the memory pointed to by ptr.

Note:
ptr will not be deallocated by the destructor.
Warning:
Only use this if you REALLY know what you are doing. In particular, this is only safely usable if
  • T is a POD type
  • ptr survives during the lifetime of the array object
  • ptr is not subject to garbage collection
Other restrictions may apply. You have been warned.

Definition at line 321 of file arr.h.

template<typename T>
arr< T >::arr ( const arr< T > &  orig  )  [inline]

Creates an array which is a copy of orig. The data in orig is duplicated.

Definition at line 324 of file arr.h.


The documentation for this class was generated from the following file:

Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library