Nektar++
Loading...
Searching...
No Matches
BndCondPhysOpImpl.hpp
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File: BndCondPhysOpImpl.hpp
4//
5// For more information, please see: http://www.nektar.info
6//
7// The MIT License
8//
9// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10// Department of Aeronautics, Imperial College London (UK), and Scientific
11// Computing and Imaging Institute, University of Utah (USA).
12//
13// Permission is hereby granted, free of charge, to any person obtaining a
14// copy of this software and associated documentation files (the "Software"),
15// to deal in the Software without restriction, including without limitation
16// the rights to use, copy, modify, merge, publish, distribute, sublicense,
17// and/or sell copies of the Software, and to permit persons to whom the
18// Software is furnished to do so, subject to the following conditions:
19//
20// The above copyright notice and this permission notice shall be included
21// in all copies or substantial portions of the Software.
22//
23// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29// DEALINGS IN THE SOFTWARE.
30//
31// Description:
32//
33///////////////////////////////////////////////////////////////////////////////
34
35#pragma once
36
37#include <map>
38
40
42
44
46
49
51
52using namespace Nektar;
53
55{
56
57template <typename ExecSpace, typename TData>
58class BndCondPhysOpImpl : public BndCondPhysOp<TData>
59{
60 using MemSpace = typename ExecSpace::memory_space;
61
62public:
64 const std::vector<std::string> &components)
65 : BndCondPhysOp<TData>(expansionList, components)
66 {
67 auto session = this->m_expansionList->GetSession();
69 auto graph = this->m_expansionList->GetGraph();
70 unsigned int nhomo = 1;
71 session->LoadParameter("HomModesZ", nhomo, 1);
72 m_numComp = components.size();
73 const unsigned int nComp = m_numComp;
74
75 // Create boundary conditions
81
84
85 // Position of the region in GetBndCondExpansions(), which is not the
86 // region id - ids need be neither contiguous nor zero based - and not
87 // the storage block index either, because periodic regions are skipped
88 // below while the expansion list still holds them. Anything indexing
89 // the expansion list, such as the boundary normals, needs this.
90 unsigned int regionOrdinal = 0;
91
92 // Loop all boundary regions to create Fields and Operators
93 for (auto &it : bregions)
94 {
95 const unsigned int thisOrdinal = regionOrdinal++;
96
97 auto regionId = it.first;
98 auto collectionIter = bconditions.find(regionId);
99
100 ASSERTL1(collectionIter != bconditions.end(),
101 "Unable to locate collection " + std::to_string(regionId));
102
104 (*collectionIter).second;
105
106 // Record what kind of condition each component carries here. The
107 // values of every type are stored alike - what differs is how a
108 // consumer must interpret them - so the type is kept alongside
109 // rather than used to select what gets evaluated. The user defined
110 // tag is kept with it: a condition such as an adiabatic wall is an
111 // ordinary Dirichlet condition as far as this operator goes, and
112 // only the tag says otherwise.
113 std::vector<SpatialDomains::BoundaryConditionType> bndCondType(
115 std::vector<std::string> bndUserDefined(nComp);
116 bool regionTimeDependent = false;
117 unsigned int numPeriodic = 0;
118 for (unsigned int nc = 0; nc < nComp; nc++)
119 {
120 auto cndMapIter = bndCondMap->find(components[nc]);
121
122 ASSERTL1(cndMapIter != bndCondMap->end(),
123 "Unable to locate condition map.");
124
125 bndCondType[nc] =
126 (*cndMapIter).second->GetBoundaryConditionType();
127 bndUserDefined[nc] = (*cndMapIter).second->GetUserDefined();
128
129 regionTimeDependent = regionTimeDependent ||
130 (*cndMapIter).second->IsTimeDependent();
131
132 numPeriodic += (bndCondType[nc] == SpatialDomains::ePeriodic);
133 }
134
135 // Periodic boundaries carry no values of their own: the interior
136 // trace strategy pairs them with their partner instead.
137 if (numPeriodic == nComp)
138 {
139 continue;
140 }
141
142 ASSERTL0(numPeriodic == 0,
143 "Boundary region " + std::to_string(regionId) +
144 " is periodic for some components but not others.");
145
146 // Note use just the first component as we are just looking for the
147 // boundary expansion list
148 auto conditionMapIter = bndCondMap->find(components[0]);
149
150 ASSERTL1(conditionMapIter != bndCondMap->end(),
151 "Unable to locate condition map.");
152
153 // Get BoundaryCondition(SharedPtr)
154 bc = (*conditionMapIter).second;
155
156 // Create boundary condition expansion
158 session, *(it.second), graph, true, components[0], false,
159 bc->GetComm(), Collections::eNoImpType);
160
161 // Set data warehouse for device support operators
162 bcExpList->SetDataWarehouse();
163
164 // This region's storage block, and where its elements sit in it.
165 const unsigned reg = m_regionNumPhys.size();
166 m_regionNumPhys.push_back(bcExpList->GetTotPoints());
167 m_regionOrdinal.push_back(thisOrdinal);
168 m_bndCondType.push_back(bndCondType);
169 {
170 // Split "Cond:key=value:key=value" into the condition and its
171 // parameters. Everything downstream compares against the
172 // condition alone, so a region carrying parameters is claimed
173 // by the same operator as one without.
174 std::vector<std::string> cond(bndUserDefined.size());
175 std::vector<std::map<std::string, std::string>> pars(
176 bndUserDefined.size());
177
178 for (size_t c = 0; c < bndUserDefined.size(); ++c)
179 {
180 SplitBndUserDefined(bndUserDefined[c], cond[c], pars[c]);
181 }
182
183 m_bndUserDefined.push_back(cond);
184 m_bndUserDefinedParams.push_back(pars);
185 }
186 m_regionTimeDependent.push_back(regionTimeDependent);
187
189 this->m_hasTimeDependentBndPhys || regionTimeDependent;
190
191 for (size_t e = 0; e < bcExpList->GetExpSize(); ++e)
192 {
193 // A trace is read back out of the region it belongs to, at the
194 // offset its boundary expansion already uses.
195 const auto tid = bcExpList->GetExp(e)->GetGeom()->GetGlobalID();
196 m_traceIdToBlk[tid] = reg;
197 m_traceIdToOffset[tid] = bcExpList->GetPhys_Offset(e);
198 }
199
200 // Gather equations for each field/component
201 std::vector<LibUtilities::EquationSharedPtr> listOfEquations;
202 for (unsigned int nc = 0; nc < nComp; nc++)
203 {
204 // Get map for each field
205 auto cndMapIter = bndCondMap->find(components[nc]);
206
207 // Get BoundaryCondition and extract equation
208 bc = (*cndMapIter).second;
209 listOfEquations.push_back(bc->GetEquation());
210 }
211
212 // Create fields for evaluating BCs into
213 auto blocks_phys =
214 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
215 bcExpList, MultiRegions::UnitInterleaveWidths(bcExpList));
216 this->m_wsp_phys.push_back(
218 "Boundary condition phys", blocks_phys, nComp, nhomo));
219
220 // Initialize memory regions
221 m_wsp_phys.back().template Initialize<MemSpace>(0.0);
222
223 // The Expression launches on the stream of each block.
224 m_regionStreams.emplace_back();
225 for (unsigned int blk = 0; blk < blocks_phys.size(); ++blk)
226 {
227 m_regionStreams.back().push_back(blk + 1);
228 }
229
230 // Create operators for this boundary condition. Every component of
231 // a kept region is evaluated: each has a condition of some type,
232 // and each type supplies an equation through GetEquation().
234 bcExpList, components, ExecSpace::name));
235 this->m_expressionOps.back()->SetComponentMask(
236 std::vector<bool>(nComp, true));
237
238 // Set boundary conditions for each component in this boundary
239 // region
240 this->m_expressionOps.back()->SetExpressions(listOfEquations);
241 }
242
243 // Evaluate every region into its own storage block. Going through
244 // UpdateBndPhys() rather than calling EvaluateRegion() directly
245 // marks the values initialised, so a later call redoes only the
246 // regions that depend on time.
247 // The storage is created once and refilled in place, so its pointers
248 // stay fixed across updates.
249 for (auto numPhys : m_regionNumPhys)
250 {
252 "Boundary condition values", m_numComp * numPhys));
253 }
254 this->UpdateBndPhys(static_cast<TData>(0.0));
255 }
256
257 /**
258 * @brief Evaluate boundary region @p reg into its own storage block.
259 *
260 * Separate from the constructor so a region whose values change - time
261 * dependent or user defined - can be refreshed on its own.
262 */
263 void EvaluateRegion(const unsigned int reg)
264 {
265 auto &wsp = m_wsp_phys[reg];
266
267 // Gather the blocks without their padding, into the boundary
268 // expansion's own component-major phys layout - which is the layout
269 // the offsets in m_traceIdToOffset index into.
270 const unsigned int nCompHomo =
271 wsp.GetNumComponents() * wsp.GetNumHomoModes();
272 const size_t numPhys = m_regionNumPhys[reg];
273
274 ASSERTL1(nCompHomo * numPhys == m_bndPhys[reg].size(),
275 "Unexpected boundary phys size.");
276
277 auto dst = m_bndPhys[reg].template GetPtr<MemSpace, WriteOnly>(
278 this->m_opStreamID);
279
280 // The block streams overwrite what the operator stream reads.
281 ReleaseStreams<ExecSpace>(this->m_opStreamID, m_regionStreams[reg]);
282
283 m_expressionOps[reg]->Apply(wsp, wsp);
284
285 size_t offset = 0;
286 for (unsigned int blk = 0; blk < wsp.GetBlocks().size(); ++blk)
287 {
288 const unsigned int streamID = blk + 1;
289
290 auto &block = wsp.GetBlocks()[blk];
291 ASSERTL1(block.GetInterleaveWidth() == 1,
292 "Boundary condition phys is not interleaved.");
293
294 auto src = block.template GetPtr<MemSpace, ReadOnly>(streamID);
295 const size_t nSize = block.GetNumElements() * block.GetNumData();
296 for (unsigned int n = 0; n < nCompHomo; ++n)
297 {
298 Math::copyKernel<ExecSpace>(nSize, src + n * block.CompSize(),
299 dst + n * numPhys + offset,
300 streamID);
301 }
302 offset += nSize;
303 }
304
305 ASSERTL1(offset == numPhys, "Unexpected boundary phys size.");
306
307 // The values are read on the operator stream.
308 JoinStreams<ExecSpace>(this->m_opStreamID, m_regionStreams[reg]);
309 }
310
311 // className - for OperatorFactory
312 static std::string className;
313
314 // instantiation function for CreatorFunction in OperatorFactory
315 static std::unique_ptr<Operator<TData>> Instantiate(
316 const MultiRegions::ExpListSharedPtr &expansionList,
317 const std::vector<std::string> &components)
318 {
319 return std::make_unique<BndCondPhysOpImpl<ExecSpace, TData>>(
320 expansionList, components);
321 }
322
323protected:
324 unsigned int m_numComp = 0;
325
326 std::vector<LibUtilities::Field<TData, FieldState::Phys>> m_wsp_phys;
327 std::vector<std::shared_ptr<ExpressionOp<TData>>> m_expressionOps;
328
329 /// Boundary values, one storage block per non-periodic boundary region, in
330 /// that region's own component-major phys layout. A region can therefore
331 /// be re-evaluated on its own, and the memory manager sees the refresh of
332 /// just that region.
333 std::vector<LibUtilities::MemoryRegion<TData>> m_bndPhys;
334 /// Phys points in each region, i.e. the stride between its components.
335 std::vector<size_t> m_regionNumPhys;
336
337 /// Position of each block's region in GetBndCondExpansions(), which the
338 /// block index does not give once periodic regions are skipped.
339 std::vector<unsigned int> m_regionOrdinal;
340 /// Condition type each component of a block carries, indexed as m_bndPhys.
341 /// The values themselves are stored the same way whatever the type; this
342 /// is what tells a consumer how to interpret them.
343 std::vector<std::vector<SpatialDomains::BoundaryConditionType>>
345 /// USERDEFINEDTYPE of each component, indexed as m_bndCondType. Empty when
346 /// the session gives none. Left as the session's string rather than mapped
347 /// to a code: the tags are solver specific - "WallAdiabatic" means nothing
348 /// here - so the solver that understands them does the mapping.
349 /// Kept so that a boundary tag parameter can be evaluated against the
350 /// session's own interpreter, long after construction.
352 std::vector<std::vector<std::string>> m_bndUserDefined;
353 /// Parameters carried on each tag, by lower-cased name. Indexed as
354 /// #m_bndUserDefined.
355 std::vector<std::vector<std::map<std::string, std::string>>>
357 /// Whether any component of a region depends on time, so UpdateBndPhys()
358 /// re-evaluates only the regions that can actually have changed.
359 std::vector<bool> m_regionTimeDependent;
360 /// Streams the Expression of each region launches on.
361 std::vector<std::vector<unsigned int>> m_regionStreams;
362
363 // given trace elmtid (tid) return which region it is in
364 std::map<size_t, unsigned> m_traceIdToBlk;
365 // given trace elmtid (tid) offset in that region
366 std::map<size_t, size_t> m_traceIdToOffset;
367
368 // access the data associated with trace id == tid and the component offset
369 size_t v_GetNumBlocks() const override
370 {
371 return m_bndPhys.size();
372 }
373
375 const unsigned blk, const unsigned comp) const override
376 {
377 ASSERTL1(blk < m_bndCondType.size(), "Block index out of range");
378 ASSERTL1(comp < m_bndCondType[blk].size(),
379 "Component index out of range");
380 return m_bndCondType[blk][comp];
381 }
382
383 void v_UpdateBndPhys(const TData &time) override
384 {
385 for (unsigned int reg = 0; reg < m_bndPhys.size(); ++reg)
386 {
387 // The constructor has already evaluated everything, so on a
388 // re-entry only the regions that depend on time can have moved.
389 if (this->m_bndPhysInitialised && !m_regionTimeDependent[reg])
390 {
391 continue;
392 }
393
394 m_expressionOps[reg]->SetTime(time);
395 EvaluateRegion(reg);
396 }
397 }
398
399 /**
400 * @brief Split a boundary tag into its condition and named parameters.
401 *
402 * `WallViscous:twall=300.15` gives `WallViscous` and `{twall: "300.15"}`.
403 * The colon separation follows the `Rotated:` periodic tag; the names are
404 * this convention's own, positional fields being unreadable once a
405 * condition takes more than one optional parameter.
406 *
407 * A field with no `=` is kept as a parameter with an empty value rather
408 * than rejected, so a future positional or flag-like use has somewhere to
409 * go without changing the parsing.
410 */
411 static void SplitBndUserDefined(const std::string &tag,
412 std::string &condition,
413 std::map<std::string, std::string> &params)
414 {
415 std::vector<std::string> fields;
416 StringUtils::Split(fields, tag, StringUtils::IsAnyOf(":"));
417
418 condition = fields.empty() ? std::string() : fields[0];
419 StringUtils::Trim(condition);
420
421 for (size_t f = 1; f < fields.size(); ++f)
422 {
423 const auto eq = fields[f].find('=');
424
425 std::string key =
426 (eq == std::string::npos) ? fields[f] : fields[f].substr(0, eq);
427 std::string val = (eq == std::string::npos)
428 ? std::string()
429 : fields[f].substr(eq + 1);
433
434 params[key] = val;
435 }
436 }
437
438 bool v_GetBndUserDefinedParam(const unsigned blk, const unsigned comp,
439 const std::string &name,
440 TData &value) const override
441 {
442 ASSERTL1(blk < m_bndUserDefinedParams.size(),
443 "Block index out of range");
444 ASSERTL1(comp < m_bndUserDefinedParams[blk].size(),
445 "Component index out of range");
446
447 std::string key = name;
449
450 const auto &params = m_bndUserDefinedParams[blk][comp];
451 const auto it = params.find(key);
452
453 if (it == params.end())
454 {
455 return false;
456 }
457
458 ASSERTL0(!it->second.empty(), "Boundary tag parameter '" + name +
459 "' on block " + std::to_string(blk) +
460 " has no value; expected " + name +
461 "=<expression>.");
462
463 // Evaluated through the *session's* interpreter, not a bare one, so
464 // that the expression may name session parameters - twall=TInf - and
465 // not only arithmetic and built-in constants. The Rotated periodic tag
466 // uses a bare interpreter and so gets PI/15 but would not get TInf;
467 // this is the more useful of the two and costs nothing.
468 ASSERTL0(m_session, "No session available to evaluate boundary tag "
469 "parameter '" +
470 name + "'.");
471
472 auto interp = m_session->GetInterpreter();
473 value = interp->Evaluate(interp->DefineFunction("", it->second));
474
475 return true;
476 }
477
478 const std::string &v_GetBndUserDefined(const unsigned blk,
479 const unsigned comp) const override
480 {
481 ASSERTL1(blk < m_bndUserDefined.size(), "Block index out of range");
482 ASSERTL1(comp < m_bndUserDefined[blk].size(),
483 "Component index out of range");
484 return m_bndUserDefined[blk][comp];
485 }
486
487 void v_GetTraceLocation(const size_t tid, unsigned &blk, size_t &offset,
488 size_t &compOffset) override
489 {
490 ASSERTL1(m_traceIdToBlk.count(tid), " Cannot find trace id in map");
491 blk = m_traceIdToBlk[tid];
492 offset = m_traceIdToOffset[tid];
493
494 // the components of a region follow one another, so the stride is the
495 // number of phys points in the region
496 compOffset = m_regionNumPhys[blk];
497 }
498
499 bool v_HasTrace(const size_t tid) const override
500 {
501 return m_traceIdToBlk.count(tid) > 0;
502 }
503
504 const TData *v_GetBlockPtr(const unsigned blk,
505 const unsigned int streamID) override
506 {
507 ASSERTL1(blk < m_bndPhys.size(), "Block index out of range");
508 return m_bndPhys[blk].template GetPtr<MemSpace, ReadOnly>(streamID);
509 }
510
511 TData *v_UpdateBlockPtr(const unsigned blk,
512 const unsigned int streamID) override
513 {
514 ASSERTL1(blk < m_bndPhys.size(), "Block index out of range");
515 return m_bndPhys[blk].template GetPtr<MemSpace, ReadWrite>(streamID);
516 }
517
518 size_t v_GetBlockCompStride(const unsigned blk) const override
519 {
520 ASSERTL1(blk < m_regionNumPhys.size(), "Block index out of range");
521 return m_regionNumPhys[blk];
522 }
523
524 const TData *v_GetBlockNormals(const unsigned blk) override
525 {
526 ASSERTL1(blk < m_regionOrdinal.size(), "Block index out of range");
527
528 // Keyed on the region's position in GetBndCondExpansions() rather than
529 // on the block, since the two part company as soon as the session has
530 // a periodic boundary.
531 return this->m_dataWarehouse->template GetData<MemSpace>(
533 }
534};
535
536} // namespace Nektar::MultiRegions::detail
#define ASSERTL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Public interface of the Expression operator, which evaluates analytical expressions at the quadrature...
LibUtilities::SessionReaderSharedPtr session
SpatialDomains::MeshGraphSharedPtr graph
A Field represents expansion data to be operated on.
A MemoryRegion represents a memory region.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
Outward normals of one boundary region, in that region's boundary expansion layout.
void UpdateBndPhys(const TData &time=0.0)
Bring the stored values up to date for time time.
bool m_bndPhysInitialised
Set once the constructor's initial evaluation has happened, so that UpdateBndPhys() can skip regions ...
unsigned int m_opStreamID
Stream the storage is refilled on. See SetStreamID().
Whole-field interface of the Expression operator: evaluates one analytical expression per field compo...
MultiRegions::ExpListSharedPtr m_expansionList
Expansion list the operator acts on.
Definition Operator.hpp:349
LibUtilities::NekDataWarehouseSharedPtr m_dataWarehouse
Data warehouse shared with the other operators on the expansion list, used to build and cache shared ...
Definition Operator.hpp:355
size_t v_GetBlockCompStride(const unsigned blk) const override
void EvaluateRegion(const unsigned int reg)
Evaluate boundary region reg into its own storage block.
static void SplitBndUserDefined(const std::string &tag, std::string &condition, std::map< std::string, std::string > &params)
Split a boundary tag into its condition and named parameters.
std::vector< std::shared_ptr< ExpressionOp< TData > > > m_expressionOps
std::vector< LibUtilities::MemoryRegion< TData > > m_bndPhys
Boundary values, one storage block per non-periodic boundary region, in that region's own component-m...
std::vector< unsigned int > m_regionOrdinal
Position of each block's region in GetBndCondExpansions(), which the block index does not give once p...
std::vector< size_t > m_regionNumPhys
Phys points in each region, i.e. the stride between its components.
std::vector< std::vector< SpatialDomains::BoundaryConditionType > > m_bndCondType
Condition type each component of a block carries, indexed as m_bndPhys. The values themselves are sto...
TData * v_UpdateBlockPtr(const unsigned blk, const unsigned int streamID) override
std::vector< std::vector< std::map< std::string, std::string > > > m_bndUserDefinedParams
Parameters carried on each tag, by lower-cased name. Indexed as m_bndUserDefined.
std::vector< std::vector< std::string > > m_bndUserDefined
std::vector< std::vector< unsigned int > > m_regionStreams
Streams the Expression of each region launches on.
bool v_GetBndUserDefinedParam(const unsigned blk, const unsigned comp, const std::string &name, TData &value) const override
static std::unique_ptr< Operator< TData > > Instantiate(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_wsp_phys
const TData * v_GetBlockPtr(const unsigned blk, const unsigned int streamID) override
bool v_HasTrace(const size_t tid) const override
const TData * v_GetBlockNormals(const unsigned blk) override
SpatialDomains::BoundaryConditionType v_GetBndCondType(const unsigned blk, const unsigned comp) const override
BndCondPhysOpImpl(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
std::vector< bool > m_regionTimeDependent
Whether any component of a region depends on time, so UpdateBndPhys() re-evaluates only the regions t...
const std::string & v_GetBndUserDefined(const unsigned blk, const unsigned comp) const override
void v_GetTraceLocation(const size_t tid, unsigned &blk, size_t &offset, size_t &compOffset) override
LibUtilities::SessionReaderSharedPtr m_session
USERDEFINEDTYPE of each component, indexed as m_bndCondType. Empty when the session gives none....
const BoundaryRegionCollection & GetBoundaryRegions(void) const
Definition Conditions.h:273
const BoundaryConditionCollection & GetBoundaryConditions(void) const
Definition Conditions.h:283
Predicate matching any of a set of characters.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT wsp
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::map< int, BoundaryRegionShPtr > BoundaryRegionCollection
Definition Conditions.h:249
std::shared_ptr< BoundaryConditionBase > BoundaryConditionShPtr
Definition Conditions.h:251
std::map< int, BoundaryConditionMapShPtr > BoundaryConditionCollection
Definition Conditions.h:258
std::shared_ptr< BoundaryConditionMap > BoundaryConditionMapShPtr
Definition Conditions.h:257
void Trim(std::string &str)
void ToLower(std::string &str)
Container & Split(Container &result, std::string_view input, Pred pred, TokenCompressMode mode=eTokenCompressOff)
Splits input at characters matching pred into result, which is cleared first. An empty input gives a ...