libbio
Loading...
Searching...
No Matches
Substance.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
33
34namespace bio {
35namespace chemical {
36
42class Substance :
43 public chemical::Class< Substance >,
44 public Covalent< UnorderedMotif< Property > >,
45 public Covalent< UnorderedMotif< State > >,
46 virtual public Structure
47{
48public:
49
51 chemical,
54 )
55
56
60
68 );
69
74
79 virtual void Enable();
80
85 virtual void Disable();
86
92 virtual bool IsEnabled() const;
93
95 void CommonConstructor();
96};
97
98} //chemical namespace
99} //bio namespace
#define BIO_DISAMBIGUATE_ALL_CLASS_METHODS(ns, caller)
Definition ClassMethodMacros.h:112
Definition Covalent.h:42
Definition Pointer.h:115
Definition chemical/common/Class.h:52
Definition Structure.h:41
Definition Substance.h:47
BIO_DEFAULT_IDENTIFIABLE_CONSTRUCTORS_WITH_COMMON_CONSTRUCTOR(chemical, Substance, filter::Chemical()) Substance(const UnorderedMotif< Property > &properties
virtual void Disable()
Definition Substance.cpp:48
virtual void Enable()
Definition Substance.cpp:43
const UnorderedMotif< State > & states
Definition Substance.h:68
virtual bool IsEnabled() const
Definition Substance.cpp:53
Definition UnorderedMotif.h:65
Filter Chemical()
Definition FinalCell.h:29