Collage  1.7.0
High-performance C++ library for developing object-oriented distributed applications.
nodeType.h
1 
2 /* Copyright (c) 2007-2013, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This file is part of Collage <https://github.com/Eyescale/Collage>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef CO_NODETYPE_H
21 #define CO_NODETYPE_H
22 
23 #include <iostream>
24 
25 namespace co
26 {
29 {
32  NODETYPE_USER = 0x100
33 };
34 
35 inline std::ostream& operator<<(std::ostream& os, const NodeType& type)
36 {
37  return os << static_cast<unsigned>(type);
38 }
39 }
40 
41 #endif // CO_NODETYPE_H
Application-specific types.
Definition: nodeType.h:32
NodeType
Node types to identify connecting nodes.
Definition: nodeType.h:28
Invalid type.
Definition: nodeType.h:30
Object-oriented network library.
Definition: barrier.h:27
A plain co::Node.
Definition: nodeType.h:31