www.cemf.ir
selectorRandomPoints.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 __selectRandom_hpp__
23 #define __selectRandom_hpp__
24 
25 #include "pStructSelector.hpp"
26 #include "pointStructure.hpp"
27 
28 
29 namespace pFlow
30 {
31 
32 class dictionary;
33 
35 :
36  public pStructSelector
37 {
38 private:
39 
41 
42  // begin index
44 
45  // end index
47 
48  // stride
50 
52 
53 public:
54 
55  // - type info
56  TypeInfo("selector<randomPoints>");
57 
58 
60 
62  const word& type,
63  const pointStructure& pStruct,
64  const dictionary& UNUSED(dict));
65 
66  add_vCtor
67  (
71  );
72 
73  add_vCtor
74  (
77  word
78  );
79  ~selectorRandomPoints() final = default;
80 
82 
83  const uint32Vector& selectedPoints()const final
84  {
85  return selectedPoints_;
86  }
87 
89  {
90  return selectedPoints_;
91  }
92 
93 };
94 
95 } // pFlow
96 
97 
98 #endif //__pStructSelector_hpp__
pFlow::selectorRandomPoints::selectedPoints
uint32Vector & selectedPoints() final
Definition: selectorRandomPoints.hpp:88
UNUSED
#define UNUSED(x)
Definition: pFlowMacros.hpp:35
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::selectorRandomPoints::begin_
uint32 begin_
Definition: selectorRandomPoints.hpp:43
pFlow::selectorRandomPoints::selectedPoints_
uint32Vector selectedPoints_
Definition: selectorRandomPoints.hpp:40
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::selectorRandomPoints::selectedPoints
const uint32Vector & selectedPoints() const final
Definition: selectorRandomPoints.hpp:83
pFlow::selectorRandomPoints::selectorRandomPoints
selectorRandomPoints(const pointStructure &pStruct, const dictionary &dict)
Definition: selectorRandomPoints.cpp:78
pFlow::selectorRandomPoints::TypeInfo
TypeInfo("selector<randomPoints>")
pFlow
Definition: demGeometry.hpp:27
pFlow::selectorRandomPoints::number_
uint32 number_
Definition: selectorRandomPoints.hpp:49
pStructSelector.hpp
pFlow::selectorRandomPoints::end_
uint32 end_
Definition: selectorRandomPoints.hpp:46
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::selectorRandomPoints::add_vCtor
add_vCtor(pStructSelector, selectorRandomPoints, dictionary)
pFlow::selectorRandomPoints
Definition: selectorRandomPoints.hpp:34
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:45
pFlow::selectorRandomPoints::~selectorRandomPoints
~selectorRandomPoints() final=default
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::Vector< uint32 >
pointStructure.hpp
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::selectorRandomPoints::selectAllPointsInRange
bool selectAllPointsInRange()
Definition: selectorRandomPoints.cpp:27