selectRandom.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 protected:
39 
41 
42  // begin index
44 
45  // end index
47 
48  // stride
50 
52 
53 public:
54 
55  // - type info
56  TypeInfo("selectRandom");
57 
58 
59  selectRandom(const pointStructure& pStruct, const dictionary& dict);
60 
61  add_vCtor
62  (
66  );
67 
68  virtual ~selectRandom() = 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::selectRandom::number_
int32 number_
Definition: selectRandom.hpp:49
pFlow::selectRandom::TypeInfo
TypeInfo("selectRandom")
pFlow::selectRandom::selectRandom
selectRandom(const pointStructure &pStruct, const dictionary &dict)
Definition: selectRandom.cpp:83
pFlow::selectRandom::selectAllPointsInRange
bool selectAllPointsInRange()
Definition: selectRandom.cpp:28
pFlow::selectRandom::add_vCtor
add_vCtor(pStructSelector, selectRandom, dictionary)
pFlow
Definition: demComponent.hpp:28
pStructSelector.hpp
pFlow::selectRandom::selectedPoints_
int32Vector selectedPoints_
Definition: selectRandom.hpp:40
pFlow::pointStructure
Definition: pointStructure.hpp:44
pFlow::selectRandom::begin_
int32 begin_
Definition: selectRandom.hpp:43
pFlow::int32
int int32
Definition: builtinTypes.hpp:53
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:35
pFlow::selectRandom
Definition: selectRandom.hpp:34
pFlow::selectRandom::~selectRandom
virtual ~selectRandom()=default
pFlow::selectRandom::selectedPoinsts
virtual const int32Vector & selectedPoinsts() const override
Definition: selectRandom.hpp:72
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::selectRandom::selectedPoinsts
virtual int32Vector & selectedPoinsts() override
Definition: selectRandom.hpp:77
pFlow::Vector< int32 >
pointStructure.hpp
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::selectRandom::end_
int32 end_
Definition: selectRandom.hpp:46