Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Identifier Class Reference

An Identifier is a abstract representation of identity. More...

#include <Identifier.hpp>

Inheritance diagram for corelinux::Identifier

Inheritance graph
[legend]
Collaboration diagram for corelinux::Identifier:

Collaboration graph
[legend]
List of all members.

Public Methods

 Identifier ( void )
 Default Constructor.

 Identifier ( IdentifierCref )
 Copy Constructor. More...

virtual ~Identifier ( void )
 Virtual Destructor.

IdentifierRef operator= ( IdentifierCref )
 Assignment operator overload. More...

bool operator== ( IdentifierCref ) const
 Equality operator overload calls isEqual virtual method. More...

bool operator!= ( IdentifierCref ) const
 Non-equality operator overload returns!isEqual(aRef). More...

bool operator< ( IdentifierCref ) const
 Less than operator overload. More...

bool operator<= ( IdentifierCref ) const
 Less than or equal operator overload. More...

bool operator> ( IdentifierCref ) const
 Greater than operator overload. More...

bool operator>= ( IdentifierCref ) const
 Greater than or equal operator overload. More...


Protected Methods

virtual bool isEqual ( IdentifierCref ) const
 Equality method. More...

virtual bool isLessThan ( IdentifierCref ) const
 Less than method. More...

virtual bool isLessThanOrEqual ( IdentifierCref ) const
 Less than or equal method. More...

virtual bool isGreaterThan ( IdentifierCref ) const
 Greater than method. More...

virtual bool isGreaterThanOrEqual ( IdentifierCref ) const
 Greater than or equal method. More...


Detailed Description

An Identifier is a abstract representation of identity.

Derivations implement ConcreteIdentifiers (Strings, Widgets, UUID, whatever). The logical operators call virtual methods which derivations should define.as all the defaults return true.


Constructor & Destructor Documentation

corelinux::Identifier::Identifier ( IdentifierCref aRef )
 

Copy Constructor.

Parameters:
Identifier   const reference


Member Function Documentation

bool corelinux::Identifier::isEqual ( IdentifierCref aRef ) const [protected, virtual]
 

Equality method.

Parameters:
Identifier   const reference
Returns:
true if equal, false otherwise

Reimplemented in corelinux::ScalarIdentifier.

bool corelinux::Identifier::isGreaterThan ( IdentifierCref aRef ) const [protected, virtual]
 

Greater than method.

Parameters:
Identifier   const reference
Returns:
true if greater than, false otherwise

Reimplemented in corelinux::ScalarIdentifier.

bool corelinux::Identifier::isGreaterThanOrEqual ( IdentifierCref aRef ) const [protected, virtual]
 

Greater than or equal method.

Parameters:
Identifier   const reference
Returns:
true if greater than or equal, false otherwise

Reimplemented in corelinux::ScalarIdentifier.

bool corelinux::Identifier::isLessThan ( IdentifierCref aRef ) const [protected, virtual]
 

Less than method.

Parameters:
Identifier   const reference
Returns:
true if less than, false otherwise

Reimplemented in corelinux::ScalarIdentifier.

bool corelinux::Identifier::isLessThanOrEqual ( IdentifierCref aRef ) const [protected, virtual]
 

Less than or equal method.

Parameters:
Identifier   const reference
Returns:
true if less than or equal, false otherwise

Reimplemented in corelinux::ScalarIdentifier.

bool corelinux::Identifier::operator!= ( IdentifierCref aRef ) const
 

Non-equality operator overload returns!isEqual(aRef).

Parameters:
Identifier   const reference
Returns:
false if equal, true otherwise

bool corelinux::Identifier::operator< ( IdentifierCref aRef ) const
 

Less than operator overload.

Calls isLessThan virtual method.

Parameters:
Identifier   const reference
Returns:
true if less than, false otherwise

bool corelinux::Identifier::operator<= ( IdentifierCref aRef ) const
 

Less than or equal operator overload.

Calls isLessThanOrEqual virtual method.

Parameters:
Identifier   const reference
Returns:
true if less than or equal, false otherwise

IdentifierRef corelinux::Identifier::operator= ( IdentifierCref aRef )
 

Assignment operator overload.

Parameters:
Identifier   const reference
Returns:
Identifier reference to self

bool corelinux::Identifier::operator== ( IdentifierCref aRef ) const
 

Equality operator overload calls isEqual virtual method.

Parameters:
Identifier   const reference
Returns:
true if equal, false otherwise

bool corelinux::Identifier::operator> ( IdentifierCref aRef ) const
 

Greater than operator overload.

Calls isGreaterThan virtual method.

Parameters:
Identifier   const reference
Returns:
true if greater than, false otherwise

bool corelinux::Identifier::operator>= ( IdentifierCref aRef ) const
 

Greater than or equal operator overload.

Calls isGreaterThanOrEqual virtual method.

Parameters:
Identifier   const reference
Returns:
true if greater than or equal, false otherwise


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium