Back to index

salome-gui  6.5.0
Public Member Functions | Private Attributes
LightApp_DataObject::Key Class Reference

Represents unique data object key for the LightApp_DataObject class instances. More...

Inheritance diagram for LightApp_DataObject::Key:
Inheritance graph
[legend]
Collaboration diagram for LightApp_DataObject::Key:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Key (const QString &)
 Constructor.
virtual ~Key ()
 Destructor.
virtual bool isLess (const SUIT_DataObjectKey *) const
 Compares this key with the another one.
virtual bool isEqual (const SUIT_DataObjectKey *) const
 Compares this key with the another one.

Private Attributes

QString myEntry

Detailed Description

Represents unique data object key for the LightApp_DataObject class instances.

Definition at line 46 of file LightApp_DataObject.cxx.


Constructor & Destructor Documentation

LightApp_DataObject::Key::Key ( const QString &  entry)

Constructor.

Parameters:
entrydata object entry

Definition at line 64 of file LightApp_DataObject.cxx.

: SUIT_DataObjectKey(),
  myEntry( entry )
{
}

Destructor.

Definition at line 74 of file LightApp_DataObject.cxx.

{
}

Member Function Documentation

bool LightApp_DataObject::Key::isEqual ( const SUIT_DataObjectKey other) const [virtual]

Compares this key with the another one.

Parameters:
otheranother data object key
Returns:
true if this key is equal to the other.

Definition at line 96 of file LightApp_DataObject.cxx.

{
  Key* that = (Key*)other;
  return myEntry == that->myEntry;
}
bool LightApp_DataObject::Key::isLess ( const SUIT_DataObjectKey other) const [virtual]

Compares this key with the another one.

Parameters:
otheranother data object key
Returns:
true if this key is less than other.

Definition at line 84 of file LightApp_DataObject.cxx.

{
  Key* that = (Key*)other;
  return myEntry < that->myEntry;
}

Member Data Documentation

Definition at line 56 of file LightApp_DataObject.cxx.


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