Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
cif::compound_bond_less Struct Reference

Public Member Functions

bool operator() (const compound_bond &a, const compound_bond &b) const
 

Detailed Description

Definition at line 94 of file compound.cpp.

Member Function Documentation

◆ operator()()

bool cif::compound_bond_less::operator() ( const compound_bond &  a,
const compound_bond &  b 
) const
inline

Definition at line 96 of file compound.cpp.

97  {
98  int d = a.atom_id[0].compare(b.atom_id[0]);
99  if (d == 0)
100  d = a.atom_id[1].compare(b.atom_id[1]);
101  if (d == 0)
102  d = static_cast<int>(a.type) - static_cast<int>(b.type);
103  return d < 0;
104  }
doublereal * d
doublereal * b
doublereal * a

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