    

 ## On this page

  

 

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

 Last update: 16.07.2025 

Creates as many scalar quantites as samples for all field indices given in *indices* as well as all field quantities found within the dataobject filter. [More...](class_extract_scalars.xhtml#details)

## <a id="pub-types" 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 id="pub-methods" 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)  
  [ExtractScalars](class_extract_scalars.xhtml#a3263893c6f3be92d08426539e70fb063) ([DataObjectContainer](class_data_object_container.xhtml) the\_data, [index\_type](class_extract_scalars.xhtml#ac455005009c3d22b1e98034fd5df9547) indices) Constructor which sets suitable defaults for all members. [More...](#a3263893c6f3be92d08426539e70fb063)  
 ## <a id="pub-attribs" 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 ExtractScalars&lt; TYPE &gt;

Creates as many scalar quantites as samples for all field indices given in *indices* as well as all field quantities found within the dataobject filter.

Date-2015 Template Parameters TYPEthe field data type 

## Constructor &amp; Destructor Documentation

<a id="a3263893c6f3be92d08426539e70fb063"></a>## [◆ ](#a3263893c6f3be92d08426539e70fb063)ExtractScalars()

 [ExtractScalars](class_extract_scalars.xhtml)  ( [DataObjectContainer](class_data_object_container.xhtml)  *the\_data*,    [index\_type](class_extract_scalars.xhtml#ac455005009c3d22b1e98034fd5df9547)  *indices*   ) 

Constructor which sets suitable defaults for all members.

All quantity idents of the dataobject filter are extracted. Then for each quantity and each id in the given part a new sclar result object will be created.

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*) 

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*) 

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.