Main MRPT website > C++ reference for MRPT 1.5.3
Visitor.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 /******************************************************************************
11  *
12  * file: Visitor.h
13  *
14  * Copyright (c) 2003, Michael E. Smoot .
15  * All rights reverved.
16  *
17  * See the file COPYING in the top directory of this distribution for
18  * more information.
19  *
20  * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
21  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26  * DEALINGS IN THE SOFTWARE.
27  *
28  *****************************************************************************/
29 
30 
31 #ifndef TCLAP_VISITOR_H
32 #define TCLAP_VISITOR_H
33 
34 namespace TCLAP {
35 
36 /**
37  * A base class that defines the interface for visitors.
38  */
39 class Visitor
40 {
41  public:
42 
43  /**
44  * Constructor. Does nothing.
45  */
46  Visitor() { }
47 
48  /**
49  * Destructor. Does nothing.
50  */
51  virtual ~Visitor() { }
52 
53  /**
54  * Does nothing. Should be overridden by child.
55  */
56  virtual void visit() { }
57 };
58 
59 }
60 
61 #endif
virtual ~Visitor()
Destructor.
Definition: Visitor.h:51
Definition: Arg.h:44
virtual void visit()
Does nothing.
Definition: Visitor.h:56
A base class that defines the interface for visitors.
Definition: Visitor.h:39
Visitor()
Constructor.
Definition: Visitor.h:46



Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Tue Aug 22 01:03:35 UTC 2017