![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
vector.h@0:4d17cd9c8f9d, 2014-09-09 (annotated)
- Committer:
- klauss
- Date:
- Tue Sep 09 20:01:24 2014 +0000
- Revision:
- 0:4d17cd9c8f9d
- Child:
- 4:de46f0d9b14d
20140726 copy
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 |