![](/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
Diff: vector.cpp
- Revision:
- 109:a5b8264ffbbc
- Parent:
- 89:0fe315117b00
- Child:
- 119:ee6a53069455
diff -r 18a3702650f3 -r a5b8264ffbbc vector.cpp --- a/vector.cpp Wed Mar 18 13:33:54 2015 +0000 +++ b/vector.cpp Tue Apr 07 14:27:44 2015 +0000 @@ -63,4 +63,25 @@ // return( NULL ); //} -int Vector::size(){ return this->elements; } \ No newline at end of file +int Vector::size(){ return this->elements; } + +int Vector::print_yourself ( void ) +{ + send_msg (""); + send_msg ("Elements :: %d ( %p )", this->elements, &( this->elements ) ); + send_msg ("Values ::\r\n"); + + if( this->elements == 0 ) + { + send_msg ("Objects :: %p", this->objects ); + } + else + { + for( register int i = 0; i < this->elements; i++ ) + { + send_msg ("[ %i ] :: %p", i, ( this->objects + i ) ); + } + } + send_msg (""); + return ( sizeof( Vector ) ); +} \ No newline at end of file