OscSinCos.h Example File
multimedia/spectrum/3rdparty/fftreal/OscSinCos.h
#if ! defined (OscSinCos_HEADER_INCLUDED)
#define OscSinCos_HEADER_INCLUDED
#if defined (_MSC_VER)
#pragma once
#pragma warning (4 : 4250) // "Inherits via dominance."
#endif
#include "def.h"
template <class T>
class OscSinCos
{
public:
typedef T DataType;
OscSinCos ();
FORCEINLINE void
set_step (double angle_rad);
FORCEINLINE DataType
get_cos () const;
FORCEINLINE DataType
get_sin () const;
FORCEINLINE void
step ();
FORCEINLINE void
clear_buffers ();
protected:
private:
DataType _pos_cos;
DataType _pos_sin;
DataType _step_cos;
DataType _step_sin;
private:
OscSinCos (const OscSinCos &other);
OscSinCos & operator = (const OscSinCos &other);
bool operator == (const OscSinCos &other);
bool operator != (const OscSinCos &other);
};
#include "OscSinCos.hpp"
#endif // OscSinCos_HEADER_INCLUDED