source: src/Graph/ConnectedSubgraph.hpp

Candidate_v1.6.1
Last change on this file was 09ac12, checked in by Frederik Heber <heber@…>, 14 years ago

Added new class ConnectedSubgraph.

  • inherits list<atom *>.
  • will be later used by DepthFirstSearchAnalysis.
  • mostly contains a function to generate a molecule from the contained atom list.
  • Property mode set to 100644
File size: 714 bytes
Line 
1/*
2 * ConnectedSubgraph.hpp
3 *
4 * Created on: Feb 16, 2011
5 * Author: heber
6 */
7
8#ifndef DISCONNECTEDSUBGRAPH_HPP_
9#define DISCONNECTEDSUBGRAPH_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include <list>
17#include <iosfwd>
18
19class atom;
20class molecule;
21
22typedef std::list<atom *> AtomList;
23
24class ConnectedSubgraph : public AtomList
25{
26public:
27 ConnectedSubgraph();
28 ~ConnectedSubgraph();
29
30 /** Create a new molecule in the World and add all contained atoms.
31 *
32 * @return pointer to filled molecule
33 */
34 molecule * getMolecule() const;
35
36private:
37};
38
39std::ostream & operator<<(std::ostream &ost, const ConnectedSubgraph &graph);
40
41#endif /* DISCONNECTEDSUBGRAPH_HPP_ */
Note: See TracBrowser for help on using the repository browser.