    

 ## On this page

  

 

 # ConvertToElement&lt; TYPE &gt; Struct Template Reference

 Last update: 16.07.2025 

a struct which collects settings for *convertToElement* [More...](struct_convert_to_element.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

 [check](struct_convert_to_element.xhtml#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine. [More...](#a47c34ec1e578c2ce27cf1c5fcd0d1704)  
  [compute](struct_convert_to_element.xhtml#a2ee6c389c27f8cb563b6b1aa31f6bf17) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), DataObject::ptr\_type [data](struct_convert_to_element.xhtml#aff21fffab499ea652443206d66e1a9bb), string new\_quantity\_ident, string new\_design\_ident) converts a single set of samples [More...](#a2ee6c389c27f8cb563b6b1aa31f6bf17)  
  [compute](struct_convert_to_element.xhtml#ab08e112d95fe611e7eb25491c354d115) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) converts multiple sets of samples [More...](#ab08e112d95fe611e7eb25491c354d115)  
  [ConvertToElement](struct_convert_to_element.xhtml#a740eaf064670e34f5375dae5d079dc66) ([DataObjectContainer](class_data_object_container.xhtml) the\_data) constructor which sets suitable defaults for all members [More...](#a740eaf064670e34f5375dae5d079dc66)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="aff21fffab499ea652443206d66e1a9bb"></a>[DataObjectContainer](class_data_object_container.xhtml) [data](struct_convert_to_element.xhtml#aff21fffab499ea652443206d66e1a9bb) the data set to be analyzed   
 <a id="a30b1bcf63b9bdc707fea30bd96d70447"></a>[DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) [new\_quantity\_idents](struct_convert_to_element.xhtml#a30b1bcf63b9bdc707fea30bd96d70447) the new idents for each quantity. The dimension and index space must fit the one of *quantity\_idents*   
 <a id="aced57c746ae1d69d2fd56872fa1768bf"></a>[DataObjectContainer::string\_vector\_type](class_data_object_container.xhtml#ac293ea0e5c280f69a497ea20f20c60b9) [quantity\_idents](struct_convert_to_element.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;  
struct ConvertToElement&lt; TYPE &gt;

a struct which collects settings for *convertToElement*

Template Parameters TYPEthe field data type 

## Constructor &amp; Destructor Documentation

<a id="a740eaf064670e34f5375dae5d079dc66"></a>## [◆ ](#a740eaf064670e34f5375dae5d079dc66)ConvertToElement()

 [ConvertToElement](struct_convert_to_element.xhtml)  ( [DataObjectContainer](class_data_object_container.xhtml)  *the\_data*) 

constructor which sets suitable defaults for all members

Parameters the\_datathe subset of field data to be token as input. All quantity idents are extracted. Then for each quantity a new result object will be created with design ident "mean". 



## Member Function Documentation

<a id="a47c34ec1e578c2ce27cf1c5fcd0d1704"></a>## [◆ ](#a47c34ec1e578c2ce27cf1c5fcd0d1704)check()

 check  ( [Structure](class_structure.xhtml)  *database*) 

checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine.

Parameters databasethe SoS structure 



<a id="a2ee6c389c27f8cb563b6b1aa31f6bf17"></a>## [◆ ](#a2ee6c389c27f8cb563b6b1aa31f6bf17)compute() \[1/2\]

 compute  ( [Structure](class_structure.xhtml)  *database*,    DataObject::ptr\_type  *data*,    string  *new\_quantity\_ident*,    string  *new\_design\_ident*   ) 

converts a single set of samples

Parameters databasethe output object is to be inserted in this object datathe object to be converted new\_quantity\_identthe quantity ident of the new object new\_design\_identthe design ident of the new object 



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

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

converts multiple sets of samples

Parameters databasethe output object where new objects are added to