SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
can::Array< T, 0 > Class Template Reference

run-time (dynamic) array More...

Inheritance diagram for can::Array< T, 0 >:
can::NewArray< T > mth::Vector< T, 0 >

Public Member Functions

 Array ()
 default constructor - no allocation
 
 Array (unsigned n)
 construct with n elems
 
 Array (Array< T, 0 > const &other)
 copy constructor
 
 ~Array ()
 destructor - need to delete elems
 
Array< T, 0 > & operator= (Array< T, 0 > const &other)
 assignment operator
 
T & operator[] (unsigned i)
 mutable index operator
 
T const & operator[] (unsigned i) const
 immutable index operator
 
unsigned size () const
 get the size of this array
 
void resize (unsigned n)
 resize the array
 

Detailed Description

template<class T>
class can::Array< T, 0 >

run-time (dynamic) array

Definition at line 56 of file canArray.h.


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