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-05
- Revision:
- 2:92576523c23e
- Parent:
- 1:49758f1e1317
- Child:
- 3:8e9f85814809
- Child:
- 9:68d882e457c5
File content as of revision 2:92576523c23e:
#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;
int array_size;
};
#include "linearArray.hpp"
#endif /* LINEAR_ARRAY_H */