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.
linearArray.h
- Committer:
- UHSLMarcus
- Date:
- 2016-10-04
- Revision:
- 1:49758f1e1317
- Parent:
- 0:23c500341c13
- Child:
- 2:92576523c23e
File content as of revision 1:49758f1e1317:
#ifndef LINEAR_ARRAY_H
#define LINEAR_ARRAY_H
#include "mbed.h"
template <class type>
class LinearArray {
public:
LinearArray(int size);
~LinearArray();
int add(type item);
void remove(int index);
int size();
int elements();
bool hasSpace();
type& operator[](int index);
private:
type* array;
int elem_count;
};
#include "linearArray.hpp"
#endif /* LINEAR_ARRAY_H */