2 * @author Carlos O'Ryan
4 #include "mock_array.hpp"
7 TAO::Array_Traits
<my_array
,my_array_slice
,my_array_tag
>::alloc()
13 TAO::Array_Traits
<my_array
,my_array_slice
,my_array_tag
>::free(
14 my_array_slice
* _tao_slice
)
20 TAO::Array_Traits
<my_array
,my_array_slice
,my_array_tag
>::dup(
21 my_array_slice
const * _tao_source
)
23 // TODO exception safety
24 my_array_slice
* _tao_destination
= alloc();
25 copy(_tao_destination
, _tao_source
);
26 return _tao_destination
;
30 TAO::Array_Traits
<my_array
,my_array_slice
,my_array_tag
>::copy(
31 my_array_slice
* _tao_destination
,
32 my_array_slice
const * _tao_source
)
35 _tao_source
, _tao_source
+ sizeof(my_array
)/sizeof(my_array_slice
),
40 TAO::Array_Traits
<my_array
,my_array_slice
,my_array_tag
>::
42 my_array_slice
* _tao_slice
)
45 _tao_slice
, _tao_slice
+ sizeof(my_array
)/sizeof(my_array_slice
),