Lunchbox
1.10.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
visitorResult.h
1
2
/* Copyright (c) 2009-2013, Stefan Eilemann <eile@equalizergraphics.com>
3
*
4
* This file is part of Lunchbox <https://github.com/Eyescale/Lunchbox>
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 LUNCHBOX_VISITORRESULT_H
21
#define LUNCHBOX_VISITORRESULT_H
22
23
#include <
lunchbox/types.h
>
24
#include <iostream>
25
26
namespace
lunchbox
27
{
29
enum
VisitorResult
30
{
31
TRAVERSE_CONTINUE
,
32
TRAVERSE_TERMINATE
,
33
TRAVERSE_PRUNE
34
};
35
36
inline
std::ostream&
operator <<
( std::ostream& os,
37
const
VisitorResult
& result )
38
{
39
switch
( result )
40
{
41
case
TRAVERSE_CONTINUE
:
return
os <<
"continue"
;
42
case
TRAVERSE_TERMINATE
:
return
os <<
"terminate"
;
43
case
TRAVERSE_PRUNE
:
return
os <<
"prune"
;
44
default
:
return
os <<
"ERROR"
;
45
}
46
}
47
}
48
#endif // LUNCHBOX_VISITORRESULT_H
types.h
Basic type definitions not provided by the operating system.
lunchbox::TRAVERSE_CONTINUE
continue the traversal
Definition:
visitorResult.h:31
lunchbox::VisitorResult
VisitorResult
The result code from any visit operation.
Definition:
visitorResult.h:29
lunchbox::TRAVERSE_TERMINATE
abort the traversal
Definition:
visitorResult.h:32
lunchbox::operator<<
std::ostream & operator<<(std::ostream &os, const Array< T > &array)
Pretty-print all members of the array.
Definition:
array.h:47
lunchbox::TRAVERSE_PRUNE
do not traverse current entity downwards
Definition:
visitorResult.h:33
install
include
lunchbox
visitorResult.h
Generated on Wed Oct 1 2014 15:18:14 for Lunchbox by
1.8.6