www.cemf.ir
setFieldEntry.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 __setFieldEntry_hpp__
23 #define __setFieldEntry_hpp__
24 
25 #include "twoPartEntry.hpp"
26 #include "pointFields.hpp"
27 #include "repository.hpp"
28 #include "indexContainer.hpp"
29 
30 namespace pFlow
31 {
32 
34 {
35 protected:
36 
38 
39 public:
40 
42 
43  setFieldEntry(const dataEntry& entry);
44 
45  setFieldEntry(const setFieldEntry&) = default;
46 
47  setFieldEntry(setFieldEntry&&) = default;
48 
49  setFieldEntry& operator=(const setFieldEntry&) = default;
50 
52 
53  ~setFieldEntry()=default;
54 
56 
57  word fieldName()const;
58 
59  template <typename Type>
60  bool checkForType()const;
61 
62  template <typename Type>
63  bool checkForTypeAndValue()const;
64 
65  bool checkForTypeAndValueAll()const;
66 
67  template <typename Type>
70  (
72  bool verbose = false
73  );
74 
77  (
79  bool verbose = false
80  );
81 
82  template <typename Type>
84  (
85  repository& owner,
86  uint32IndexContainer& selected,
87  bool verbose = false
88  );
89 
90 
91 
93  (
94  repository& owner,
95  uint32IndexContainer& selected,
96  bool verbose = false
97  );
98 
99 };
100 
101 } // pFlow
102 
103 
105 
106 #endif
twoPartEntry.hpp
pFlow::setFieldEntry::checkForTypeAndValueAll
bool checkForTypeAndValueAll() const
Definition: setFieldEntry.cpp:37
pFlow::setFieldEntry::setPointFieldSelectedAll
bool setPointFieldSelectedAll(repository &owner, uint32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntry.cpp:124
setFieldEntryTemplates.cpp
pFlow::setFieldEntry::operator=
setFieldEntry & operator=(const setFieldEntry &)=default
pFlow::twoPartEntry
Definition: twoPartEntry.hpp:36
pFlow::setFieldEntry::setPointFieldDefaultValueNew
uniquePtr< pointField_H< Type > > setPointFieldDefaultValueNew(pointStructure &pStruct, bool verbose=false)
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pointFields.hpp
pFlow::setFieldEntry::setPointFieldSelected
bool setPointFieldSelected(repository &owner, uint32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:76
pFlow
Definition: demGeometry.hpp:27
pFlow::setFieldEntry::fieldName
word fieldName() const
Definition: setFieldEntry.cpp:32
repository.hpp
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::dataEntry
Data entry to be used in dictionries.
Definition: dataEntry.hpp:48
pFlow::setFieldEntry::~setFieldEntry
~setFieldEntry()=default
pFlow::setFieldEntry::checkForType
bool checkForType() const
Definition: setFieldEntryTemplates.cpp:23
pStruct
auto & pStruct
Definition: setPointStructure.hpp:24
pFlow::setFieldEntry::checkForTypeAndValue
bool checkForTypeAndValue() const
Definition: setFieldEntryTemplates.cpp:30
pFlow::setFieldEntry
Definition: setFieldEntry.hpp:33
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::setFieldEntry::setPointFieldDefaultValueNewAll
uniquePtr< IOobject > setPointFieldDefaultValueNewAll(pointStructure &pStruct, bool verbose=false)
Definition: setFieldEntry.cpp:64
pFlow::setFieldEntry::entry_
twoPartEntry entry_
Definition: setFieldEntry.hpp:37
pFlow::repository
Definition: repository.hpp:34
pFlow::setFieldEntry::setFieldEntry
setFieldEntry(const dataEntry &entry)
Definition: setFieldEntry.cpp:25
indexContainer.hpp
pFlow::indexContainer
It holds two vectors of indecis on Host and Device.
Definition: indexContainer.hpp:39