mt
Main Page
Modules
Classes
Files
File List
All
Classes
Files
Functions
Enumerations
Groups
Pages
mt
direction_type.h
1
/***************************************************************************
2
* Copyright (C) 2006 by Adolfo Rodriguez *
3
* adolfo.rodriguez@upc.edu *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19
***************************************************************************/
20
22
23
// HEADER GUARD
24
#ifndef MT_DIRECTION_TYPE_H
25
#define MT_DIRECTION_TYPE_H
26
27
// C++ STANDARD HEADERS
28
#include <iostream>
29
30
32
33
namespace
mt
34
{
35
36
// TYPES
37
39
enum
DirectionType
40
{
41
DIRECTED,
42
UNDIRECTED
43
};
44
45
47
48
// OPERATORS
49
50
std::ostream& operator<<(std::ostream& os,
51
const
DirectionType& type);
52
53
55
56
inline
std::ostream& operator<<(std::ostream& os,
57
const
DirectionType& type)
58
{
59
if
(type == DIRECTED)
60
{
61
os <<
"directed"
;
62
}
63
else
64
{
65
os <<
"undirected"
;
66
}
67
68
return
os;
69
}
70
71
}
// mt
72
73
#endif // MT_DIRECTION_TYPE_H
Generated on Wed Oct 23 2013 10:30:12 for mt by
1.8.1.2