    

 ## On this page

  

 

 # ansys::dpf::Any Class Reference

 Last update: 16.07.2025 

`#include <dpf_api.h>`

Inheritance diagram for ansys::dpf::Any:

 ![](/sites/default/files/migrate-content/dpf_cpp_client_library_2023_r2/classansys_1_1dpf_1_1Any.png)



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

<a id="a66c2e04de68563794290ed8cec09d413" name="a66c2e04de68563794290ed8cec09d413"></a>template&lt;typename DataT &gt;  **Any** (const DataT &amp;value) <a id="ab24d321afb6bc120c0b49fd269f28a91" name="ab24d321afb6bc120c0b49fd269f28a91"></a> **Any** ([Any](classansys_1_1dpf_1_1Any.xhtml) const &amp;) <a id="a8d99e23230f2e0be082213f61446fa74" name="a8d99e23230f2e0be082213f61446fa74"></a> **Any** ([Any](classansys_1_1dpf_1_1Any.xhtml) &amp;&amp;) <a id="a03e8005283ad244a72b3126b43bfe333" name="a03e8005283ad244a72b3126b43bfe333"></a>[Any](classansys_1_1dpf_1_1Any.xhtml) &amp; **operator=** ([Any](classansys_1_1dpf_1_1Any.xhtml) const &amp;) <a id="a0a7a50c8bc60482941dabdda252a1355" name="a0a7a50c8bc60482941dabdda252a1355"></a>[Any](classansys_1_1dpf_1_1Any.xhtml) &amp; **operator=** ([Any](classansys_1_1dpf_1_1Any.xhtml) &amp;&amp;) <a id="a1849f144686207e9923c4660416eadcb" name="a1849f144686207e9923c4660416eadcb"></a>std::string **wrappedType** () template&lt;typename DataT &gt; bool [testType](classansys_1_1dpf_1_1Any.xhtml#aada64aaa126d55d103c92b1acc45f9d6) () template&lt;typename DataT &gt; DataT [get](classansys_1_1dpf_1_1Any.xhtml#ae9a8292e720ad33c05ddd72cd79fd3f0) () [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) [getAsInt](classansys_1_1dpf_1_1Any.xhtml#a509f786cc92dabeb25ae992dfa3316b9) () std::string [getAsString](classansys_1_1dpf_1_1Any.xhtml#a32657cc7f47ed3d928991c5835c98ff2) () double [getAsDouble](classansys_1_1dpf_1_1Any.xhtml#af735a96a2b4d1e095c0b0a76e12be28d) () [Field](classansys_1_1dpf_1_1Field.xhtml) [getAsField](classansys_1_1dpf_1_1Any.xhtml#ae9a354cdc64302b28a9765f11c5db49e) () [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) [getAsPropertyField](classansys_1_1dpf_1_1Any.xhtml#a663312d17a640c09396e30be90508236) () [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [getAsScoping](classansys_1_1dpf_1_1Any.xhtml#ac9daaa547c3d364fb210d8f880cb3eeb) () [FieldsContainer](classansys_1_1dpf_1_1FieldsContainer.xhtml) [getAsFieldsContainer](classansys_1_1dpf_1_1Any.xhtml#ad32a75270ad3cad2bc13c6862fb6750a) () [ScopingsContainer](classansys_1_1dpf_1_1ScopingsContainer.xhtml) [getAsScopingsContainer](classansys_1_1dpf_1_1Any.xhtml#a686ee9d4cf6fdaf7dfaa39399f50ef56) () [MeshesContainer](classansys_1_1dpf_1_1MeshesContainer.xhtml) [getAsMeshesContainer](classansys_1_1dpf_1_1Any.xhtml#a1d43b6a5fff4a068a56a284c06aa2a47) () [TimeFreqSupport](classansys_1_1dpf_1_1TimeFreqSupport.xhtml) [getAsTimeFreqSupport](classansys_1_1dpf_1_1Any.xhtml#ae107610078db262198d2b7d18bac3a38) () [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) [getAsMeshedRegion](classansys_1_1dpf_1_1Any.xhtml#a94a6d3bd66576eaa38f3cc8363923fdc) () [Streams](classansys_1_1dpf_1_1Streams.xhtml) [getAsStreams](classansys_1_1dpf_1_1Any.xhtml#af5818ea870e62b8fac39871c27906031) () [ResultInfo](classansys_1_1dpf_1_1ResultInfo.xhtml) [getAsResultInfo](classansys_1_1dpf_1_1Any.xhtml#a35812ac317e5019ca7c4dd2764d3c3aa) () [DataTree](classansys_1_1dpf_1_1DataTree.xhtml) [getAsDataTree](classansys_1_1dpf_1_1Any.xhtml#a44f9f5af05a83104f1f338af48f89494) () [Workflow](classansys_1_1dpf_1_1Workflow.xhtml) [getAsWorkflow](classansys_1_1dpf_1_1Any.xhtml#a90bf9c3be4a3d675db129ba8c8a2a6eb) () [Operator](classansys_1_1dpf_1_1Operator.xhtml) [getAsOperator](classansys_1_1dpf_1_1Any.xhtml#a28e856fec7e1c60d442271649c0e3c80) () [CyclicSupport](classansys_1_1dpf_1_1CyclicSupport.xhtml) [getAsCyclicSupport](classansys_1_1dpf_1_1Any.xhtml#af18d0157d9ef065d98b90846dc99249f) () [DataSources](classansys_1_1dpf_1_1DataSources.xhtml) [getAsDataSources](classansys_1_1dpf_1_1Any.xhtml#ab3be31d2987afb38f53f5d1531854097) () [StringField](classansys_1_1dpf_1_1StringField.xhtml) [getAsStringField](classansys_1_1dpf_1_1Any.xhtml#aa3fb6bccf160ec74f845fb447822a65f) () GenericDataContainer [getAsGenericDataContainer](classansys_1_1dpf_1_1Any.xhtml#aac24b5ed3667aa1a036a4d4383c1eaf9) () [Any](classansys_1_1dpf_1_1Any.xhtml) [deep\_copy](classansys_1_1dpf_1_1Any.xhtml#a7fc7c3fd9e7f21f65e93d0d3f7d48aa2) ([ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const client) const [Any](classansys_1_1dpf_1_1Any.xhtml) [deep\_copy](classansys_1_1dpf_1_1Any.xhtml#acfe258908ef7408ad278565c79a48875) () const ![-](/sites/default/files/migrate-content/dpf_cpp_client_library_2023_r2/closed.png) Public Member Functions inherited from [ansys::dpf::DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml)virtual bool [empty](classansys_1_1dpf_1_1DpfTypes.xhtml#a39cd546c42518e2332be8f287db95459) () const virtual std::string [describe](classansys_1_1dpf_1_1DpfTypes.xhtml#a9977945710983bc03d2940fa007847b2) () const so::API const \* [callAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#aea34d37e0c080126eff70db34bf46597) () const bool [isOnCommonAPI](classansys_1_1dpf_1_1DpfTypes.xhtml#a9f9789ff61cc9d400a2a344830706b73) () const bool [getClient](classansys_1_1dpf_1_1DpfTypes.xhtml#a968afd9daa0b0f13b65a2ac61369d73a) ([Client](classansys_1_1dpf_1_1Client.xhtml) &amp;client) const bool [hasBeenMovedLocally](classansys_1_1dpf_1_1DpfTypes.xhtml#a1a5634202c15404b6b24e8f50e51cb66) () const bool [isSameObject](classansys_1_1dpf_1_1DpfTypes.xhtml#aa64d5f8fcd7d85ad6ebf708494dbefd7) ([DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml) const &amp;rhs) const ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

<a id="a4e7350ee3446b0e8ad3c1aca88fee463" name="a4e7350ee3446b0e8ad3c1aca88fee463"></a>static [Any](classansys_1_1dpf_1_1Any.xhtml) **emptyAny** () <a id="details" name="details"></a>## Detailed Description

[Any](classansys_1_1dpf_1_1Any.xhtml) class holding a typed entity.



## Member Function Documentation

<a id="acfe258908ef7408ad278565c79a48875" name="acfe258908ef7408ad278565c79a48875"></a>## [◆ ](#acfe258908ef7408ad278565c79a48875)deep\_copy() \[1/2\]

 [Any](classansys_1_1dpf_1_1Any.xhtml) ansys::dpf::Any::deep\_copy  ( )  const

Make a deep copy locally.





<a id="a7fc7c3fd9e7f21f65e93d0d3f7d48aa2" name="a7fc7c3fd9e7f21f65e93d0d3f7d48aa2"></a>## [◆ ](#a7fc7c3fd9e7f21f65e93d0d3f7d48aa2)deep\_copy() \[2/2\]

 [Any](classansys_1_1dpf_1_1Any.xhtml) ansys::dpf::Any::deep\_copy  ( [ansys::dpf::Client](classansys_1_1dpf_1_1Client.xhtml) const \*const  *client*)  const

Make a deep copy on a given client.

Parameters \[in\]clientRemote client 



<a id="ae9a8292e720ad33c05ddd72cd79fd3f0" name="ae9a8292e720ad33c05ddd72cd79fd3f0"></a>## [◆ ](#ae9a8292e720ad33c05ddd72cd79fd3f0)get()

template&lt;typename DataT &gt; 

 DataT ansys::dpf::Any::get  ( ) 

Returnsspecified template type held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="af18d0157d9ef065d98b90846dc99249f" name="af18d0157d9ef065d98b90846dc99249f"></a>## [◆ ](#af18d0157d9ef065d98b90846dc99249f)getAsCyclicSupport()

 [CyclicSupport](classansys_1_1dpf_1_1CyclicSupport.xhtml) ansys::dpf::Any::getAsCyclicSupport  ( ) 

Returns[CyclicSupport](classansys_1_1dpf_1_1CyclicSupport.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="ab3be31d2987afb38f53f5d1531854097" name="ab3be31d2987afb38f53f5d1531854097"></a>## [◆ ](#ab3be31d2987afb38f53f5d1531854097)getAsDataSources()

 [DataSources](classansys_1_1dpf_1_1DataSources.xhtml) ansys::dpf::Any::getAsDataSources  ( ) 

Returns[DataSources](classansys_1_1dpf_1_1DataSources.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a44f9f5af05a83104f1f338af48f89494" name="a44f9f5af05a83104f1f338af48f89494"></a>## [◆ ](#a44f9f5af05a83104f1f338af48f89494)getAsDataTree()

 [DataTree](classansys_1_1dpf_1_1DataTree.xhtml) ansys::dpf::Any::getAsDataTree  ( ) 

Returns[DataTree](classansys_1_1dpf_1_1DataTree.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="af735a96a2b4d1e095c0b0a76e12be28d" name="af735a96a2b4d1e095c0b0a76e12be28d"></a>## [◆ ](#af735a96a2b4d1e095c0b0a76e12be28d)getAsDouble()

 double ansys::dpf::Any::getAsDouble  ( ) 

ReturnsDouble held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="ae9a354cdc64302b28a9765f11c5db49e" name="ae9a354cdc64302b28a9765f11c5db49e"></a>## [◆ ](#ae9a354cdc64302b28a9765f11c5db49e)getAsField()

 [Field](classansys_1_1dpf_1_1Field.xhtml) ansys::dpf::Any::getAsField  ( ) 

Returns[Field](classansys_1_1dpf_1_1Field.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="ad32a75270ad3cad2bc13c6862fb6750a" name="ad32a75270ad3cad2bc13c6862fb6750a"></a>## [◆ ](#ad32a75270ad3cad2bc13c6862fb6750a)getAsFieldsContainer()

 [FieldsContainer](classansys_1_1dpf_1_1FieldsContainer.xhtml) ansys::dpf::Any::getAsFieldsContainer  ( ) 

Returns[FieldsContainer](classansys_1_1dpf_1_1FieldsContainer.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="aac24b5ed3667aa1a036a4d4383c1eaf9" name="aac24b5ed3667aa1a036a4d4383c1eaf9"></a>## [◆ ](#aac24b5ed3667aa1a036a4d4383c1eaf9)getAsGenericDataContainer()

 GenericDataContainer ansys::dpf::Any::getAsGenericDataContainer  ( ) 

ReturnsGenericDataContainer held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a509f786cc92dabeb25ae992dfa3316b9" name="a509f786cc92dabeb25ae992dfa3316b9"></a>## [◆ ](#a509f786cc92dabeb25ae992dfa3316b9)getAsInt()

 [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) ansys::dpf::Any::getAsInt  ( ) 

ReturnsInt held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a94a6d3bd66576eaa38f3cc8363923fdc" name="a94a6d3bd66576eaa38f3cc8363923fdc"></a>## [◆ ](#a94a6d3bd66576eaa38f3cc8363923fdc)getAsMeshedRegion()

 [MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) ansys::dpf::Any::getAsMeshedRegion  ( ) 

Returns[MeshedRegion](classansys_1_1dpf_1_1MeshedRegion.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a1d43b6a5fff4a068a56a284c06aa2a47" name="a1d43b6a5fff4a068a56a284c06aa2a47"></a>## [◆ ](#a1d43b6a5fff4a068a56a284c06aa2a47)getAsMeshesContainer()

 [MeshesContainer](classansys_1_1dpf_1_1MeshesContainer.xhtml) ansys::dpf::Any::getAsMeshesContainer  ( ) 

Returns[MeshesContainer](classansys_1_1dpf_1_1MeshesContainer.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a28e856fec7e1c60d442271649c0e3c80" name="a28e856fec7e1c60d442271649c0e3c80"></a>## [◆ ](#a28e856fec7e1c60d442271649c0e3c80)getAsOperator()

 [Operator](classansys_1_1dpf_1_1Operator.xhtml) ansys::dpf::Any::getAsOperator  ( ) 

Returns[Operator](classansys_1_1dpf_1_1Operator.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a663312d17a640c09396e30be90508236" name="a663312d17a640c09396e30be90508236"></a>## [◆ ](#a663312d17a640c09396e30be90508236)getAsPropertyField()

 [PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) ansys::dpf::Any::getAsPropertyField  ( ) 

Returns[PropertyField](classansys_1_1dpf_1_1PropertyField.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a35812ac317e5019ca7c4dd2764d3c3aa" name="a35812ac317e5019ca7c4dd2764d3c3aa"></a>## [◆ ](#a35812ac317e5019ca7c4dd2764d3c3aa)getAsResultInfo()

 [ResultInfo](classansys_1_1dpf_1_1ResultInfo.xhtml) ansys::dpf::Any::getAsResultInfo  ( ) 

Returns[ResultInfo](classansys_1_1dpf_1_1ResultInfo.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="ac9daaa547c3d364fb210d8f880cb3eeb" name="ac9daaa547c3d364fb210d8f880cb3eeb"></a>## [◆ ](#ac9daaa547c3d364fb210d8f880cb3eeb)getAsScoping()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::Any::getAsScoping  ( ) 

Returns[Scoping](classansys_1_1dpf_1_1Scoping.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a686ee9d4cf6fdaf7dfaa39399f50ef56" name="a686ee9d4cf6fdaf7dfaa39399f50ef56"></a>## [◆ ](#a686ee9d4cf6fdaf7dfaa39399f50ef56)getAsScopingsContainer()

 [ScopingsContainer](classansys_1_1dpf_1_1ScopingsContainer.xhtml) ansys::dpf::Any::getAsScopingsContainer  ( ) 

Returns[ScopingsContainer](classansys_1_1dpf_1_1ScopingsContainer.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="af5818ea870e62b8fac39871c27906031" name="af5818ea870e62b8fac39871c27906031"></a>## [◆ ](#af5818ea870e62b8fac39871c27906031)getAsStreams()

 [Streams](classansys_1_1dpf_1_1Streams.xhtml) ansys::dpf::Any::getAsStreams  ( ) 

Returns[Streams](classansys_1_1dpf_1_1Streams.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a32657cc7f47ed3d928991c5835c98ff2" name="a32657cc7f47ed3d928991c5835c98ff2"></a>## [◆ ](#a32657cc7f47ed3d928991c5835c98ff2)getAsString()

 std::string ansys::dpf::Any::getAsString  ( ) 

ReturnsString held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="aa3fb6bccf160ec74f845fb447822a65f" name="aa3fb6bccf160ec74f845fb447822a65f"></a>## [◆ ](#aa3fb6bccf160ec74f845fb447822a65f)getAsStringField()

 [StringField](classansys_1_1dpf_1_1StringField.xhtml) ansys::dpf::Any::getAsStringField  ( ) 

Returns[StringField](classansys_1_1dpf_1_1StringField.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="ae107610078db262198d2b7d18bac3a38" name="ae107610078db262198d2b7d18bac3a38"></a>## [◆ ](#ae107610078db262198d2b7d18bac3a38)getAsTimeFreqSupport()

 [TimeFreqSupport](classansys_1_1dpf_1_1TimeFreqSupport.xhtml) ansys::dpf::Any::getAsTimeFreqSupport  ( ) 

Returns[TimeFreqSupport](classansys_1_1dpf_1_1TimeFreqSupport.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="a90bf9c3be4a3d675db129ba8c8a2a6eb" name="a90bf9c3be4a3d675db129ba8c8a2a6eb"></a>## [◆ ](#a90bf9c3be4a3d675db129ba8c8a2a6eb)getAsWorkflow()

 [Workflow](classansys_1_1dpf_1_1Workflow.xhtml) ansys::dpf::Any::getAsWorkflow  ( ) 

Returns[Workflow](classansys_1_1dpf_1_1Workflow.xhtml) held in the [Any](classansys_1_1dpf_1_1Any.xhtml) object. Exceptions [DpfException](classansys_1_1dpf_1_1DpfException.xhtml)



<a id="aada64aaa126d55d103c92b1acc45f9d6" name="aada64aaa126d55d103c92b1acc45f9d6"></a>## [◆ ](#aada64aaa126d55d103c92b1acc45f9d6)testType()

template&lt;typename DataT &gt; 

 bool ansys::dpf::Any::testType  ( )   inline 

ReturnsIndication that the object is of the type of data.