# PhasicFlow: utilities/postprocessPhasicFlow/includeMask.hpp Source File

includeMask.hpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#ifndef __includeMask_hpp__
#define __includeMask_hpp__
#include "virtualConstructor.hpp"
#include "readFromTimeFolder.hpp"
#include "dictionary.hpp"
namespace pFlow
{
class includeMask
{
protected:
word fieldName_;
word fieldType_;
word operatorType_;
readFromTimeFolder& timeFolder_;
static
bool getFieldType(const dictionary& dict, readFromTimeFolder& timeFolder, word& fName, word& fType);
public:
TypeInfo("includeMask");
includeMask(const dictionary& dict, const word& opType, readFromTimeFolder& timeFolder);
virtual ~includeMask() = default;
create_vCtor(
includeMask,
dictionary,
(
const dictionary& dict,
const word& opType,
readFromTimeFolder& timeFolder
),
(dict, opType, timeFolder)
);
word fieldName()const
{
return fieldName_;
}
word fieldType()const
{
return fieldType_;
}
word operatorType()const
{
return operatorType_;
}
auto& timeFolder()
{
return timeFolder_;
}
virtual bool isIncluded(int32 n) const = 0;
bool operator()(int32 n) const
{
return isIncluded(n);
}
static
uniquePtr<includeMask> create(
const dictionary& dict,
const word& opType,
readFromTimeFolder& timeFolder);
};
} // pFlow
#endif //__IncludeMask_hpp__
pFlow::includeMask::create_vCtor
create_vCtor(includeMask, dictionary,(const dictionary &dict, const word &opType, readFromTimeFolder &timeFolder),(dict, opType, timeFolder))
pFlow::includeMask::create
static uniquePtr< includeMask > create(const dictionary &dict, const word &opType, readFromTimeFolder &timeFolder)
Definition: includeMask.cpp:68
pFlow::includeMask::fieldName_
word fieldName_
Definition: includeMask.hpp:36
pFlow::readFromTimeFolder
Definition: readFromTimeFolder.hpp:31
pFlow::includeMask::fieldType
word fieldType() const
Definition: includeMask.hpp:71
pFlow::includeMask::getFieldType
static bool getFieldType(const dictionary &dict, readFromTimeFolder &timeFolder, word &fName, word &fType)
Definition: includeMask.cpp:41
pFlow::includeMask::isIncluded
virtual bool isIncluded(int32 n) const =0
pFlow::word
std::string word
Definition: builtinTypes.hpp:63
readFromTimeFolder.hpp
pFlow::includeMask
Definition: includeMask.hpp:33
pFlow::includeMask::timeFolder_
readFromTimeFolder & timeFolder_
Definition: includeMask.hpp:42
pFlow
Definition: demComponent.hpp:28
n
int32 n
Definition: NBSCrossLoop.hpp:24
pFlow::includeMask::TypeInfo
TypeInfo("includeMask")
pFlow::int32
int int32
Definition: builtinTypes.hpp:53
dictionary.hpp
pFlow::includeMask::timeFolder
auto & timeFolder()
Definition: includeMask.hpp:81
pFlow::includeMask::operatorType_
word operatorType_
Definition: includeMask.hpp:40
virtualConstructor.hpp
pFlow::includeMask::~includeMask
virtual ~includeMask()=default
pFlow::includeMask::operator()
bool operator()(int32 n) const
Definition: includeMask.hpp:88
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::includeMask::fieldName
word fieldName() const
Definition: includeMask.hpp:66
pFlow::includeMask::operatorType
word operatorType() const
Definition: includeMask.hpp:76
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::includeMask::fieldType_
word fieldType_
Definition: includeMask.hpp:38
pFlow::timeFolder
Definition: timeFolder.hpp:32
pFlow::includeMask::includeMask
includeMask(const dictionary &dict, const word &opType, readFromTimeFolder &timeFolder)
Definition: includeMask.cpp:24