Debian Codegraph @

podofo/3rdparty/tclap/Visitor.h

raw symbols SCIP
1 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
2
3 /******************************************************************************
4 *
5 * file: Visitor.h
6 *
7 * Copyright (c) 2003, Michael E. Smoot .
8 * Copyright (c) 2017, Google LLC
9 * All rights reserved.
10 *
11 * See the file COPYING in the top directory of this distribution for
12 * more information.
13 *
14 * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 *
22 *****************************************************************************/
23
24 #ifndef TCLAP_VISITOR_H
25 #define TCLAP_VISITOR_H
26
27 namespace TCLAP {
28
29 /**
30 * A base class that defines the interface for visitors.
31 */
32 class Visitor {
33 public:
34 /**
35 * Constructor. Does nothing.
36 */
37 Visitor() {}
38
39 /**
40 * Destructor. Does nothing.
41 */
42 virtual ~Visitor() {}
43
44 /**
45 * This method (to implemented by children) will be
46 * called when the visitor is visited.
47 */
48 virtual void visit() = 0;
49 };
50 } // namespace TCLAP
51
52 #endif // TCLAP_VISITOR_H