DGtal  1.4.2
Duality.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 Duality.ih
19  * @author Pierre Gueth (\c pierre.gueth@liris.cnrs.fr )
20  * Laboratoire d'InfoRmatique en Image et Systemes d'information - LIRIS (CNRS, UMR 5205), CNRS, France
21  *
22  * @date 2014/03/26
23  *
24  * Implementation of inline methods defined in Duality.h
25  *
26  * This file is part of the DGtal library.
27  */
28 
29 ///////////////////////////////////////////////////////////////////////////////
30 // IMPLEMENTATION of inline methods.
31 ///////////////////////////////////////////////////////////////////////////////
32 
33 ///////////////////////////////////////////////////////////////////////////////
34 // Implementation of inline methods //
35 
36 ///////////////////////////////////////////////////////////////////////////////
37 // Implementation of inline functions and external operators //
38 
39 inline
40 std::ostream&
41 DGtal::operator<<(std::ostream& os, const DGtal::Duality& duality)
42 {
43  switch (duality)
44  {
45  case PRIMAL:
46  os << "primal";
47  break;
48  case DUAL:
49  os << "dual";
50  break;
51  }
52  return os;
53 }
54 
55 // //
56 ///////////////////////////////////////////////////////////////////////////////
57 
58