Fix_FitPotential_needs_atomicnumbers
| Rev | Line | |
|---|
| [6d08032] | 1 | /*
|
|---|
| 2 | * PotentialSubgraph.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Oct 3, 2016
|
|---|
| 5 | * Author: heber
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | #ifndef POTENTIALS_POTENTIALSUBGRAPH_HPP_
|
|---|
| 10 | #define POTENTIALS_POTENTIALSUBGRAPH_HPP_
|
|---|
| 11 |
|
|---|
| 12 | // include config.h
|
|---|
| 13 | #ifdef HAVE_CONFIG_H
|
|---|
| 14 | #include <config.h>
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | #include <vector>
|
|---|
| 18 |
|
|---|
| [96af51] | 19 | #include "../../FunctionApproximation/Subgraph/SubgraphEdge.hpp"
|
|---|
| [6d08032] | 20 |
|
|---|
| 21 | /** This class contains the specific definition of a subgraph that a specific
|
|---|
| 22 | * empirical potential models. Note that the graph is undirected.
|
|---|
| 23 | */
|
|---|
| 24 | class PotentialSubgraph
|
|---|
| 25 | {
|
|---|
| 26 | public:
|
|---|
| 27 | PotentialSubgraph();
|
|---|
| 28 | ~PotentialSubgraph();
|
|---|
| 29 |
|
|---|
| [96af51] | 30 | //!> typedef for vector of edges
|
|---|
| 31 | typedef std::vector<SubgraphEdge> edges_t;
|
|---|
| 32 |
|
|---|
| [6d08032] | 33 | /** Adds an edge to the subgraph.
|
|---|
| 34 | *
|
|---|
| 35 | *\param _edge edge to add
|
|---|
| 36 | */
|
|---|
| 37 | void add_edge(const SubgraphEdge &_edge)
|
|---|
| 38 | { edges.push_back(_edge); }
|
|---|
| 39 |
|
|---|
| 40 | /** Const getter for the edge set of the subgraph.
|
|---|
| 41 | *
|
|---|
| 42 | */
|
|---|
| 43 | const edges_t & getEdges() const
|
|---|
| 44 | { return edges; }
|
|---|
| 45 |
|
|---|
| 46 | private:
|
|---|
| 47 | edges_t edges;
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | #endif /* POTENTIALS_POTENTIALSUBGRAPH_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.