Schnek
datastream.hpp
1 /*
2  * datastream.hpp
3  *
4  * Created on: 23 Jan 2007
5  * Author: Holger Schmitz
6  * Email: holger@notjustphysics.com
7  *
8  * Copyright 2012 Holger Schmitz
9  *
10  * This file is part of Schnek.
11  *
12  * Schnek is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * Schnek is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with Schnek. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #include <iostream>
28 
29 #ifndef SCHNEK_DATASTREAM_H_
30 #define SCHNEK_DATASTREAM_H_
31 
32 #include "grid/array.hpp"
33 #include "grid/grid.hpp"
34 
39 template<
40  class T,
41  int length,
42  template<int> class CheckingPolicy
43 >
44 std::ostream &operator<<(std::ostream&, const schnek::Array<T,length,CheckingPolicy>&);
45 
50 template<
51  typename T,
52  template<int> class CheckingPolicy,
53  template<typename, int> class StoragePolicy
54 >
55 std::ostream &operator<<(std::ostream&, const schnek::Grid<T, 1, CheckingPolicy, StoragePolicy>&);
56 
62 template<
63  typename T,
64  template<int> class CheckingPolicy,
65  template<typename, int> class StoragePolicy
66 >
67 std::ostream &operator<<(std::ostream&, const schnek::Grid<T, 2, CheckingPolicy, StoragePolicy>&);
68 
75 template<
76  typename T,
77  template<int> class CheckingPolicy,
78  template<typename, int> class StoragePolicy
79 >
80 std::ostream &operator<<(std::ostream&, const schnek::Grid<T, 3, CheckingPolicy, StoragePolicy>&);
81 
88 template<
89  typename T,
90  template<int> class CheckingPolicy,
91  template<typename, int> class StoragePolicy
92 >
93 std::ostream &operator<<(std::ostream&, const schnek::Grid<T, 4, CheckingPolicy, StoragePolicy>&);
94 
95 
102 template<
103  typename T,
104  template<int> class CheckingPolicy,
105  template<typename, int> class StoragePolicy
106 >
107 std::ostream &operator<<(std::ostream&, const schnek::Grid<T, 5, CheckingPolicy, StoragePolicy>&);
108 
109 #include "datastream.t"
110 
111 
112 #endif // SCHNEK_DATASTREAM_H_