Develop Biology
The language of life
Class.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) 2022 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
27
28namespace bio {
29namespace genetic {
30
37template < typename T >
38class Class :
39 public molecular::Class< T >,
40 virtual public molecular::Molecule
41{
42public:
43
45 T)
46
47
52 Class(
53 T* object,
55 Filter filter = filter::Default())
56 :
57 molecular::Class< T >(
58 object,
60 filter
61 )
62 {
63
64 }
65
72 Class(
73 T* object,
74 Name name,
76 Filter filter = filter::Default())
77 :
78 molecular::Class< T >(
79 object,
80 name,
82 filter
83 )
84 {
85
86 }
87
94 Class(
95 T* object,
96 StandardDimension id,
98 Filter filter = filter::Default())
99 :
100 molecular::Class< T >(
101 object,
102 id,
104 filter
105 )
106 {
107
108 }
109
113 virtual ~Class()
114 {
115
116 }
117};
118
119} //genetic namespace
120} //bio namespace
BIO_DISAMBIGUATE_ALL_CLASS_METHODS(molecular, T) Class(T *object
physical::Perspective< StandardDimension > * perspective
Definition: Class.h:54
physical::Perspective< StandardDimension > Filter filter
Definition: Class.h:57
virtual ~Class()
Definition: Class.h:60
Class(T *object, Symmetry *symmetry=NULL)
Definition: Class.h:46
Filter Default()
Definition: Cell.h:31
const char * Name
Definition: Types.h:46