Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConstraintGraph.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/scoring/constraints/ConstraintsEnergyContainer.hh
11 /// @brief Constraints Energy Container class declaration
12 /// @author Andrew Leaver-Fay
13 
14 #ifndef INCLUDED_core_scoring_constraints_ConstraintGraph_hh
15 #define INCLUDED_core_scoring_constraints_ConstraintGraph_hh
16 
17 // Unit headers
19 
20 // Project headers
21 #include <core/graph/Graph.hh>
22 #include <core/types.hh>
23 
24 namespace core {
25 namespace scoring {
26 namespace constraints {
27 
29 {
30 
31 public:
33  typedef graph::Node Node;
34 
35 public:
36  ConstraintNode( graph::Graph*, Size node_id );
37  virtual ~ConstraintNode();
38 
39  virtual void copy_from( Node const * source );
40 
41  virtual Size count_static_memory() const;
42  virtual Size count_dynamic_memory() const;
43 
44 };
45 
47 {
48 
49 public:
51  typedef graph::Edge Edge;
52 
53 public:
54  ConstraintEdge( graph::Graph* owner, Size first_node_ind, Size second_node_ind);
55  ConstraintEdge( graph::Graph* owner, ConstraintEdge const & example_edge );
56  virtual ~ConstraintEdge();
57 
58  virtual void copy_from( Edge const * source );
59 
60  virtual Size count_static_memory() const;
61  virtual Size count_dynamic_memory() const;
62 
70 
71 
79 
80  void energy_computed( bool setting );
81  bool energy_computed() const;
82 
83 private:
84 
92 
93 
95 
96 };
97 
99 {
100 
101 public:
104 
105 public:
106  ConstraintGraph();
108  ConstraintGraph( ConstraintGraph const & source );
109  ConstraintGraph & operator = ( ConstraintGraph const & source );
110 
111  virtual ~ConstraintGraph();
112 
113  virtual void delete_edge( graph::Edge * edge );
114 
115  //virtual void copy_from( Graph const * source ); //? why haven't I implemented something like this in the base class?
116 
117 protected:
118 
119  virtual Size count_static_memory() const;
120  virtual Size count_dynamic_memory() const;
121 
122  virtual graph::Node * create_new_node( Size node_index );
123  virtual graph::Edge * create_new_edge( Size index1, Size index2);
124  virtual graph::Edge * create_new_edge( graph::Edge const * example_edge );
125 
126 
127 };
128 
129 }
130 }
131 }
132 
133 #endif