corelinux::Identifier Class Reference

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

#include <Identifier.hpp>

Inheritance diagram for corelinux::Identifier:

corelinux::CoreLinuxObject corelinux::ScalarIdentifier< ScalarType >

List of all members.

Public Member Functions

 Identifier (void)
 Default Constructor.
 Identifier (IdentifierCref)
 Copy Constructor.
virtual ~Identifier (void)
 Virtual Destructor.
IdentifierRef operator= (IdentifierCref)
 Assignment operator overload.
bool operator== (IdentifierCref) const
 Equality operator overload calls isEqual virtual method.
bool operator!= (IdentifierCref) const
 Non-equality operator overload returns !isEqual(aRef).
bool operator< (IdentifierCref) const
 Less than operator overload.
bool operator<= (IdentifierCref) const
 Less than or equal operator overload.
bool operator> (IdentifierCref) const
 Greater than operator overload.
bool operator>= (IdentifierCref) const
 Greater than or equal operator overload.

Protected Member Functions

virtual bool isEqual (IdentifierCref) const
 Equality method.
virtual bool isLessThan (IdentifierCref) const
 Less than method.
virtual bool isLessThanOrEqual (IdentifierCref) const
 Less than or equal method.
virtual bool isGreaterThan (IdentifierCref) const
 Greater than method.
virtual bool isGreaterThanOrEqual (IdentifierCref) const
 Greater than or equal method.


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

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

Assignment operator overload.

Parameters:
Identifier const reference
Returns:
Identifier reference to self

References corelinux::CoreLinuxObject::operator=().

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

Equality operator overload calls isEqual virtual method.

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

References isEqual().

Referenced by operator!=().

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

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

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

References operator==().

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

References isLessThan().

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

References isLessThanOrEqual().

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

References isGreaterThan().

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

References isGreaterThanOrEqual().

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

Equality method.

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

Reimplemented in corelinux::ScalarIdentifier< ScalarType >.

Referenced by operator==().

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

Less than method.

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

Reimplemented in corelinux::ScalarIdentifier< ScalarType >.

Referenced by operator<().

bool corelinux::Identifier::isLessThanOrEqual ( IdentifierCref   )  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< ScalarType >.

Referenced by operator<=().

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

Greater than method.

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

Reimplemented in corelinux::ScalarIdentifier< ScalarType >.

Referenced by operator>().

bool corelinux::Identifier::isGreaterThanOrEqual ( IdentifierCref   )  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< ScalarType >.

Referenced by operator>=().


The documentation for this class was generated from the following files:

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