suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Criterion.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2026 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
******************************************************************************/
31
#ifndef CRITERION_H
32
#define CRITERION_H
33
34
#include <
Domain/Tag.h
>
35
36
class
DomainBase
;
37
38
class
Criterion
:
public
CopyableTag
{
39
unsigned
step_tag;
40
41
public
:
42
explicit
Criterion
(
unsigned
= 0,
unsigned
= 0);
43
44
void
set_step_tag
(
unsigned
);
45
[[nodiscard]]
unsigned
get_step_tag
()
const
;
46
47
virtual
unique_ptr<Criterion>
unique_copy
() = 0;
48
49
virtual
int
initialize
(
const
shared_ptr<DomainBase>&);
50
51
virtual
int
process
(
const
shared_ptr<DomainBase>&) = 0;
52
};
53
54
#endif
55
Tag.h
CopyableTag
Label objects that can be copied.
Definition
Tag.h:73
Criterion
A Criterion class.
Definition
Criterion.h:38
Criterion::set_step_tag
void set_step_tag(unsigned)
Definition
Criterion.cpp:26
Criterion::initialize
virtual int initialize(const shared_ptr< DomainBase > &)
Definition
Criterion.cpp:30
Criterion::get_step_tag
unsigned get_step_tag() const
Definition
Criterion.cpp:28
Criterion::process
virtual int process(const shared_ptr< DomainBase > &)=0
Criterion::unique_copy
virtual unique_ptr< Criterion > unique_copy()=0
DomainBase
The DomainBase class is a template.
Definition
DomainBase.h:94
Constraint
Criterion
Criterion.h
Generated by
1.9.8