www.cemf.ir
pStructSelector.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 #ifndef __pStructSelector_hpp__
22 #define __pStructSelector_hpp__
23 
24 
25 #include "Vectors.hpp"
26 #include "virtualConstructor.hpp"
27 
28 
29 namespace pFlow
30 {
31 
32 
33 class dictionary;
34 class pointStructure;
35 
37 {
38 protected:
39 
41 
42 public:
43 
44  // - type info
45  TypeInfo("pStructSelector");
46 
50 
53  const word& type,
54  const pointStructure& pStruct,
55  const dictionary& UNUSED(dict));
56 
58  (
60  dictionary,
61  (const pointStructure& pStruct, const dictionary& dict),
62  (pStruct, dict)
63  );
64 
66  (
68  word,
69  (
70  const word& type,
71  const pointStructure& pStruct,
72  const dictionary& dict
73  ),
74  (type, pStruct, dict)
75  );
76 
77  virtual ~pStructSelector() = default;
78 
80 
81  const pointStructure& pStruct()const;
82 
83 
84  virtual const uint32Vector& selectedPoints()const = 0;
85 
86  virtual uint32Vector& selectedPoints() = 0;
87 
89 
90  static
92 
93  static
95  const word& type,
96  const pointStructure& pStruct,
97  const dictionary& dict);
98 };
99 
100 
101 
102 } // pFlow
103 
104 
105 #endif //__pStructSelector_hpp__
pFlow::pStructSelector::create
static uniquePtr< pStructSelector > create(const pointStructure &pStruct, const dictionary &dict)
Definition: pStructSelector.cpp:71
pFlow::pStructSelector::selectedPoints
virtual const uint32Vector & selectedPoints() const =0
UNUSED
#define UNUSED(x)
Definition: pFlowMacros.hpp:35
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
Vectors.hpp
pFlow::pStructSelector::TypeInfo
TypeInfo("pStructSelector")
pFlow
Definition: demGeometry.hpp:27
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::pStructSelector::pStruct_
const pointStructure & pStruct_
Definition: pStructSelector.hpp:40
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:45
virtualConstructor.hpp
pFlow::pStructSelector::~pStructSelector
virtual ~pStructSelector()=default
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::pStructSelector::create_vCtor
create_vCtor(pStructSelector, dictionary,(const pointStructure &pStruct, const dictionary &dict),(pStruct, dict))
pFlow::Vector< uint32 >
pFlow::pStructSelector::pStructSelector
pStructSelector(const pointStructure &pStruct, const dictionary &UNUSED(dict))
the dictionary contains the selector keyword and another dictionary which is used for creating select...
Definition: pStructSelector.cpp:27
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67
pFlow::pStructSelector::selectedPointPositions
realx3Vector selectedPointPositions() const
Definition: pStructSelector.cpp:51