www.cemf.ir
countFields.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 #ifndef __countFields_hpp__
21 #define __countFields_hpp__
22 
23 
24 #include "dictionary.hpp"
25 
26 
27 namespace pFlow
28 {
29 
30 
31 class repository;
32 
34 {
35 protected:
36 
38 
40 
42 
43 public:
44 
45  TypeInfo("countFields");
46 
47  countFields(const dictionary& dict);
48 
49  auto& dict()
50  {
51  return dict_;
52  }
53 
54  const auto& dict()const
55  {
56  return dict_;
57  }
58 
59  const wordList& variableNames()const
60  {
61  return variableNames_;
62  }
63  const uint32List& countedValues()const
64  {
65  return countedValues_;
66  }
67 
68  // requires a class to read pointField from timefolder
69  bool process(repository& rep);
70 
71 };
72 
73 
74 }
75 
76 
77 #endif //__countFields_hpp__
pFlow::countFields::dict
const auto & dict() const
Definition: countFields.hpp:54
pFlow::List< word >
pFlow::countFields::TypeInfo
TypeInfo("countFields")
pFlow::countFields::process
bool process(repository &rep)
Definition: countFields.cpp:37
pFlow
Definition: demGeometry.hpp:27
pFlow::countFields::dict
auto & dict()
Definition: countFields.hpp:49
pFlow::countFields::countedValues
const uint32List & countedValues() const
Definition: countFields.hpp:63
pFlow::countFields::variableNames
const wordList & variableNames() const
Definition: countFields.hpp:59
dictionary.hpp
pFlow::countFields
Definition: countFields.hpp:33
pFlow::countFields::countFields
countFields(const dictionary &dict)
Definition: countFields.cpp:27
pFlow::repository
Definition: repository.hpp:34
pFlow::countFields::countedValues_
uint32List countedValues_
Definition: countFields.hpp:41
pFlow::countFields::dict_
dictionary dict_
Definition: countFields.hpp:37
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::countFields::variableNames_
wordList variableNames_
Definition: countFields.hpp:39