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

void org::openscience::cdk::AtomContainer::addBond ( IBond  bond  )  [inline, inherited]

Adds a Bond to this AtomContainer.

Parameters:
bond The bond to added to this container

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, org::openscience::cdk::debug::DebugStrand, and org::openscience::cdk::isomorphism::matchers::QueryAtomContainer.

Definition at line 1015 of file AtomContainer.java.

References org::openscience::cdk::AtomContainer::bondCount, org::openscience::cdk::AtomContainer::bonds(), org::openscience::cdk::AtomContainer::growBondArray(), and org::openscience::cdk::ChemObject::notifyChanged().

Referenced by org::openscience::cdk::AtomContainer::add(), org::openscience::cdk::geometry::AtomTools::add3DCoordinates1(), org::openscience::cdk::tools::ProteinBuilderTool::addAminoAcidAtCTerminus(), org::openscience::cdk::tools::ProteinBuilderTool::addAminoAcidAtNTerminus(), org::openscience::cdk::iupac::parser::MoleculeBuilder::addAtom(), org::openscience::cdk::AtomContainer::addBond(), org::openscience::cdk::AtomContainer::addElectronContainer(), org::openscience::cdk::iupac::parser::MoleculeBuilder::addFunGroup(), org::openscience::cdk::iupac::parser::MoleculeBuilder::addHeads(), org::openscience::cdk::ringsearch::FiguerasSSSRFinder::checkEdges(), org::openscience::cdk::templates::AminoAcids::createAAs(), org::openscience::cdk::tools::ProteinBuilderTool::createProtein(), org::openscience::cdk::graph::invariant::ConjugatedPiSystemsDetector::detect(), org::openscience::cdk::ringsearch::FiguerasSSSRFinder::findSSSR(), org::openscience::cdk::templates::MoleculeFactory::makeAlkane(), and org::openscience::cdk::ringsearch::FiguerasSSSRFinder::prepareRing().

      {
            if (bondCount >= bonds.length) growBondArray();
            bonds[bondCount] = bond;
            ++bondCount;
            notifyChanged();
      }


Generated by  Doxygen 1.6.0   Back to index