![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
Diff: RTno/SequenceFloat.h
- Revision:
- 0:b14546a3cfab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RTno/SequenceFloat.h Fri Jul 29 11:23:06 2011 +0000 @@ -0,0 +1,27 @@ +/******************************************* + * SequenceFloat.h + * @author Yuki Suga + * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010. + * @license LGPLv3 + *****************************************/ + +#ifndef SEQUENCE_FLOAT_HEADER_INCLUDED +#define SEQUENCE_FLOAT_HEADER_INCLUDED + +class SequenceFloat : public SequenceDataType +{ + private: + float* m_pData; + public: + SequenceFloat() : SequenceDataType((void**)&m_pData) { + + } + ~SequenceFloat(){} + virtual int SizeofData() { return 4; } + float& operator[](int index) { + return m_pData[index]; + } + +}; + +#endif