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.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
vector.h@1:a1758104fa1d, 2014-09-10 (annotated)
- Committer:
- klauss
- Date:
- Wed Sep 10 12:50:57 2014 +0000
- Revision:
- 1:a1758104fa1d
- Parent:
- 0:4d17cd9c8f9d
This is a test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| klauss | 0:4d17cd9c8f9d | 1 | #ifndef __VECTOR_H__ |
| klauss | 0:4d17cd9c8f9d | 2 | #define __VECTOR_H__ |
| klauss | 0:4d17cd9c8f9d | 3 | |
| klauss | 0:4d17cd9c8f9d | 4 | #include <stdlib.h> |
| klauss | 0:4d17cd9c8f9d | 5 | #include "object.h" |
| klauss | 0:4d17cd9c8f9d | 6 | |
| klauss | 0:4d17cd9c8f9d | 7 | class Vector{ |
| klauss | 0:4d17cd9c8f9d | 8 | private: |
| klauss | 0:4d17cd9c8f9d | 9 | Object **objects; |
| klauss | 0:4d17cd9c8f9d | 10 | int elements; |
| klauss | 0:4d17cd9c8f9d | 11 | |
| klauss | 0:4d17cd9c8f9d | 12 | public: |
| klauss | 0:4d17cd9c8f9d | 13 | Vector(); |
| klauss | 0:4d17cd9c8f9d | 14 | ~Vector(); |
| klauss | 0:4d17cd9c8f9d | 15 | void add( Object * e ); |
| klauss | 0:4d17cd9c8f9d | 16 | Object * get_element( int position ); |
| klauss | 0:4d17cd9c8f9d | 17 | void remove_element( int position ); |
| klauss | 0:4d17cd9c8f9d | 18 | int find_element( Object * e ); |
| klauss | 0:4d17cd9c8f9d | 19 | Object * find_element( int ext, int port ); |
| klauss | 0:4d17cd9c8f9d | 20 | int size(); |
| klauss | 0:4d17cd9c8f9d | 21 | }; |
| klauss | 0:4d17cd9c8f9d | 22 | #endif |