6 #ifndef INCLUDED_IMF_ARRAY_H
7 #define INCLUDED_IMF_ARRAY_H
68 operator T* () {
return _data; }
69 operator const T* ()
const {
return _data; }
83 void resizeErase (
long size);
84 void resizeEraseUnsafe (
long size);
90 long size ()
const {
return _size; }
110 Array2D (
long sizeX,
long sizeY);
117 T* operator[] (
long x);
118 const T* operator[] (
long x)
const;
132 void resizeErase (
long sizeX,
long sizeY);
133 void resizeEraseUnsafe (
long sizeX,
long sizeY);
140 long width ()
const {
return _sizeY; }
186 : _sizeX (sizeX), _sizeY (sizeY), _data (new
T[sizeX * sizeY])
200 return _data + x * _sizeY;
207 return _data + x * _sizeY;
214 T* tmp =
new T[sizeX * sizeY];
229 _data =
new T[sizeX * sizeY];
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
void resizeEraseUnsafe(long sizeX, long sizeY)
void resizeErase(long sizeX, long sizeY)
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER class IMF_EXPORT_TEMPLATE_TYPE Array
#define IMF_EXPORT_TEMPLATE_TYPE
LeafData & operator=(const LeafData &)=delete
class IMF_EXPORT_TEMPLATE_TYPE Array2D
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
void resizeErase(long size)
void resizeEraseUnsafe(long size)