# PhasicFlow: src/phasicFlow/structuredData/pointStructure/selectors/selectRange/selectRange.hpp Source File

selectRange.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 __selectRange_hpp__
#define __selectRange_hpp__
#include "pStructSelector.hpp"
#include "pointStructure.hpp"
namespace pFlow
{
class dictionary;
class selectRange
:
public pStructSelector
{
protected:
int32Vector selectedPoints_;
// begin index
int32 begin_;
// end index
int32 end_;
// stride
int32 stride_;
void selectAllPointsInRange();
public:
// - type info
TypeInfo("selectRange");
selectRange(const pointStructure& pStruct, const dictionary& dict);
add_vCtor
(
pStructSelector,
selectRange,
dictionary
);
virtual ~selectRange() = default;
virtual const int32Vector& selectedPoinsts()const override
{
return selectedPoints_;
}
virtual int32Vector& selectedPoinsts() override
{
return selectedPoints_;
}
};
} // pFlow
#endif //__pStructSelector_hpp__
pFlow::selectRange::selectedPoinsts
virtual int32Vector & selectedPoinsts() override
Definition: selectRange.hpp:77
pFlow::selectRange::selectAllPointsInRange
void selectAllPointsInRange()
Definition: selectRange.cpp:25
pFlow::selectRange::~selectRange
virtual ~selectRange()=default
pFlow::selectRange::selectedPoinsts
virtual const int32Vector & selectedPoinsts() const override
Definition: selectRange.hpp:72
pFlow::selectRange::selectRange
selectRange(const pointStructure &pStruct, const dictionary &dict)
Definition: selectRange.cpp:41
pFlow
Definition: demComponent.hpp:28
pStructSelector.hpp
pFlow::pointStructure
Definition: pointStructure.hpp:44
pFlow::selectRange
Definition: selectRange.hpp:34
pFlow::int32
int int32
Definition: builtinTypes.hpp:53
pFlow::selectRange::begin_
int32 begin_
Definition: selectRange.hpp:43
pFlow::selectRange::end_
int32 end_
Definition: selectRange.hpp:46
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:35
pFlow::selectRange::TypeInfo
TypeInfo("selectRange")
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::selectRange::add_vCtor
add_vCtor(pStructSelector, selectRange, dictionary)
pFlow::selectRange::selectedPoints_
int32Vector selectedPoints_
Definition: selectRange.hpp:40
pFlow::Vector< int32 >
pointStructure.hpp
pFlow::selectRange::stride_
int32 stride_
Definition: selectRange.hpp:49
pFlow::dictionary
Definition: dictionary.hpp:38