![]() |
OGS
|
Class template PropertyVector is a std::vector with template parameter PROP_VAL_TYPE. The reason for the derivation of std::vector is the template specialisation for pointer types below.
PROP_VAL_TYPE | typical this is a scalar, a vector or a matrix |
Definition at line 57 of file PropertyVector.h.
#include <PropertyVector.h>
Public Types | |
using | value_type = PROP_VAL_TYPE |
Public Member Functions | |
constexpr std::size_t | getNumberOfTuples () const |
PROP_VAL_TYPE & | getComponent (std::size_t tuple_index, int component) |
Returns the value for the given component stored in the given tuple. | |
PROP_VAL_TYPE const & | getComponent (std::size_t tuple_index, int component) const |
Returns the value for the given component stored in the given tuple. | |
PropertyVectorBase * | clone (std::vector< std::size_t > const &exclude_positions) const override |
constexpr std::size_t | size () const |
constexpr std::ptrdiff_t | ssize () const |
constexpr const PROP_VAL_TYPE * | data () const |
constexpr PROP_VAL_TYPE * | data () |
constexpr PROP_VAL_TYPE * | begin () |
constexpr PROP_VAL_TYPE * | end () |
constexpr const PROP_VAL_TYPE * | cbegin () const |
constexpr const PROP_VAL_TYPE * | cend () const |
constexpr const PROP_VAL_TYPE * | begin () const |
constexpr const PROP_VAL_TYPE * | end () const |
constexpr PROP_VAL_TYPE & | operator[] (std::size_t const pos) |
constexpr PROP_VAL_TYPE const & | operator[] (std::size_t const pos) const |
constexpr void | resize (std::size_t const size) |
constexpr void | resize (std::size_t const size, const PROP_VAL_TYPE &value) |
template<typename R> requires std::ranges::input_range<R> && std::convertible_to<std::ranges::range_value_t<R>, PROP_VAL_TYPE> | |
constexpr void | assign (R &&r) |
constexpr void | push_back (const PROP_VAL_TYPE &value) |
constexpr void | clear () |
constexpr bool | empty () const |
Public Member Functions inherited from MeshLib::PropertyVectorBase | |
virtual | ~PropertyVectorBase ()=default |
MeshItemType | getMeshItemType () const |
std::string const & | getPropertyName () const |
int | getNumberOfGlobalComponents () const |
Protected Member Functions | |
PropertyVector (std::string const &property_name, MeshItemType mesh_item_type, std::size_t n_components) | |
The constructor taking meta information for the data. | |
PropertyVector (std::size_t n_property_values, std::string const &property_name, MeshItemType mesh_item_type, std::size_t n_components) | |
The constructor taking meta information for the data. | |
Protected Member Functions inherited from MeshLib::PropertyVectorBase | |
PropertyVectorBase (std::string property_name, MeshItemType mesh_item_type, std::size_t n_components) |
Private Attributes | |
std::vector< PROP_VAL_TYPE > | data_ |
Friends | |
class | Properties |
Additional Inherited Members | |
Public Attributes inherited from MeshLib::PropertyVectorBase | |
bool | is_for_output = true |
Protected Attributes inherited from MeshLib::PropertyVectorBase | |
int const | _n_components |
MeshItemType const | _mesh_item_type |
std::string const | _property_name |
using MeshLib::PropertyVector< PROP_VAL_TYPE >::value_type = PROP_VAL_TYPE |
Definition at line 62 of file PropertyVector.h.
|
inlineexplicitprotected |
The constructor taking meta information for the data.
property_name | a string describing the property |
mesh_item_type | the values of the property are either assigned to nodes or cells (see enumeration MeshItemType) |
n_components | the number of components of a property |
Definition at line 177 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::PropertyVectorBase().
Referenced by clone().
|
inlineprotected |
The constructor taking meta information for the data.
n_property_values | number of property values (value can be a tuple with several entries) |
property_name | a string describing the property |
mesh_item_type | the values of the property are either assigned to nodes or cells (see enumeration MeshItemType) |
n_components | the number of components of a property |
Definition at line 191 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::PropertyVectorBase(), and data_.
|
inlineconstexpr |
Definition at line 146 of file PropertyVector.h.
References begin(), data_, and end().
Referenced by Vtu2GridDialog::accept(), MeshToolsLib::ElementValueModification::condense(), MeshLib::VtkMeshConverter::convertTypedArray(), copyDoubleValuedFieldDataToPointCloud(), MeshToolsLib::MeshLayerMapper::createStaticLayers(), FileIO::GMSInterface::readMesh(), FileIO::SwmmInterface::readSwmmInputToLineMesh(), FileIO::TetGenInterface::readTetGenMesh(), and writeDataToMesh().
|
inlineconstexpr |
Definition at line 107 of file PropertyVector.h.
References data_.
Referenced by FileIO::SwmmInterface::addResultsToMesh(), assign(), ApplicationUtils::copyFieldPropertyDataToPartitions(), ProcessLib::LIE::PostProcessTool::copyPropertyValues(), MeshToolsLib::createCellProperties(), MeshToolsLib::createIntegrationPointProperties(), MeshToolsLib::createMergedPropertyVector(), MeshToolsLib::createNodeProperties(), createPropertyVector(), anonymous_namespace{MeshRevision.cpp}::fillElemProperty(), main(), FileIO::Gocad::GocadAsciiReader::parseElements(), FileIO::Gocad::GocadAsciiReader::parseLineSegments(), and MeshToolsLib::setSigma0().
|
inlineconstexpr |
Definition at line 115 of file PropertyVector.h.
References cbegin().
|
inlineconstexpr |
Definition at line 110 of file PropertyVector.h.
References data_.
Referenced by begin(), main(), and MeshElementRemovalDialog::setRangeValues().
|
inlineconstexpr |
Definition at line 111 of file PropertyVector.h.
References data_.
Referenced by end(), main(), and MeshElementRemovalDialog::setRangeValues().
|
inlineconstexpr |
|
inlineoverridevirtual |
Implements MeshLib::PropertyVectorBase.
Definition at line 87 of file PropertyVector.h.
References PropertyVector(), MeshLib::PropertyVectorBase::PropertyVectorBase(), MeshLib::PropertyVectorBase::_mesh_item_type, MeshLib::PropertyVectorBase::_n_components, MeshLib::PropertyVectorBase::_property_name, data_, and BaseLib::excludeObjectCopy().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 104 of file PropertyVector.h.
References data_.
Referenced by MeshLib::VtkMappedMeshSource::addProperty(), MeshLib::IO::NodePartitionedMeshReader::createPropertyVectorPart(), MeshLib::IO::NodePartitionedMeshReader::createSpecificPropertyVectorPart(), and ApplicationUtils::writePropertyVectorValues().
|
inlineconstexpr |
Definition at line 169 of file PropertyVector.h.
References data_.
Referenced by MeshToolsLib::MeshInformation::getValueBounds(), FileIO::Gocad::GocadAsciiReader::parseElements(), and FileIO::Gocad::GocadAsciiReader::parseLineSegments().
|
inlineconstexpr |
Definition at line 108 of file PropertyVector.h.
References data_.
Referenced by assign(), ProcessLib::LIE::PostProcessTool::copyPropertyValues(), MeshToolsLib::createCellProperties(), MeshToolsLib::createIntegrationPointProperties(), MeshToolsLib::createMergedPropertyVector(), MeshToolsLib::createNodeProperties(), main(), FileIO::Gocad::GocadAsciiReader::parseElements(), FileIO::Gocad::GocadAsciiReader::parseLineSegments(), and MeshToolsLib::setSigma0().
|
inlineconstexpr |
Definition at line 116 of file PropertyVector.h.
References cend().
|
inline |
Returns the value for the given component stored in the given tuple.
Definition at line 71 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::_n_components, data_, MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), and getNumberOfTuples().
Referenced by ProcessLib::SurfaceFluxLocalAssembler< ShapeFunction, GlobalDim >::integrate(), MeshToolsLib::processPropertyVector(), reorderProperty(), NumLib::transformVariableFromGlobalVector(), and NumLib::transformVariableFromGlobalVector().
|
inline |
Returns the value for the given component stored in the given tuple.
Definition at line 79 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::_n_components, data_, MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), and getNumberOfTuples().
|
inlineconstexpr |
Definition at line 65 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::_n_components, and size().
Referenced by getComponent(), getComponent(), MeshToolsLib::ElementValueModification::replace(), MeshLib::ElementSearch::searchByPropertyValueRange(), MeshLib::IO::transformAttribute(), and ApplicationUtils::writePropertyVector().
|
inlineconstexpr |
Definition at line 118 of file PropertyVector.h.
References data_.
|
inlineconstexpr |
Definition at line 131 of file PropertyVector.h.
References data_.
|
inlineconstexpr |
Definition at line 163 of file PropertyVector.h.
References data_.
Referenced by anonymous_namespace{MeshRevision.cpp}::fillNodeProperty(), MeshLib::VtkMeshConverter::fillPropertyVector(), MeshToolsLib::RasterToMesh::fillPropertyVector(), FileIO::Gocad::GocadAsciiReader::parseElements(), and FileIO::Gocad::GocadAsciiReader::parseLineSegments().
|
inlineconstexpr |
Definition at line 136 of file PropertyVector.h.
Referenced by MeshLib::IO::NodePartitionedMeshReader::createPropertyVectorPart(), MeshLib::IO::NodePartitionedMeshReader::createSpecificPropertyVectorPart(), and FileIO::SwmmInterface::readSwmmInputToLineMesh().
|
inlineconstexpr |
|
inlineconstexpr |
Method returns the number of tuples times the number of tuple components.
Definition at line 98 of file PropertyVector.h.
References data_.
Referenced by MeshLib::VtkMappedMeshSource::addProperty(), ApplicationUtils::copyFieldPropertyDataToPartitions(), ProcessLib::LIE::PostProcessTool::copyPropertyValues(), ApplicationUtils::copyPropertyVector(), MeshToolsLib::createCellProperties(), MeshToolsLib::createMergedPropertyVector(), MeshToolsLib::createNodeProperties(), MeshLib::IO::NodePartitionedMeshReader::createPropertyVectorPart(), MeshLib::IO::NodePartitionedMeshReader::createSpecificPropertyVectorPart(), anonymous_namespace{MeshRevision.cpp}::fillElemProperty(), getNumberOfTuples(), MeshToolsLib::ElementValueModification::getSortedPropertyValues(), MeshToolsLib::MeshGenerator::VoxelGridFromMesh::mapArray(), anonymous_namespace{MeshInformation.cpp}::printBounds(), resize(), resize(), FileIO::FEFLOWMeshInterface::setMaterialIDs(), MeshToolsLib::Mesh2MeshPropertyInterpolation::setPropertiesForMesh(), MeshToolsLib::setSigma0(), and ApplicationUtils::writePropertyVectorValues().
|
inlineconstexpr |
|
friend |
|
private |
Definition at line 201 of file PropertyVector.h.
Referenced by PropertyVector(), assign(), begin(), cbegin(), cend(), clear(), clone(), data(), data(), empty(), end(), getComponent(), getComponent(), operator[](), operator[](), push_back(), resize(), resize(), size(), and ssize().