![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
RTno/SequenceFloat.h@1:b96a6ff9bb6f, 2011-08-01 (annotated)
- Committer:
- nucho
- Date:
- Mon Aug 01 14:45:58 2011 +0000
- Revision:
- 1:b96a6ff9bb6f
- Parent:
- 0:b14546a3cfab
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nucho | 0:b14546a3cfab | 1 | /******************************************* |
nucho | 0:b14546a3cfab | 2 | * SequenceFloat.h |
nucho | 0:b14546a3cfab | 3 | * @author Yuki Suga |
nucho | 0:b14546a3cfab | 4 | * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010. |
nucho | 0:b14546a3cfab | 5 | * @license LGPLv3 |
nucho | 0:b14546a3cfab | 6 | *****************************************/ |
nucho | 0:b14546a3cfab | 7 | |
nucho | 0:b14546a3cfab | 8 | #ifndef SEQUENCE_FLOAT_HEADER_INCLUDED |
nucho | 0:b14546a3cfab | 9 | #define SEQUENCE_FLOAT_HEADER_INCLUDED |
nucho | 0:b14546a3cfab | 10 | |
nucho | 0:b14546a3cfab | 11 | class SequenceFloat : public SequenceDataType |
nucho | 0:b14546a3cfab | 12 | { |
nucho | 0:b14546a3cfab | 13 | private: |
nucho | 0:b14546a3cfab | 14 | float* m_pData; |
nucho | 0:b14546a3cfab | 15 | public: |
nucho | 0:b14546a3cfab | 16 | SequenceFloat() : SequenceDataType((void**)&m_pData) { |
nucho | 0:b14546a3cfab | 17 | |
nucho | 0:b14546a3cfab | 18 | } |
nucho | 0:b14546a3cfab | 19 | ~SequenceFloat(){} |
nucho | 0:b14546a3cfab | 20 | virtual int SizeofData() { return 4; } |
nucho | 0:b14546a3cfab | 21 | float& operator[](int index) { |
nucho | 0:b14546a3cfab | 22 | return m_pData[index]; |
nucho | 0:b14546a3cfab | 23 | } |
nucho | 0:b14546a3cfab | 24 | |
nucho | 0:b14546a3cfab | 25 | }; |
nucho | 0:b14546a3cfab | 26 | |
nucho | 0:b14546a3cfab | 27 | #endif |