DGtal  0.9.2
FunctorOnCells.ih
1 /**
2  * This program is free software: you can redistribute it and/or modify
3  * it under the terms of the GNU Lesser General Public License as
4  * published by the Free Software Foundation, either version 3 of the
5  * License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program. If not, see <http://www.gnu.org/licenses/>.
14  *
15  **/
16 
17 /**
18  * @file FunctorOnCells.ih
19  * @author Jeremy Levallois (\c jeremy.levallois@liris.cnrs.fr )
20  * Laboratoire d'InfoRmatique en Image et Systèmes d'information - LIRIS (CNRS, UMR 5205), INSA-Lyon, France
21  * LAboratoire de MAthématiques - LAMA (CNRS, UMR 5127), Université de Savoie, France
22  *
23  * @date 2012/05/11
24  *
25  * Implementation of inline methods defined in FunctorOnCells.h
26  *
27  * This file is part of the DGtal library.
28  */
29 
30 
31 //////////////////////////////////////////////////////////////////////////////
32 #include <cstdlib>
33 //////////////////////////////////////////////////////////////////////////////
34 
35 ///////////////////////////////////////////////////////////////////////////////
36 // IMPLEMENTATION of inline methods.
37 ///////////////////////////////////////////////////////////////////////////////
38 
39 ///////////////////////////////////////////////////////////////////////////////
40 // ----------------------- Standard services ------------------------------
41 
42 /**
43  * Destructor.
44  */
45 template <typename TF, typename TKS>
46 inline
47 DGtal::FunctorOnCells<TF, TKS>::~FunctorOnCells()
48 {
49 }
50 
51 ///////////////////////////////////////////////////////////////////////////////
52 // Interface - public :
53 
54 /**
55  * Writes/Displays the object on an output stream.
56  * @param out the output stream where the object is written.
57  */
58 template <typename TF, typename TKS>
59 inline
60 void
61 DGtal::FunctorOnCells<TF, TKS>::selfDisplay ( std::ostream & out ) const
62 {
63  out << "[FunctorOnCells]";
64 }
65 
66 /**
67  * Checks the validity/consistency of the object.
68  * @return 'true' if the object is valid, 'false' otherwise.
69  */
70 template <typename TF, typename TKS>
71 inline
72 bool
73 DGtal::FunctorOnCells<TF, TKS>::isValid() const
74 {
75  return true;
76 }
77 
78 
79 
80 ///////////////////////////////////////////////////////////////////////////////
81 // Implementation of inline functions //
82 
83 template <typename TF, typename TKS>
84 inline
85 std::ostream&
86 DGtal::operator<< ( std::ostream & out,
87  const FunctorOnCells<TF, TKS> & object )
88 {
89  object.selfDisplay( out );
90  return out;
91 }
92 
93 // //
94 ///////////////////////////////////////////////////////////////////////////////
95 
96