source: molecuilder/src/atom_graphnode.cpp@ 401b97

Last change on this file since 401b97 was 1f2e46, checked in by Frederik Heber <heber@…>, 15 years ago

Huge change: Log() << Verbose(.) --> DoLog(.) && (Log() << Verbose(.) << ...);

Most of the files are affected, but this is necessary as if DoLog() says verbosity is not enough, all the stream operators won"t get executed which saves substantial amount of computation time.

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * atom_graphnode.cpp
3 *
4 * Created on: Oct 19, 2009
5 * Author: heber
6 */
7
8#include "atom_graphnode.hpp"
9#include "log.hpp"
10#include "verbose.hpp"
11
12/** Constructor of class GraphNode.
13 */
14GraphNode::GraphNode()
15{
16};
17
18/** Destructor of class GraphNode.
19 */
20GraphNode::~GraphNode()
21{
22};
23
24/** Output graph info of this atom.
25 * \param *out output stream
26 */
27void GraphNode::OutputGraphInfo() const
28{
29 DoLog(2) && (Log() << Verbose(2) << "Atom " << Name << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are ");
30 OutputComponentNumber();
31 DoLog(3) && (Log() << Verbose(3) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl);
32};
33
34/** Output a list of flags, stating whether the bond was visited or not.
35 * Note, we make use of the last entry of the ComponentNr always being -1 if allocated.
36 * \param *out output stream for debugging
37 */
38void GraphNode::OutputComponentNumber() const
39{
40 if (ComponentNr != NULL) {
41 for (int i=0; ComponentNr[i] != -1; i++)
42 DoLog(2) && (Log() << Verbose(2) << ComponentNr[i] << " ");
43 }
44};
45
Note: See TracBrowser for help on using the repository browser.