22 #include <Component.h>
27 namespace Victor {
namespace Biopool {
37 Polymer(
unsigned int mI = 2,
unsigned int mO = 2);
44 virtual string getClassName()
const {
48 virtual vgVector3<double> getTrans()
const {
49 ERROR(
"Polymer::getTrans is not a viable method.", exception);
52 virtual vgMatrix3<double> getRot()
const {
53 ERROR(
"Polymer::getRot is not a viable method.", exception);
56 virtual void save(
Saver& s) {
57 ERROR(
"Polymer::save is not a viable method.", exception);
72 virtual void load(
Loader& l) {
73 ERROR(
"Polymer::load is not a viable method.", exception);
76 virtual void setTrans(vgVector3<double> t) {
77 ERROR(
"Polymer::setTrans is not a viable method.", exception);
80 virtual void addTrans(vgVector3<double> t) {
81 ERROR(
"Polymer::addTrans is not a viable method.", exception);
84 virtual void setRot(vgMatrix3<double> r) {
85 ERROR(
"Polymer::setRot is not a viable method.", exception);
88 virtual void addRot(vgMatrix3<double> r) {
89 ERROR(
"Polymer::addRot is not a viable method.", exception);
94 ERROR(
"Polymer::sync is not a viable method.", exception);
98 ERROR(
"Polymer::acceptCalculator is not a viable method.", exception);
102 ERROR(
"Polymer::acceptOptimizer is not a viable method.", exception);
106 virtual Component& operator[](
unsigned int n);
107 virtual const Component& operator[](
unsigned int n)
const;
113 virtual void resetBoundaries() {
114 ERROR(
"Polymer::resetBoundaries is not a viable method.", exception);
134 Polymer::operator[](
unsigned int n) {
135 PRECOND(n < size(), exception);
136 return *components[n];
139 inline const Component&
140 Polymer::operator[](
unsigned int n)
const {
141 PRECOND(n < size(), exception);
142 return *components[n];
Base class for saving components (Atoms, Groups, etc.).
Definition: Saver.h:39
Base class for composite structures.
Definition: Component.h:39
Base class for loading components (Atoms, Groups, etc.).
Definition: Loader.h:39
Base class implementing the visitor pattern.
Definition: Visitor.h:38
virtual void removeComponentFromIndex(unsigned int i)
Definition: Polymer.cc:98
void copy(const Polymer &orig)
Definition: Polymer.cc:54
Implements methods to manage a polymer created by components.
Definition: Polymer.h:33
virtual void insertComponent(Component *c)
Definition: Polymer.cc:71
Base class Optimizacion Patter.
Definition: Visitor.h:66
virtual void deleteComponent(Component *c)
Definition: Polymer.cc:109
virtual void removeComponent(Component *c)
Definition: Polymer.cc:81
virtual Component * clone()
Definition: Polymer.cc:63