Develop Biology
The language of life
Protein.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 "bio/log/Writer.h"
26#include "Molecule.h"
29
30namespace bio {
31namespace molecular {
32
33class Vesicle;
34
35class DNA;
36
44class Protein :
45 virtual public Molecule,
46 public Class< Protein >,
47 public chemical::LinearMotif< Protein* >,
48 public EnvironmentDependent< Vesicle >
49{
50public:
51
56 Protein)
57
65 &ProteinPerspective::Instance(),
67
68
69
72 virtual ~Protein();
73
93 virtual Code RecruitChaperones(Vesicle* environment);
94
107 virtual Code Fold();
108
109
115 virtual Code Activate();
116
122 virtual Code operator()();
123
130 virtual const DNA* GetSource() const;
131
137 virtual Code SetSource(const DNA* source);
138
139protected:
140 const DNA* m_source;
141
142private:
146 void CtorCommon();
147};
148
149} //molecular namespace
150} //bio namespace
BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_CTOR_COMMON(chemical, Substance, &SubstancePerspective::Instance(), filter::Chemical()) BIO_DISAMBIGUATE_ALL_CLASS_METHODS(chemical
virtual Code Activate()
Definition: Protein.cpp:58
virtual Code RecruitChaperones(Vesicle *environment)
Definition: Protein.cpp:48
virtual const DNA * GetSource() const
Definition: Protein.cpp:78
BIO_DISAMBIGUATE_ALL_CLASS_METHODS(molecular, Protein) BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_CTOR_COMMON(molecular
virtual Code SetSource(const DNA *source)
Definition: Protein.cpp:72
virtual Code Fold()
Definition: Protein.cpp:39
const DNA * m_source
Definition: Protein.h:140
Filter Molecular()
Definition: Cell.h:31