GUDHI C++ library
Navigation
Contact
GUDHI
Project
People
Keep in touch
Partners and Funding
Related projects
They are talking about us
Download
Licensing
Get the latest sources
Utils for Mac OSx
Utils for Win x64
Documentation
C++ documentation
C++ installation manual
Python documentation
Python installation manual
Utilities
Tutorials
Dockerfile
Interfaces
Null_output_iterator.h
1
/* This file is part of the Gudhi Library. The Gudhi library
2
* (Geometric Understanding in Higher Dimensions) is a generic C++
3
* library for computational topology.
4
*
5
* Author(s): Marc Glisse
6
*
7
* Copyright (C) 2017 Inria
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
*/
22
23
#ifndef NULL_OUTPUT_ITERATOR_H_
24
#define NULL_OUTPUT_ITERATOR_H_
25
26
#include <iterator>
27
28
namespace
Gudhi
{
29
31
struct
Null_output_iterator
{
32
typedef
std::output_iterator_tag iterator_category;
33
typedef
void
value_type;
34
typedef
void
difference_type;
35
typedef
void
pointer;
36
typedef
void
reference;
37
38
Null_output_iterator
& operator++() {
return
*
this
;}
39
Null_output_iterator
operator++(
int
) {
return
*
this
;}
40
struct
proxy {
41
template
<
class
T>
42
proxy& operator=(T&&){
return
*
this
;}
43
};
44
proxy operator*()
const
{
return
{};}
45
};
46
}
// namespace Gudhi
47
48
#endif // NULL_OUTPUT_ITERATOR_H_
Gudhi::Null_output_iterator
Definition:
Null_output_iterator.h:31
Gudhi
Definition:
SimplicialComplexForAlpha.h:26
GUDHI Version 2.2.0 - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. - Copyright : GPL v3
Generated on Thu Jun 14 2018 15:00:54 for GUDHI by
Doxygen
1.8.13