Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: RTno/SequenceDouble.h
- Revision:
- 0:a70ea71286b6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/RTno/SequenceDouble.h Fri Jul 29 11:20:55 2011 +0000
@@ -0,0 +1,27 @@
+/*******************************************
+ * SequenceDouble.h
+ * @author Yuki Suga
+ * @copyright Yuki Suga (ysuga.net) Nov, 10th, 2010.
+ * @license LGPLv3
+ *****************************************/
+
+#ifndef SEQUENCE_DOUBLE_HEADER_INCLUDED
+#define SEQUENCE_DOUBLE_HEADER_INCLUDED
+
+class SequenceDouble : public SequenceDataType
+{
+ private:
+ double* m_pData;
+ public:
+ SequenceDouble() : SequenceDataType((void**)&m_pData) {
+
+ }
+ ~SequenceDouble(){}
+ virtual int SizeofData() { return 4; }
+
+ double& operator[](int index) {
+ return m_pData[index];
+ }
+};
+
+#endif