Develop Biology
The language of life
DNA.h
Go to the documentation of this file.
1/*
2 * This file is a part of the Biology project by eons LLC.
3 * Biology (aka Develop Biology) is a framework for approaching software
4 * development from a natural sciences perspective.
5 *
6 * Copyright (C) 2021 Séon O'Shannon & eons LLC
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "Molecule.h"
27
28namespace bio {
29namespace molecular {
30
31class Protein;
32
42class DNA :
43 public Class< DNA >,
44 virtual public Molecule
45{
46public:
47
52 DNA)
53
62 &DNAPerspective::Instance(),
64
65
68 virtual ~DNA();
69
74 virtual Protein* GetProtein();
75
80 virtual const Protein* GetProtein() const;
81
86 virtual void SetProtein(Protein* protein);
87
91 virtual StandardDimension GetProteinId() const;
92
96 virtual Version GetVersion();
97
102 virtual void SetVersion(Version newVersion);
103
104protected:
107
108private:
112 void CtorCommon();
113};
114
115} //molecular namespace
116} //bio namespace
BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_CTOR_COMMON(chemical, Substance, &SubstancePerspective::Instance(), filter::Chemical()) BIO_DISAMBIGUATE_ALL_CLASS_METHODS(chemical
virtual Protein * GetProtein()
Definition: DNA.cpp:46
virtual void SetProtein(Protein *protein)
Definition: DNA.cpp:73
virtual Version GetVersion()
Definition: DNA.cpp:63
virtual StandardDimension GetProteinId() const
Definition: DNA.cpp:56
BIO_DISAMBIGUATE_ALL_CLASS_METHODS(molecular, DNA) BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_CTOR_COMMON(molecular
virtual void SetVersion(Version newVersion)
Definition: DNA.cpp:68
Version m_version
Definition: DNA.h:106
Protein * m_protein
Definition: DNA.h:105
Filter Molecular()
float Version
Definition: Types.h:34
Definition: Cell.h:31