    

 ## On this page

  

 

 # ExtractMaximumScalars&lt; TYPE &gt; Class Template Reference

 Last update: 16.07.2025 

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. [More...](class_extract_maximum_scalars.xhtml#details)

## <a name="pub-types"></a>Public Types

<a id="ac455005009c3d22b1e98034fd5df9547"></a>typedef std::vector&lt; std::pair&lt; std::size\_t, std::size\_t &gt; &gt; [index\_type](class_extract_scalars.xhtml#ac455005009c3d22b1e98034fd5df9547) 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.   
 <a id="a307e043c1b029bb9a68ad6b69d9dd72a"></a>typedef std::vector&lt; [DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) &gt; [quantity\_map\_type](class_extract_scalars.xhtml#a307e043c1b029bb9a68ad6b69d9dd72a) A vector of vectors containing default quantity idents for each quantity (row) and each index (column) passed to the constructor.   
 ## <a name="pub-methods"></a>Public Member Functions

 [compute](class_extract_scalars.xhtml#ab08e112d95fe611e7eb25491c354d115) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) Performs the action using the defined settings. [More...](#ab08e112d95fe611e7eb25491c354d115)  
 std::vector&lt; string &gt; [determineObjectsToBeReplaced](class_extract_scalars.xhtml#aed4396d64c1a5eb946769d16dae346a2) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) Determines if any result objects already exist in the database. [More...](#aed4396d64c1a5eb946769d16dae346a2)  
  [ExtractMaximumScalars](class_extract_maximum_scalars.xhtml#a6750b8238d7b756a82683b6d3f718b10) ([DataObjectContainer](class_data_object_container.xhtml) the\_data, typename [ExtractScalars](class_extract_scalars.xhtml)&lt; TYPE &gt;::[index\_type](class_extract_scalars.xhtml#ac455005009c3d22b1e98034fd5df9547) 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...](#a6750b8238d7b756a82683b6d3f718b10)  
 virtual string [setNewQuantityIdentTemplate](class_extract_maximum_scalars.xhtml#ac0ccdc7d7633b74093947347cd64f3bf) (string ident) Sets the quantity ident template used to generarte new quantity idents. [More...](#ac0ccdc7d7633b74093947347cd64f3bf)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="aff21fffab499ea652443206d66e1a9bb"></a>[DataObjectContainer](class_data_object_container.xhtml) [data](class_extract_scalars.xhtml#aff21fffab499ea652443206d66e1a9bb) the data set to be analyzed   
 <a id="ade25e60bd85c8b4abd4f5b416cae0eb9"></a>bool [overwrite\_existing](class_extract_scalars.xhtml#ade25e60bd85c8b4abd4f5b416cae0eb9) 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.   
 <a id="aced57c746ae1d69d2fd56872fa1768bf"></a>[DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) [quantity\_idents](class_extract_scalars.xhtml#aced57c746ae1d69d2fd56872fa1768bf) the quantities to be analyzed. If a quantity ident does not exist in *data*, no error appears.   
 <a id="details" name="details"></a>## Detailed Description

### template&lt;dataobject\_types TYPE&gt;  
class ExtractMaximumScalars&lt; TYPE &gt;

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 TYPEthe field data type 

## Constructor &amp; Destructor Documentation

<a id="a6750b8238d7b756a82683b6d3f718b10"></a>## [◆ ](#a6750b8238d7b756a82683b6d3f718b10)ExtractMaximumScalars()

 [ExtractMaximumScalars](class_extract_maximum_scalars.xhtml)  ( [DataObjectContainer](class_data_object_container.xhtml)  *the\_data*,    typename [ExtractScalars](class_extract_scalars.xhtml)&lt; TYPE &gt;::[index\_type](class_extract_scalars.xhtml#ac455005009c3d22b1e98034fd5df9547)  *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\_dataThe subset of field data to be token as input. indicesA vector of tuples of part and element/node indices 



## Member Function Documentation

<a id="ab08e112d95fe611e7eb25491c354d115"></a>## [◆ ](#ab08e112d95fe611e7eb25491c354d115)compute()

 compute  ( [Structure](class_structure.xhtml)  *database*)   inherited 

Performs the action using the defined settings.

Parameters databasethe output object where new objects are added to 



<a id="aed4396d64c1a5eb946769d16dae346a2"></a>## [◆ ](#aed4396d64c1a5eb946769d16dae346a2)determineObjectsToBeReplaced()

 std::vector&lt; string &gt; determineObjectsToBeReplaced  ( [Structure](class_structure.xhtml)  *database*)   inherited 

Determines if any result objects already exist in the database.

Parameters databasethe SoS structureReturnsIt 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. 



<a id="ac0ccdc7d7633b74093947347cd64f3bf"></a>## [◆ ](#ac0ccdc7d7633b74093947347cd64f3bf)setNewQuantityIdentTemplate()

 virtual string setNewQuantityIdentTemplate  ( string  *ident*)   virtual 

Sets the quantity ident template used to generarte new quantity idents.

Parameters identThe new quantity ident template ReturnsThe new quantity ident template value Implements [ExtractExtremalScalars&lt; TYPE &gt;](class_extract_extremal_scalars.xhtml#a13f74dc615ddbd2143a6f97c925ef40c).