suanPan
Group.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2024 Theodore Chang
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
******************************************************************************/
29
#ifndef GROUP_H
30
#define GROUP_H
31
32
#include <
Domain/Tag.h
>
33
34
class
DomainBase
;
35
36
class
Group
:
public
Tag
{
37
protected
:
38
uvec
pool
;
39
40
public
:
41
explicit
Group
(
unsigned
);
42
Group
(
unsigned
, uvec&&);
43
Group
(
const
Group
&) =
delete
;
// copy forbidden
44
Group
(
Group
&&) =
delete
;
// move forbidden
45
Group
&
operator=
(
const
Group
&) =
delete
;
// assign forbidden
46
Group
&
operator=
(
Group
&&) =
delete
;
// assign forbidden
47
~Group
()
override
=
default
;
48
49
virtual
void
initialize
(
const
shared_ptr<DomainBase>&);
50
51
[[nodiscard]]
const
uvec&
get_pool
()
const
;
52
53
void
print
()
override
;
54
};
55
56
#endif
57
Tag.h
DomainBase
The DomainBase class is a template.
Definition:
DomainBase.h:104
Group
The Group class.
Definition:
Group.h:36
Group::~Group
~Group() override=default
Group::print
void print() override
Definition:
Group.cpp:31
Group::operator=
Group & operator=(Group &&)=delete
Group::operator=
Group & operator=(const Group &)=delete
Group::Group
Group(unsigned)
Definition:
Group.cpp:20
Group::get_pool
const uvec & get_pool() const
Definition:
Group.cpp:29
Group::initialize
virtual void initialize(const shared_ptr< DomainBase > &)
Definition:
Group.cpp:27
Group::Group
Group(Group &&)=delete
Group::Group
Group(const Group &)=delete
Group::pool
uvec pool
Definition:
Group.h:38
Tag
A base Tag class.
Definition:
Tag.h:38
Domain
Group
Group.h
Generated by
1.9.4