nw::ut::MoveArray::MoveArray Contructor

Syntax

MoveArray();
template <typename TTElemet>
MoveArray(
     TTElemet * elements,
     size_t capacity,
     os::IAllocator * allocator = NULL,
     ArrayKind kind = ARRAY_WRAPPER
);
MoveArray(
     size_t capacity,
     os::IAllocator * allocator,
     ArrayKind kind = ARRAY_WRAPPER
);
MoveArray(
     os::IAllocator * allocator
);
MoveArray(
     const MoveArray & array
);

List of Overloaded Member Functions

MoveArray ( ) Constructor.
MoveArray ( TTElemet *, size_t, os::IAllocator *, ArrayKind ) Constructor.
MoveArray ( size_t, os::IAllocator *, ArrayKind ) Constructor.
MoveArray ( os::IAllocator * ) Constructor.
MoveArray ( const MoveArray & ) Moves an element from the copy source.

Description of MoveArray ( )

This is the default constructor. Functions as a fixed-length array of size 0. False is returned if instances created with this constructor are included in a conditional if statement.

Description of MoveArray ( TTElemet *, size_t, os::IAllocator *, ArrayKind )

Memory passed to this contructor is freed by a destructor. If kind is set to ARRAY_VARIABILITY, a function for automatically increasing the array size is enabled. Memory is secured internally when the array size is increased automatically. If internal allocation of memory is inappropriate, be sure to set kind to ARRAY_WRAPPER. Also, memory is not freed by the destructor if allocator is set to 0.

Description of MoveArray ( size_t, os::IAllocator *, ArrayKind )

This constructor calls on an allocator to allocate memory of the specified size. If kind is set to ARRAY_VARIABILITY, a function for automatically increasing the array size is enabled. Memory is secured internally when the array size is increased automatically. If internal allocation of memory is inappropriate, be sure to set kind to ARRAY_WRAPPER.

Description of MoveArray ( os::IAllocator * )

This MoveArray constructor automatically increases the memory size. Memory is secured internally when the array size is increased automatically.

Description of MoveArray ( const MoveArray & )

Moves an element from the copy source.


CONFIDENTIAL