libbio
Loading...
Searching...
No Matches
physical/symmetry/Symmetry.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) 2023 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
28
29namespace bio {
30namespace physical {
31
38class Symmetry :
39 physical::Class< Symmetry >,
40 virtual public Identifiable< Id >
41{
42public:
43
48
49
52 Symmetry();
53
59 const Name& name,
60 const Name& type
61 );
62
68 const Name& name,
69 SymmetryType type
70 );
71
77 Id id,
78 const Name& type
79 );
80
86 Id id,
87 SymmetryType type
88 );
89
93 virtual ~Symmetry();
94
100
105 void SetType(SymmetryType type);
106
111 void SetType(const Name& type);
112
118 virtual void SetValue(const ByteStream& bytes);
119
124 virtual const ByteStream& GetValue() const;
125
132
136 virtual const Timestamp& GetTimeCreated() const;
137
141 virtual const Timestamp& GetTimeUpdated() const;
142
149
154 virtual void Realize();
155
156protected:
162};
163
164} //physical namespace
165} //bio namespace
#define BIO_DISAMBIGUATE_ALL_CLASS_METHODS(ns, caller)
Definition ClassMethodMacros.h:112
Definition ByteStream.h:63
Definition Pointer.h:115
Definition String.h:55
Definition physical/common/Class.h:56
Definition Identifiable.h:53
Definition physical/symmetry/Symmetry.h:41
virtual const Timestamp & GetTimeUpdated() const
Definition physical/symmetry/Symmetry.cpp:163
Timestamp mTimeUpdated
Definition physical/symmetry/Symmetry.h:160
const Identifiable< SymmetryType > & GetType() const
Definition physical/symmetry/Symmetry.cpp:126
ByteStream mValue
Definition physical/symmetry/Symmetry.h:157
virtual Pointer< ByteStream > AccessValue()
Definition physical/symmetry/Symmetry.cpp:152
Identifiable< SymmetryType > mType
Definition physical/symmetry/Symmetry.h:158
void SetType(SymmetryType type)
Definition physical/symmetry/Symmetry.cpp:131
virtual const Timestamp & GetTimeCreated() const
Definition physical/symmetry/Symmetry.cpp:158
Symmetry()
Definition physical/symmetry/Symmetry.cpp:30
virtual const ByteStream & GetValue() const
Definition physical/symmetry/Symmetry.cpp:147
virtual void SetValue(const ByteStream &bytes)
Definition physical/symmetry/Symmetry.cpp:141
virtual void SetRealization(Pointer< Wave > realization)
Definition physical/symmetry/Symmetry.cpp:168
Timestamp mTimeCreated
Definition physical/symmetry/Symmetry.h:159
virtual void Realize()
Definition physical/symmetry/Symmetry.cpp:173
virtual ~Symmetry()
Definition physical/symmetry/Symmetry.cpp:122
Pointer< Wave > mRealization
Definition physical/symmetry/Symmetry.h:161
Definition FinalCell.h:29