Ignore:
Timestamp:
Nov 2, 2009, 12:50:57 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
8bc524
Parents:
245826
Message:

Small changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_graph.cpp

    r245826 rdf0520  
    190190 * \param output stream
    191191 */
    192 void molecule::OutputBondsList(ofstream *out)
     192void molecule::OutputBondsList(ofstream *out) const
    193193{
    194194  *out << Verbose(1) << endl << "From contents of bond chain list:";
     
    210210 * \return number of bonds that could not be corrected
    211211 */
    212 int molecule::CorrectBondDegree(ofstream *out)
     212int molecule::CorrectBondDegree(ofstream *out) const
    213213{
    214214  int No = 0;
     
    265265 * \return string of the flag
    266266 */
    267 string molecule::GetColor(enum Shading color)
     267string molecule::GetColor(enum Shading color) const
    268268{
    269269  switch (color) {
     
    314314 * \param &DFS DFS accounting data
    315315 */
    316 void DepthFirstSearchAnalysis_ProbeAlongUnusedBond(ofstream *out, molecule *mol, atom *&Walker, bond *&Binder, struct DFSAccounting &DFS)
     316void DepthFirstSearchAnalysis_ProbeAlongUnusedBond(ofstream *out, const molecule * const mol, atom *&Walker, bond *&Binder, struct DFSAccounting &DFS)
    317317{
    318318  atom *OtherAtom = NULL;
     
    357357 * \param &DFS DFS accounting data
    358358 */
    359 void DepthFirstSearchAnalysis_CheckForaNewComponent(ofstream *out, molecule *mol, atom *&Walker, struct DFSAccounting &DFS, MoleculeLeafClass *&LeafWalker)
     359void DepthFirstSearchAnalysis_CheckForaNewComponent(ofstream *out, const molecule * const mol, atom *&Walker, struct DFSAccounting &DFS, MoleculeLeafClass *&LeafWalker)
    360360{
    361361  atom *OtherAtom = NULL;
     
    403403 * \param &DFS DFS accounting data
    404404 */
    405 void DepthFirstSearchAnalysis_CleanRootStackDownTillWalker(ofstream *out, molecule *mol, atom *&Walker, bond *&Binder, struct DFSAccounting &DFS, MoleculeLeafClass *&LeafWalker)
     405void DepthFirstSearchAnalysis_CleanRootStackDownTillWalker(ofstream *out, const molecule * const mol, atom *&Walker, bond *&Binder, struct DFSAccounting &DFS, MoleculeLeafClass *&LeafWalker)
    406406{
    407407  atom *OtherAtom = NULL;
     
    467467 * \return list of each disconnected subgraph as an individual molecule class structure
    468468 */
    469 MoleculeLeafClass * molecule::DepthFirstSearchAnalysis(ofstream *out, class StackClass<bond *> *&BackEdgeStack)
     469MoleculeLeafClass * molecule::DepthFirstSearchAnalysis(ofstream *out, class StackClass<bond *> *&BackEdgeStack) const
    470470{
    471471  struct DFSAccounting DFS;
     
    548548/** Scans through all bonds and set bond::Cyclic to true where atom::LowpointNr of both ends is equal: LP criterion.
    549549 */
    550 void molecule::CyclicBondAnalysis()
     550void molecule::CyclicBondAnalysis() const
    551551{
    552552  NoCyclicBonds = 0;
     
    565565 * \param *out output stream
    566566 */
    567 void molecule::OutputGraphInfoPerAtom(ofstream *out)
     567void molecule::OutputGraphInfoPerAtom(ofstream *out) const
    568568{
    569569  *out << Verbose(1) << "Final graph info for each atom is:" << endl;
     
    575575 * \param *out output stream
    576576 */
    577 void molecule::OutputGraphInfoPerBond(ofstream *out)
     577void molecule::OutputGraphInfoPerBond(ofstream *out) const
    578578{
    579579  *out << Verbose(1) << "Final graph info for each bond is:" << endl;
     
    829829 * \param *mol molecule with atoms
    830830 */
    831 void CyclicStructureAnalysis_AssignRingSizetoNonCycleMembers(ofstream *out, int *&MinimumRingSize, int &MinRingSize, int &NumCycles, molecule *mol)
     831void CyclicStructureAnalysis_AssignRingSizetoNonCycleMembers(ofstream *out, int *&MinimumRingSize, int &MinRingSize, int &NumCycles, const molecule * const mol)
    832832{
    833833  atom *Root = NULL;
     
    864864 * \todo BFS from the not-same-LP to find back to starting point of tributary cycle over more than one bond
    865865 */
    866 void molecule::CyclicStructureAnalysis(ofstream *out, class StackClass<bond *> * BackEdgeStack, int *&MinimumRingSize)
     866void molecule::CyclicStructureAnalysis(ofstream *out, class StackClass<bond *> * BackEdgeStack, int *&MinimumRingSize) const
    867867{
    868868  struct BFSAccounting BFS;
     
    900900
    901901  CyclicStructureAnalysis_AssignRingSizetoNonCycleMembers(out, MinimumRingSize, MinRingSize, NumCycles, this);
    902 
    903 }
    904 ;
     902};
    905903
    906904/** Sets the next component number.
     
    909907 * \param nr number to use
    910908 */
    911 void molecule::SetNextComponentNumber(atom *vertex, int nr)
     909void molecule::SetNextComponentNumber(atom *vertex, int nr) const
    912910{
    913911  size_t i = 0;
     
    931929 * \return bond class or NULL
    932930 */
    933 bond * molecule::FindNextUnused(atom *vertex)
     931bond * molecule::FindNextUnused(atom *vertex) const
    934932{
    935933  for (BondList::const_iterator Runner = vertex->ListOfBonds.begin(); Runner != vertex->ListOfBonds.end(); (++Runner))
     
    943941 * \return true - success, false - -failure
    944942 */
    945 void molecule::ResetAllBondsToUnused()
     943void molecule::ResetAllBondsToUnused() const
    946944{
    947945  bond *Binder = first;
     
    11031101 * \return true - everything ok, false - ReferenceStack was empty
    11041102 */
    1105 bool molecule::PickLocalBackEdges(ofstream *out, atom **ListOfLocalAtoms, class StackClass<bond *> *&ReferenceStack, class StackClass<bond *> *&LocalStack)
     1103bool molecule::PickLocalBackEdges(ofstream *out, atom **ListOfLocalAtoms, class StackClass<bond *> *&ReferenceStack, class StackClass<bond *> *&LocalStack) const
    11061104{
    11071105  bool status = true;
Note: See TracChangeset for help on using the changeset viewer.