csSafeCopyArray< T, Allocator, CapacityHandler > Class Template Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
csSafeCopyArray< T, Allocator, CapacityHandler > Class Template Reference
Containers

Convenience class to make a version of csArray that does a safe-copy in case of reallocation of the array. More...

`#include <csutil/array.h>`

Inheritance diagram for csSafeCopyArray< T, Allocator, CapacityHandler >:

List of all members.

## Public Member Functions
| csSafeCopyArray (size_t limit=0, const CapacityHandler &ch=CapacityHandler())
| Initialize object to hold initially `limit` elements, and increase storage by `threshold` each time the upper bound is exceeded.

## Detailed Description

### template<class T, class Allocator = CS::Memory::AllocatorMalloc, class CapacityHandler = CS::Container::ArrayCapacityDefault>
class csSafeCopyArray< T, Allocator, CapacityHandler >

Convenience class to make a version of csArray that does a safe-copy in case of reallocation of the array.

Useful for weak references.

Definition at line 1379 of file array.h.

## Constructor & Destructor Documentation

template<class T, class Allocator = CS::Memory::AllocatorMalloc, class CapacityHandler = CS::Container::ArrayCapacityDefault>

csSafeCopyArray< T, Allocator, CapacityHandler >::csSafeCopyArray | ( | size_t | limit = `0`,
|  | const CapacityHandler & | ch = `CapacityHandler()`
| ) |  | `[inline]`

Initialize object to hold initially `limit` elements, and increase storage by `threshold` each time the upper bound is exceeded.

Definition at line 1389 of file array.h.

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

- csutil/array.h