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 
The DomainBase class is a template.
Definition: DomainBase.h:104
The Group class.
Definition: Group.h:36
Group & operator=(const Group &)=delete
~Group() override=default
void print() override
Definition: Group.cpp:31
Group & operator=(Group &&)=delete
Group(unsigned)
Definition: Group.cpp:20
const uvec & get_pool() const
Definition: Group.cpp:29
virtual void initialize(const shared_ptr< DomainBase > &)
Definition: Group.cpp:27
Group(Group &&)=delete
Group(const Group &)=delete
uvec pool
Definition: Group.h:38
A base Tag class.
Definition: Tag.h:38