PhasicFlow
v0.1
www.cemf.ir
selectRange.hpp
Go to the documentation of this file.
1
/*------------------------------- phasicFlow ---------------------------------
2
O C enter of
3
O O E ngineering and
4
O O M ultiscale modeling of
5
OOOOOOO F luid flow
6
------------------------------------------------------------------------------
7
Copyright (C): www.cemf.ir
8
email: hamid.r.norouzi AT gmail.com
9
------------------------------------------------------------------------------
10
Licence:
11
This file is part of phasicFlow code. It is a free software for simulating
12
granular and multiphase flows. You can redistribute it and/or modify it under
13
the terms of GNU General Public License v3 or any other later versions.
14
15
phasicFlow is distributed to help others in their research in the field of
16
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19
-----------------------------------------------------------------------------*/
20
21
22
#ifndef __selectRange_hpp__
23
#define __selectRange_hpp__
24
25
#include "
pStructSelector.hpp
"
26
#include "
pointStructure.hpp
"
27
28
29
namespace
pFlow
30
{
31
32
class
dictionary;
33
34
class
selectRange
35
:
36
public
pStructSelector
37
{
38
protected
:
39
40
int32Vector
selectedPoints_
;
41
42
// begin index
43
int32
begin_
;
44
45
// end index
46
int32
end_
;
47
48
// stride
49
int32
stride_
;
50
51
void
selectAllPointsInRange
();
52
53
public
:
54
55
// - type info
56
TypeInfo
(
"selectRange"
);
57
58
59
selectRange
(
const
pointStructure
&
pStruct
,
const
dictionary
& dict);
60
61
add_vCtor
62
(
63
pStructSelector
,
64
selectRange
,
65
dictionary
66
);
67
68
virtual
~selectRange
() =
default
;
69
71
72
virtual
const
int32Vector
&
selectedPoinsts
()
const override
73
{
74
return
selectedPoints_
;
75
}
76
77
virtual
int32Vector
&
selectedPoinsts
()
override
78
{
79
return
selectedPoints_
;
80
}
81
82
};
83
84
}
// pFlow
85
86
87
#endif //__pStructSelector_hpp__
pFlow::selectRange::selectedPoinsts
virtual int32Vector & selectedPoinsts() override
Definition:
selectRange.hpp:77
pFlow::selectRange::selectAllPointsInRange
void selectAllPointsInRange()
Definition:
selectRange.cpp:25
pFlow::selectRange::~selectRange
virtual ~selectRange()=default
pFlow::selectRange::selectedPoinsts
virtual const int32Vector & selectedPoinsts() const override
Definition:
selectRange.hpp:72
pFlow::selectRange::selectRange
selectRange(const pointStructure &pStruct, const dictionary &dict)
Definition:
selectRange.cpp:41
pFlow
Definition:
demComponent.hpp:28
pStructSelector.hpp
pFlow::pointStructure
Definition:
pointStructure.hpp:44
pFlow::selectRange
Definition:
selectRange.hpp:34
pFlow::int32
int int32
Definition:
builtinTypes.hpp:53
pFlow::selectRange::begin_
int32 begin_
Definition:
selectRange.hpp:43
pFlow::selectRange::end_
int32 end_
Definition:
selectRange.hpp:46
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition:
pStructSelector.cpp:35
pFlow::selectRange::TypeInfo
TypeInfo("selectRange")
pFlow::pStructSelector
Definition:
pStructSelector.hpp:36
pFlow::selectRange::add_vCtor
add_vCtor(pStructSelector, selectRange, dictionary)
pFlow::selectRange::selectedPoints_
int32Vector selectedPoints_
Definition:
selectRange.hpp:40
pFlow::Vector< int32 >
pointStructure.hpp
pFlow::selectRange::stride_
int32 stride_
Definition:
selectRange.hpp:49
pFlow::dictionary
Definition:
dictionary.hpp:38
src
phasicFlow
structuredData
pointStructure
selectors
selectRange
selectRange.hpp
Generated by
1.8.17