Lolly 1.4.28
|
A concrete struct representing the implementation of an array. More...
#include <array.hpp>
Public Member Functions | |
array_rep () | |
Construct a new array representation object with length 0. | |
array_rep (int n) | |
Construct a new array representation object with specified length. | |
~array_rep () | |
Destroy the array representation object. | |
void | resize (int n) |
Resize the array length to n. | |
Private Attributes | |
int | n |
T * | a |
Private Attributes inherited from concrete_struct | |
int | ref_count |
The reference count for the concrete object. | |
Friends | |
class | array< T > |
int N | LESSGTR (array< T > a) |
T *A | LESSGTR (array< T > a) |
array< T > copy | LESSGTR (array< T > a) |
Additional Inherited Members | |
Private Member Functions inherited from concrete_struct | |
concrete_struct () | |
Default constructor for the concrete object. Increments the reference count. | |
virtual | ~concrete_struct () |
Virtual destructor for the concrete object. Decrements the reference count. | |
A concrete struct representing the implementation of an array.
T | Type of elements in the array. |
|
inline |
array_rep< T >::array_rep | ( | int | n | ) |