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 18 of file CreateConstitutiveSetting.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 |
![]() | |
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. | |
![]() | |
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 | |
![]() | |
bool | is_for_output = true |
![]() | |
int const | _n_components |
MeshItemType const | _mesh_item_type |
std::string const | _property_name |
using MeshLib::PropertyVector< T >::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.
Referenced by MeshLib::PropertyVector< T >::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.
|
inlineconstexpr |
Definition at line 146 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::begin(), MeshLib::PropertyVector< T >::data_, and MeshLib::PropertyVector< T >::end().
Referenced by Vtu2GridDialog::accept(), and MeshToolsLib::ElementValueModification::condense().
|
inlineconstexpr |
Definition at line 107 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
Referenced by FileIO::SwmmInterface::addResultsToMesh(), MeshLib::PropertyVector< T >::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 MeshLib::PropertyVector< T >::cbegin().
|
inlineconstexpr |
Definition at line 110 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
Referenced by MeshLib::PropertyVector< T >::begin(), main(), and MeshElementRemovalDialog::setRangeValues().
|
inlineconstexpr |
Definition at line 111 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
Referenced by MeshLib::PropertyVector< T >::end(), main(), and MeshElementRemovalDialog::setRangeValues().
|
inlineconstexpr |
Definition at line 168 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
|
inlineoverridevirtual |
Implements MeshLib::PropertyVectorBase.
Definition at line 87 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::PropertyVector(), MeshLib::PropertyVectorBase::_mesh_item_type, MeshLib::PropertyVectorBase::_n_components, MeshLib::PropertyVectorBase::_property_name, MeshLib::PropertyVector< T >::data_, and BaseLib::excludeObjectCopy().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 104 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::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 MeshLib::PropertyVector< T >::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 MeshLib::PropertyVector< T >::data_.
Referenced by MeshLib::PropertyVector< T >::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 MeshLib::PropertyVector< T >::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, MeshLib::PropertyVector< T >::data_, MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), and MeshLib::PropertyVector< T >::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, MeshLib::PropertyVector< T >::data_, MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), and MeshLib::PropertyVector< T >::getNumberOfTuples().
|
inlineconstexpr |
Definition at line 65 of file PropertyVector.h.
References MeshLib::PropertyVectorBase::_n_components, and MeshLib::PropertyVector< T >::size().
Referenced by MeshLib::PropertyVector< T >::getComponent(), MeshLib::PropertyVector< T >::getComponent(), MeshToolsLib::ElementValueModification::replace(), MeshLib::ElementSearch::searchByPropertyValueRange(), MeshLib::IO::transformAttribute(), and ApplicationUtils::writePropertyVector().
|
inlineconstexpr |
Definition at line 118 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
|
inlineconstexpr |
Definition at line 131 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
|
inlineconstexpr |
Definition at line 163 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::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.
References MeshLib::PropertyVector< T >::data_, and MeshLib::PropertyVector< T >::size().
Referenced by MeshLib::IO::NodePartitionedMeshReader::createPropertyVectorPart(), and MeshLib::IO::NodePartitionedMeshReader::createSpecificPropertyVectorPart().
|
inlineconstexpr |
Definition at line 137 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_, and MeshLib::PropertyVector< T >::size().
|
inlineconstexpr |
Method returns the number of tuples times the number of tuple components.
Definition at line 98 of file PropertyVector.h.
References MeshLib::PropertyVector< T >::data_.
Referenced by ProcessLib::SolutionDependentDirichletBoundaryCondition::SolutionDependentDirichletBoundaryCondition(), 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(), MeshLib::PropertyVector< T >::getNumberOfTuples(), MeshToolsLib::ElementValueModification::getSortedPropertyValues(), ProcessLib::SolutionDependentDirichletBoundaryCondition::postTimestep(), anonymous_namespace{MeshInformation.cpp}::printBounds(), MeshLib::PropertyVector< T >::resize(), MeshLib::PropertyVector< T >::resize(), FileIO::FEFLOWMeshInterface::setMaterialIDs(), MeshToolsLib::Mesh2MeshPropertyInterpolation::setPropertiesForMesh(), MeshToolsLib::setSigma0(), and ApplicationUtils::writePropertyVectorValues().
|
inlineconstexpr |
|
friend |
Definition at line 59 of file PropertyVector.h.
|
private |
Definition at line 201 of file PropertyVector.h.
Referenced by MeshLib::PropertyVector< T >::assign(), MeshLib::PropertyVector< T >::begin(), MeshLib::PropertyVector< T >::cbegin(), MeshLib::PropertyVector< T >::cend(), MeshLib::PropertyVector< T >::clear(), MeshLib::PropertyVector< T >::clone(), MeshLib::PropertyVector< T >::data(), MeshLib::PropertyVector< T >::data(), MeshLib::PropertyVector< T >::empty(), MeshLib::PropertyVector< T >::end(), MeshLib::PropertyVector< T >::getComponent(), MeshLib::PropertyVector< T >::getComponent(), MeshLib::PropertyVector< T >::operator[](), MeshLib::PropertyVector< T >::operator[](), MeshLib::PropertyVector< T >::push_back(), MeshLib::PropertyVector< T >::resize(), MeshLib::PropertyVector< T >::resize(), MeshLib::PropertyVector< T >::size(), and MeshLib::PropertyVector< T >::ssize().