CoreLinux++  0.4.32
Visitor.hpp
1 #if !defined (__VISITOR_HPP)
2 #define __VISITOR_HPP
3 
4 /*
5  CoreLinux++
6  Copyright (C) 1999,2000 CoreLinux Consortium
7 
8  The CoreLinux++ Library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version.
12 
13  The CoreLinux++ Library Library is distributed in the hope that it will
14  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public
19  License along with the GNU C Library; see the file COPYING.LIB. If not,
20  write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  Boston, MA 02111-1307, USA.
22 */
23 
24 #if !defined(__COMMON_HPP)
25 #include <Common.hpp>
26 #endif
27 
28 
29 namespace corelinux
30 {
31 
32  DECLARE_CLASS( Visitor );
33 
41  class Visitor
42  {
43  public:
44 
46 
47  Visitor( void );
48 
54 
56 
57  virtual ~Visitor( void );
58 
59  //
60  // Operator overloads
61  //
69 
76  bool operator==( VisitorCref ) const;
77 
84  bool operator!=( VisitorCref ) const;
85 
86  };
87 
88 }
89 
90 #endif // if !defined(__VISITOR_HPP)
91 
92 /*
93  Common rcs information do not modify
94  $Author: frankc $
95  $Revision: 1.1 $
96  $Date: 2000/05/12 03:27:47 $
97  $Locker: $
98 */
99 
100 
VisitorRef operator=(VisitorCref)
Assignment operator overload.
Definition: Visitor.cpp:62
virtual ~Visitor(void)
Virtual Destructor.
Definition: Visitor.cpp:53
bool operator==(VisitorCref) const
Equality operator overload.
Definition: Visitor.cpp:71
Represent an operation to be performed on the components of an object structure.
Definition: Visitor.hpp:41
bool operator!=(VisitorCref) const
Non-equality operator overload.
Definition: Visitor.cpp:90
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
Visitor(void)
Default Constructor.
Definition: Visitor.cpp:35

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium