Develop Biology
The language of life
Macros.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
24
#include "
ConstructorMacros.h
"
25
#include "
ExcitationMacros.h
"
26
#include "
bio/chemical/common/BondTypes.h
"
27
#include "
bio/physical/macros/Macros.h
"
28
33
#define BIO_GET_REQUIRED_CLASS_METHODS_FOR_chemical() \
34
BIO_GET_REQUIRED_CLASS_METHODS_FOR_physical(), \
35
( \
36
virtual ::bio::Properties GetProperties() const, \
37
GetProperties() \
38
), \
39
( \
40
virtual ::bio::chemical::Atom* AsAtom(), \
41
AsAtom() \
42
), \
43
( \
44
template< typename AS > operator AS(), \
45
template As< AS >() \
46
), \
47
( \
48
virtual const ::bio::chemical::Atom* AsAtom() const, \
49
AsAtom() \
50
)
55
#define BIO_GET_OPTIONAL_CLASS_METHODS_FOR_chemical() \
56
BIO_GET_OPTIONAL_CLASS_METHODS_FOR_physical(), \
57
( \
58
virtual Code Attenuate(const ::bio::physical::Wave* other), \
59
Attenuate(other) \
60
), \
61
( \
62
virtual Code Disattenuate(const ::bio::physical::Wave* other), \
63
Disattenuate(other) \
64
)
65
70
#define BIO_CHEMICAL_BOND_TYPE_FUNCTION_BODY(functionName) \
71
BIO_ID_FUNCTION_BODY( \
72
functionName##BondType, \
73
::bio::BondTypePerspective::Instance(), \
74
::bio::BondType)
ConstructorMacros.h
ExcitationMacros.h
BondTypes.h
Macros.h
inc
bio
chemical
macros
Macros.h
Generated by
1.9.4