DynArray.h Example File
multimedia/spectrum/3rdparty/fftreal/DynArray.h
#if ! defined (DynArray_HEADER_INCLUDED)
#define DynArray_HEADER_INCLUDED
#if defined (_MSC_VER)
#pragma once
#pragma warning (4 : 4250) // "Inherits via dominance."
#endif
template <class T>
class DynArray
{
public:
typedef T DataType;
DynArray ();
explicit DynArray (long size);
~DynArray ();
inline long size () const;
inline void resize (long size);
inline const DataType &
operator [] (long pos) const;
inline DataType &
operator [] (long pos);
protected:
private:
DataType * _data_ptr;
long _len;
private:
DynArray (const DynArray &other);
DynArray & operator = (const DynArray &other);
bool operator == (const DynArray &other);
bool operator != (const DynArray &other);
};
#include "DynArray.hpp"
#endif // DynArray_HEADER_INCLUDED