Rev Author Line No. Line
178 kaklik 1 #ifndef __MIMASEXTERNALIMAGEFUNC
2 # error "Do not include this file directly."
3 #endif
4 #ifndef __MIMASINTERNALIMAGEFUNC
5 # error "Do not include this file directly."
6 #endif
7 #ifndef __MIMASFUNCTIONOBJECT
8 # error "Do not include this file directly."
9 #endif
10  
11 namespace mimas {
12  
13 /** @addtogroup arrayOp
14 @{ */
15 ///
16 template <
17 typename T, typename TPtr
18 >
19 image_ref< T > &__MIMASINTERNALIMAGEFUNC( const const_image_ref< T, TPtr > &a )
20 {
21 return image_apply( a, a, _multi_help1< T, T, __MIMASFUNCTIONOBJECT< T > >
22 ( __MIMASFUNCTIONOBJECT< T >() ) );
23 };
24  
25 ///
26 template <
27 typename T, typename TPtr
28 >
29 image< T > __MIMASEXTERNALIMAGEFUNC( const const_image_ref< T, TPtr > &a )
30 {
31 return image_func< T >( a, __MIMASFUNCTIONOBJECT< T >() );
32 };
33  
34 ///@}
35  
36 }
37  
38 #undef __MIMASEXTERNALIMAGEFUNC
39 #undef __MIMASINTERNALIMAGEFUNC
40 #undef __MIMASFUNCTIONOBJECT