BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
BALL::FPTBondOrderStrategy::DPJoinMapComparator_ Struct Reference

#include <BALL/STRUCTURE/BONDORDERS/FPTBondOrderStrategy.h>

Public Member Functions

bool operator() (DPConfig_ const *leftp, DPConfig_ const *rightp) const
 
int compare (DPConfig_ const *leftp, DPConfig_ const *rightp) const
 

Detailed Description

A comparator, which searches DPConfigs in a DPJoinMap. Two DPConfigs are equal, if they have the same bond values, even if they have different consumed valences.

Definition at line 817 of file FPTBondOrderStrategy.h.

Member Function Documentation

int BALL::FPTBondOrderStrategy::DPJoinMapComparator_::compare ( DPConfig_ const *  leftp,
DPConfig_ const *  rightp 
) const

returns 1, if leftp is greather than rightp, 0 if both are equal and -1 otherwise. You can compare only childs from the same join bag.

Exceptions
BALL::Exception::InvalidArgumentif the both DPConfig entries can not be compared
bool BALL::FPTBondOrderStrategy::DPJoinMapComparator_::operator() ( DPConfig_ const *  leftp,
DPConfig_ const *  rightp 
) const

Less-operator. Returns true if leftp is smaller than rightp.

Exceptions
BALL::Exception::InvalidArgumentif the both DPConfig entries can not be compared