ivl 679
|
00001 /* This file is part of the ivl C++ library <http://image.ntua.gr/ivl>. 00002 A C++ template library extending syntax towards mathematical notation. 00003 00004 Copyright (C) 2012 Yannis Avrithis <iavr@image.ntua.gr> 00005 Copyright (C) 2012 Kimon Kontosis <kimonas@image.ntua.gr> 00006 00007 ivl is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU Lesser General Public License 00009 version 3 as published by the Free Software Foundation. 00010 00011 Alternatively, you can redistribute it and/or modify it under the terms 00012 of the GNU General Public License version 2 as published by the Free 00013 Software Foundation. 00014 00015 ivl is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00018 See the GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 and a copy of the GNU Lesser General Public License along 00022 with ivl. If not, see <http://www.gnu.org/licenses/>. */ 00023 00024 #ifndef IVL_ARRAY_DETAILS_COMMON_FWD_DECL_HPP 00025 #define IVL_ARRAY_DETAILS_COMMON_FWD_DECL_HPP 00026 00027 namespace ivl { 00028 00029 00030 //forward declarations 00031 00032 00033 //class size_range; 00034 class index_array; 00035 struct index_array_all_type; 00036 00037 template<class T> class range; 00038 00039 /*template<class T, class S> class slice_array; 00040 template<class T, class S, bool is_const> class resizable_slice_array; 00041 template<class T, class S> class indirect_array; 00042 template<class T, class S, bool is_const> class resizable_indirect_array; 00043 template<class T, class S> class mask_array; 00044 template<class T, class S, bool is_const> class resizable_mask_array; 00045 */ 00046 template<class T, bool B> class all_array; 00047 00048 template<class T, class S, bool C> class sub_array; 00049 00050 00051 template<class T, class S> class array; 00052 00053 00054 00055 // forward declarations 00056 00058 typedef array<size_t, mem> size_array; 00059 00061 typedef array<bool, mem> bool_array; 00062 00063 00064 00065 template <class T, class S, class J, class D> 00066 void copy(array<T, S>& out, const array<J, D>& in); 00067 00068 template <class T, class S, class J, class D> 00069 void copy_out(array<T, S>& out, const array<J, D>& in); 00070 00071 template <class T, class S, class J, class D> 00072 void copy_n(array<T, S>& out, const array<J, D>& in, int n); 00073 00074 template <class T, class S, class J> 00075 void copy(array<T, S>& out, const J* it_src); 00076 00077 template <class T, class S> 00078 void copy(array<T, S>& out, const T& val, 00079 types::term as_element = types::term()); 00080 00081 00082 //forward declaration of function 00083 template <class T, class S, class D> 00084 const bool isequal(const array<T, S>& a, const array<T, D>& b); 00085 00086 00087 template <class T, class S> 00088 std::ostream& print(std::ostream& os, const ivl::array<T, S>& in); 00089 00090 00091 } /* namespace ivl */ 00092 00093 #endif // IVL_ARRAY_DETAILS_COMMON_FWD_DECL_HPP