Dependencies:   mbed

RTno/SequenceFloat.h

Committer:
nucho
Date:
2011-08-01
Revision:
1:ab3c75cf5906
Parent:
0:a70ea71286b6

File content as of revision 1:ab3c75cf5906:

/*******************************************
 * 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