Array.h Example File
multimedia/spectrum/3rdparty/fftreal/Array.h
#if ! defined (Array_HEADER_INCLUDED)
#define Array_HEADER_INCLUDED
#if defined (_MSC_VER)
#pragma once
#pragma warning (4 : 4250) // "Inherits via dominance."
#endif
template <class T, long LEN>
class Array
{
public:
typedef T DataType;
Array ();
inline const DataType &
operator [] (long pos) const;
inline DataType &
operator [] (long pos);
static inline long
size ();
protected:
private:
DataType _data_arr [LEN];
private:
Array (const Array &other);
Array & operator = (const Array &other);
bool operator == (const Array &other);
bool operator != (const Array &other);
};
#include "Array.hpp"
#endif // Array_HEADER_INCLUDED