CoreLinux++  0.4.32
Identifier.hpp
1 #if !defined (__IDENTIFIER_HPP)
2 #define __IDENTIFIER_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 IN_COMMON_HPP
25  #error Identifier.hpp is included by Common.hpp only.
26 #endif
27 
28 namespace corelinux
29 {
30 
31  DECLARE_CLASS( Identifier );
32 
40  class Identifier : public CoreLinuxObject
41  {
42  public:
43 
45 
46  Identifier( void );
47 
53 
55 
56  virtual ~Identifier( void );
57 
58  //
59  // Operator overloads
60  //
68 
76  bool operator==( IdentifierCref ) const;
77 
85  bool operator!=( IdentifierCref ) const;
86 
94  bool operator<( IdentifierCref ) const;
95 
103  bool operator<=( IdentifierCref ) const;
104 
112  bool operator>( IdentifierCref ) const;
113 
121  bool operator>=( IdentifierCref ) const;
122 
123  protected:
124 
131  virtual bool isEqual( IdentifierCref ) const ;
132 
139  virtual bool isLessThan( IdentifierCref ) const ;
140 
147  virtual bool isLessThanOrEqual( IdentifierCref ) const ;
148 
155  virtual bool isGreaterThan( IdentifierCref ) const ;
156 
163  virtual bool isGreaterThanOrEqual( IdentifierCref ) const ;
164 
165  };
166 
167 }
168 
169 #endif // if !defined(__IDENTIFIER_HPP)
170 
171 /*
172  Common rcs information do not modify
173  $Author: prudhomm $
174  $Revision: 1.1 $
175  $Date: 2000/04/23 20:43:13 $
176  $Locker: $
177 */
178 
179 
180 
virtual bool isLessThan(IdentifierCref) const
Less than method.
Definition: Identifier.cpp:131
bool operator!=(IdentifierCref) const
Non-equality operator overload returns !isEqual(aRef)
Definition: Identifier.cpp:81
virtual bool isLessThanOrEqual(IdentifierCref) const
Less than or equal method.
Definition: Identifier.cpp:136
bool operator>(IdentifierCref) const
Greater than operator overload.
Definition: Identifier.cpp:108
bool operator>=(IdentifierCref) const
Greater than or equal operator overload.
Definition: Identifier.cpp:117
virtual bool isEqual(IdentifierCref) const
Equality method.
Definition: Identifier.cpp:126
virtual bool isGreaterThan(IdentifierCref) const
Greater than method.
Definition: Identifier.cpp:141
virtual ~Identifier(void)
Virtual Destructor.
Definition: Identifier.cpp:53
bool operator<=(IdentifierCref) const
Less than or equal operator overload.
Definition: Identifier.cpp:99
An Identifier is a abstract representation of identity.
Definition: Identifier.hpp:40
bool operator==(IdentifierCref) const
Equality operator overload calls isEqual virtual method.
Definition: Identifier.cpp:72
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
bool operator<(IdentifierCref) const
Less than operator overload.
Definition: Identifier.cpp:90
virtual bool isGreaterThanOrEqual(IdentifierCref) const
Greater than or equal method.
Definition: Identifier.cpp:146
Identifier(void)
Default Constructor.
Definition: Identifier.cpp:31
IdentifierRef operator=(IdentifierCref)
Assignment operator overload.
Definition: Identifier.cpp:62
An CoreLinuxObject is a base class for the library.
Definition: CoreLinuxObject.hpp:39

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