Milena (Olena)  User documentation 2.0a Id
init.hxx
00001 // Copyright (C) 2008, 2009, 2011 EPITA Research and Development
00002 // Laboratory (LRDE)
00003 //
00004 // This file is part of Olena.
00005 //
00006 // Olena is free software: you can redistribute it and/or modify it under
00007 // the terms of the GNU General Public License as published by the Free
00008 // Software Foundation, version 2 of the License.
00009 //
00010 // Olena is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Olena.  If not, see <http://www.gnu.org/licenses/>.
00017 //
00018 // As a special exception, you may use this file as part of a free
00019 // software project without restriction.  Specifically, if other files
00020 // instantiate templates or use macros or inline functions from this
00021 // file, or you compile this file and link it with other files to produce
00022 // an executable, this file does not by itself cause the resulting
00023 // executable to be covered by the GNU General Public License.  This
00024 // exception does not however invalidate any other reasons why the
00025 // executable file might be covered by the GNU General Public License.
00026 
00027 #ifndef MLN_CORE_ROUTINE_INIT_HXX
00028 # define MLN_CORE_ROUTINE_INIT_HXX
00029 
00032 // All overloaded "mln::init" routines have to be declared in
00033 // the present file.  It allows for *deferred* use of these routines.
00034 
00035 namespace mln
00036 {
00037 
00038   // Forward declarations.
00039   namespace fun { namespace i2v { template <typename T> class array; } }
00040   namespace pw { namespace internal { template <typename F, typename S, typename E> class image_base; } }
00041   namespace pw { template <typename F, typename S> class image; }
00042   template <typename I, typename F> struct image_if;
00043 
00044 
00045 
00049   template <typename F, typename S, typename E, typename J>
00050   void init_(tag::image_t, pw::image<F,S>& target, const Image<J>& model);
00051 
00055   template <typename P, typename V, typename G, typename J>
00056   void init_(tag::image_t, vertex_image<P,V,G>& target, const Image<J>& model);
00057 
00061   template <typename I, typename F, typename J>
00062   void init_(tag::image_t, image_if<I,F>& target, const J& model);
00063 
00064 
00068   template <typename F, typename S, typename E>
00069   void init_(tag::function_t, F& f, const pw::internal::image_base<F,S,E>& model);
00070 
00074   template <typename I, typename F>
00075   void init_(tag::function_t, F& f, const image_if<I,F>& model);
00076 
00080   template <typename T1, typename T2>
00081   void init_(tag::function_t,
00082              fun::i2v::array<T1>&         f,
00083              const fun::i2v::array<T2>&   model);
00084 
00085 } // end of namespace mln
00086 
00087 #endif // ! MLN_CORE_ROUTINE_INIT_HXX
 All Classes Namespaces Functions Variables Typedefs Enumerator