Logo Search packages:      
Sourcecode: cdk version File versions  Download package

IElectronContainer org::openscience::cdk::AtomContainer::removeElectronContainer ( int  number  )  [inline, inherited]

Removes the bond at the given position from this container.

Parameters:
number The position of the bond in the electronContainers array
Returns:
Bond that was removed

Implements org::openscience::cdk::interfaces::IAtomContainer.

Reimplemented in org::openscience::cdk::debug::DebugAminoAcid, org::openscience::cdk::debug::DebugAtomContainer, org::openscience::cdk::debug::DebugBioPolymer, org::openscience::cdk::debug::DebugCrystal, org::openscience::cdk::debug::DebugMolecule, org::openscience::cdk::debug::DebugMonomer, org::openscience::cdk::debug::DebugPolymer, org::openscience::cdk::debug::DebugRing, and org::openscience::cdk::debug::DebugStrand.

Definition at line 1237 of file AtomContainer.java.

References org::openscience::cdk::AtomContainer::bondCount, org::openscience::cdk::AtomContainer::lonePairCount, org::openscience::cdk::AtomContainer::removeBond(), org::openscience::cdk::AtomContainer::removeLonePair(), org::openscience::cdk::AtomContainer::removeSingleElectron(), and org::openscience::cdk::AtomContainer::singleElectronCount.

Referenced by org::openscience::cdk::ringsearch::FiguerasSSSRFinder::breakBond(), org::openscience::cdk::ringsearch::FiguerasSSSRFinder::checkEdges(), org::openscience::cdk::ringsearch::FiguerasSSSRFinder::findSSSR(), and org::openscience::cdk::ringsearch::FiguerasSSSRFinder::trim().

      {
            if (number < this.bondCount) return removeBond(number);
            number -= this.bondCount;
            if (number < this.lonePairCount) return removeLonePair(number);
            number -= this.lonePairCount;
            if (number < this.singleElectronCount) return removeSingleElectron(number);
            return null;
      }


Generated by  Doxygen 1.6.0   Back to index