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

void org::openscience::cdk::AtomContainer::growSingleElectronArray (  )  [inline, protected, inherited]

Grows the single electron array by a given size.

See also:
growArraySize

Definition at line 1665 of file AtomContainer.java.

References org::openscience::cdk::AtomContainer::growArraySize, and org::openscience::cdk::AtomContainer::singleElectrons().

Referenced by org::openscience::cdk::AtomContainer::addSingleElectron().

      {
            growArraySize = (singleElectrons.length < growArraySize) ? growArraySize : singleElectrons.length;
            ISingleElectron[] newSingleElectrons = new ISingleElectron[singleElectrons.length + growArraySize];
            System.arraycopy(singleElectrons, 0, newSingleElectrons, 0, singleElectrons.length);
            singleElectrons = newSingleElectrons;
      }


Generated by  Doxygen 1.6.0   Back to index