ExtractMaximumScalars< TYPE > Class Template Reference
Last update: 16.07.2025Computes and creates the maximum scalar quantity per selection for a field quantity selection defined by a dataobject filter and a set of part and item indices. More...
Public Types | |
| typedef std::vector< std::pair< std::size_t, std::size_t > > | index_type |
| A sequential index container storing the part and entity index. A sequential index container storing the part index as first argument and the entity index of this part as second argument. | |
| typedef std::vector< DataObjectContainer::string_vector_type > | quantity_map_type |
| A vector of vectors containing default quantity idents for each quantity (row) and each index (column) passed to the constructor. | |
Public Member Functions | |
| compute (Structure database) | |
| Performs the action using the defined settings. More... | |
| std::vector< string > | determineObjectsToBeReplaced (Structure database) |
| Determines if any result objects already exist in the database. More... | |
| ExtractMaximumScalars (DataObjectContainer the_data, typename ExtractScalars< TYPE >::index_type indices) | |
| Constructs an extremal scalar extractor suiteable to compute the maximum value of the items indices given for each design and quantity pair defined via the dataobject filter. More... | |
| virtual string | setNewQuantityIdentTemplate (string ident) |
| Sets the quantity ident template used to generarte new quantity idents. More... | |
Public Attributes | |
| DataObjectContainer | data |
| the data set to be analyzed | |
| bool | overwrite_existing |
| is true if already existing output data objects will be replaced. If true, also all depending objects of the already existing one will be deleted. | |
| DataObjectContainer::string_vector_type | quantity_idents |
| the quantities to be analyzed. If a quantity ident does not exist in data, no error appears. | |
Detailed Description
template<dataobject_types TYPE>
class ExtractMaximumScalars< TYPE >
Computes and creates the maximum scalar quantity per selection for a field quantity selection defined by a dataobject filter and a set of part and item indices.
- Date
- -2015
- Template Parameters
-
TYPE the field data type
Constructor & Destructor Documentation
◆ ExtractMaximumScalars()
| ExtractMaximumScalars | ( | DataObjectContainer | the_data, |
| typename ExtractScalars< TYPE >::index_type | indices | ||
| ) |
Constructs an extremal scalar extractor suiteable to compute the maximum value of the items indices given for each design and quantity pair defined via the dataobject filter.
- Parameters
-
the_data The subset of field data to be token as input. indices A vector of tuples of part and element/node indices
Member Function Documentation
◆ compute()
|
inherited |
Performs the action using the defined settings.
- Parameters
-
database the output object where new objects are added to
◆ determineObjectsToBeReplaced()
|
inherited |
Determines if any result objects already exist in the database.
- Parameters
-
database the SoS structure
- Returns
- It returns a list of human readable idents. This list is empty if no duplicates exist. The size of the list is the number of objects to be replaced.
◆ setNewQuantityIdentTemplate()
|
virtual |
Sets the quantity ident template used to generarte new quantity idents.
- Parameters
-
ident The new quantity ident template
- Returns
- The new quantity ident template value
Implements ExtractExtremalScalars< TYPE >.