ldas-tools-filters
2.6.5
|
This class implements a trivial exception-safe C-style array. More...
#include <basic_array.hh>
Public Member Functions | |
basic_array (const size_t size) | |
Construct a basic_array. More... | |
~basic_array () | |
Destructor. More... | |
operator const T * () const | |
Implicit cast to a const T*. More... | |
operator T* () | |
Implicit cast to a T*. More... | |
const T & | operator[] (const size_t k) const |
Return a const reference to the k'th element. More... | |
T & | operator[] (const size_t k) |
Return a modifiable reference to the k'th element. More... | |
T * | release () |
Transfer ownership of internal data. More... | |
basic_array (const size_t size) | |
Construct a basic_array. More... | |
~basic_array () | |
Destructor. More... | |
operator const T * () const | |
Implicit cast to a const T*. More... | |
operator T* () | |
Implicit cast to a T*. More... | |
const T & | operator[] (const size_t k) const |
Return a const reference to the k'th element. More... | |
T & | operator[] (const size_t k) |
Return a modifiable reference to the k'th element. More... | |
T * | release () |
Transfer ownership of internal data. More... | |
basic_array (const size_t size) | |
Construct a basic_array. More... | |
~basic_array () | |
Destructor. More... | |
operator const T * () const | |
Implicit cast to a const T*. More... | |
operator T* () | |
Implicit cast to a T*. More... | |
const T & | operator[] (const size_t k) const |
Return a const reference to the k'th element. More... | |
T & | operator[] (const size_t k) |
Return a modifiable reference to the k'th element. More... | |
T * | release () |
Transfer ownership of internal data. More... | |
Private Member Functions | |
basic_array () | |
basic_array (const basic_array &) | |
basic_array & | operator= (const basic_array &) |
basic_array () | |
basic_array (const basic_array &) | |
basic_array & | operator= (const basic_array &) |
basic_array () | |
basic_array (const basic_array &) | |
basic_array & | operator= (const basic_array &) |
Private Attributes | |
T * | m_ptr |
This class implements a trivial exception-safe C-style array.
|
inline |
Construct a basic_array.
[in] | size | size of array to be constructed |
|
inline |
Destructor.
|
private |
|
private |
|
inline |
Construct a basic_array.
[in] | size | size of array to be constructed |
|
inline |
Destructor.
|
private |
|
private |
|
inline |
Construct a basic_array.
[in] | size | size of array to be constructed |
|
inline |
Destructor.
|
private |
|
private |
|
inline |
Implicit cast to a const T*.
|
inline |
Implicit cast to a const T*.
|
inline |
Implicit cast to a const T*.
|
inline |
Implicit cast to a T*.
|
inline |
Implicit cast to a T*.
|
inline |
Implicit cast to a T*.
|
private |
|
private |
|
private |
|
inline |
Return a const reference to the k'th element.
|
inline |
Return a const reference to the k'th element.
|
inline |
Return a const reference to the k'th element.
|
inline |
Return a modifiable reference to the k'th element.
|
inline |
Return a modifiable reference to the k'th element.
|
inline |
Return a modifiable reference to the k'th element.
|
inline |
Transfer ownership of internal data.
|
inline |
Transfer ownership of internal data.
|
inline |
Transfer ownership of internal data.
|
private |