Back to index

salome-gui  6.5.0
Defines | Functions
SUIT_DataOwner.cxx File Reference
#include "SUIT_DataOwner.h"
#include <typeinfo>

Go to the source code of this file.

Defines

#define _typeinfo   std::type_info

Functions

bool operator== (const SUIT_DataOwnerPtr &p1, const SUIT_DataOwnerPtr &p2)
 Operator == compares two owners.
bool operator< (const SUIT_DataOwnerPtr &p1, const SUIT_DataOwnerPtr &p2)
 Operator < allows to order suit data owners for map.

Define Documentation

#define _typeinfo   std::type_info

Definition at line 27 of file SUIT_DataOwner.cxx.


Function Documentation

bool operator< ( const SUIT_DataOwnerPtr &  p1,
const SUIT_DataOwnerPtr &  p2 
)

Operator < allows to order suit data owners for map.

Definition at line 53 of file SUIT_DataOwner.cxx.

{
  if ( p1.isNull() && p2.isNull() )
    return false;
  else if ( p1.isNull() )
    return true;
  else if ( p2.isNull() )
    return false;

  return (p1->keyString() < p2->keyString());
}
bool operator== ( const SUIT_DataOwnerPtr &  p1,
const SUIT_DataOwnerPtr &  p2 
)

Operator == compares two owners.

Comparing two SUIT_DataOwnerPtr objects.

Definition at line 44 of file SUIT_DataOwner.cxx.

{
  if ( !p1.isNull() && !p2.isNull() )
    return (p1->keyString() == p2->keyString());
  return p1.isNull() && p2.isNull();
}