MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / sampledSets

Class sampledSets

src/sampling/sampledSet/sampledSets/sampledSets.H:63–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61\*---------------------------------------------------------------------------*/
62
63class sampledSets
64:
65 public functionObject,
66 public PtrList<sampledSet>
67{
68 // Private classes
69
70 //- Class used for grouping field types
71 template<class Type>
72 class fieldGroup
73 :
74 public DynamicList<word>
75 {
76 public:
77
78 //- The set formatter
79 autoPtr<writer<Type>> formatter;
80
81 //- Construct null
82 fieldGroup()
83 :
84 DynamicList<word>(0),
85 formatter(nullptr)
86 {}
87
88 //- Construct for a particular format
89 fieldGroup(const word& writeFormat)
90 :
91 DynamicList<word>(0),
92 formatter(writer<Type>::New(writeFormat))
93 {}
94
95 //- Reset format and field list
96 void clear()
97 {
98 DynamicList<word>::clear();
99 formatter.clear();
100 }
101
102 //- Assign a new formatter
103 void operator=(const word& writeFormat)
104 {
105 formatter = writer<Type>::New(writeFormat);
106 }
107
108 };
109
110
111 //- Class used for sampling volFields
112 template<class Type>
113 class volFieldSampler
114 :
115 public List<Field<Type>>
116 {
117 //- Name of this collection of values
118 const word name_;
119
120 public:

Callers 1

sampledSets.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected