# PhasicFlow: src/phasicFlow/setFieldList/setFieldEntry.hpp Source File

setFieldEntry.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 __setFieldEntry_hpp__
#define __setFieldEntry_hpp__
#include "twoPartEntry.hpp"
#include "pointFields.hpp"
#include "repository.hpp"
#include "indexContainer.hpp"
namespace pFlow
{
class setFieldEntry
{
protected:
twoPartEntry entry_;
public:
setFieldEntry(const dataEntry& entry);
setFieldEntry(const setFieldEntry&) = default;
setFieldEntry(setFieldEntry&&) = default;
setFieldEntry& operator=(const setFieldEntry&) = default;
setFieldEntry& operator=(setFieldEntry&&) = default;
~setFieldEntry()=default;
word fieldName()const;
template <typename Type>
bool checkForType()const;
template <typename Type>
bool checkForTypeAndValue()const;
bool checkForTypeAndValueAll()const;
template <typename Type>
void* setPointFieldDefaultValueNew
(
repository& owner,
pointStructure& pStruct,
bool verbose = false
);
template<typename Type>
void* setPointFieldDefaultValueStdNew
(
repository& owner,
pointStructure& pStruct,
bool verbose = false
);
void* setPointFieldDefaultValueNewAll
(
repository& owner,
pointStructure& pStruct,
bool verbose = false
);
template <typename Type>
void* setPointFieldSelected
(
repository& owner,
int32IndexContainer& selected,
bool verbose = false
);
template <typename Type>
void* setPointFieldSelectedStd
(
repository& owner,
int32IndexContainer& selected,
bool verbose = false
);
void* setPointFieldSelectedAll
(
repository& owner,
int32IndexContainer& selected,
bool verbose = false
);
};
} // pFlow
#include "setFieldEntryTemplates.cpp"
#endif
twoPartEntry.hpp
pFlow::setFieldEntry::checkForTypeAndValueAll
bool checkForTypeAndValueAll() const
Definition: setFieldEntry.cpp:37
pFlow::setFieldEntry::setPointFieldDefaultValueNewAll
void * setPointFieldDefaultValueNewAll(repository &owner, pointStructure &pStruct, bool verbose=false)
Definition: setFieldEntry.cpp:61
setFieldEntryTemplates.cpp
pFlow::setFieldEntry::operator=
setFieldEntry & operator=(const setFieldEntry &)=default
pFlow::twoPartEntry
Definition: twoPartEntry.hpp:36
pFlow::word
std::string word
Definition: builtinTypes.hpp:63
pointFields.hpp
pFlow::setFieldEntry::setPointFieldSelectedStd
void * setPointFieldSelectedStd(repository &owner, int32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:176
pFlow
Definition: demComponent.hpp:28
pFlow::setFieldEntry::fieldName
word fieldName() const
Definition: setFieldEntry.cpp:32
repository.hpp
pFlow::pointStructure
Definition: pointStructure.hpp:44
pFlow::dataEntry
Definition: dataEntry.hpp:40
pFlow::setFieldEntry::setPointFieldDefaultValueNew
void * setPointFieldDefaultValueNew(repository &owner, pointStructure &pStruct, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:41
pFlow::setFieldEntry::~setFieldEntry
~setFieldEntry()=default
pFlow::setFieldEntry::checkForType
bool checkForType() const
Definition: setFieldEntryTemplates.cpp:23
pFlow::setFieldEntry::setPointFieldSelected
void * setPointFieldSelected(repository &owner, int32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:111
pStruct
auto & pStruct
Definition: setPointStructure.hpp:24
pFlow::setFieldEntry::checkForTypeAndValue
bool checkForTypeAndValue() const
Definition: setFieldEntryTemplates.cpp:30
pFlow::setFieldEntry
Definition: setFieldEntry.hpp:33
pFlow::setFieldEntry::entry_
twoPartEntry entry_
Definition: setFieldEntry.hpp:37
pFlow::setFieldEntry::setPointFieldSelectedAll
void * setPointFieldSelectedAll(repository &owner, int32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntry.cpp:104
pFlow::repository
Definition: repository.hpp:34
pFlow::setFieldEntry::setFieldEntry
setFieldEntry(const dataEntry &entry)
Definition: setFieldEntry.cpp:25
indexContainer.hpp
pFlow::setFieldEntry::setPointFieldDefaultValueStdNew
void * setPointFieldDefaultValueStdNew(repository &owner, pointStructure &pStruct, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:76
pFlow::indexContainer< int32 >