Commit 752922c8 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

C++ full examples added

parent de5d5235
...@@ -52,11 +52,15 @@ public: ...@@ -52,11 +52,15 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New(); * shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New();
* #endcode
* *
* Python * Python
* *
* @code {.py}
* exampleAttribute = XdmfAttribute.New() * exampleAttribute = XdmfAttribute.New()
* @endcode
* *
* @return constructed XdmfAttribute. * @return constructed XdmfAttribute.
*/ */
...@@ -74,15 +78,19 @@ public: ...@@ -74,15 +78,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its center set * //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its center set
* shared_ptr<const XdmfAttributeCenter> exampleCenter = exampleAttribute->getCenter(); * shared_ptr<const XdmfAttributeCenter> exampleCenter = exampleAttribute->getCenter();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its center set * Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its center set
* ''' * '''
* exampleCenter = exampleAttribute.getCenter() * exampleCenter = exampleAttribute.getCenter()
* @endcode
* *
* @return XdmfAttributeCenter of the attribute. * @return XdmfAttributeCenter of the attribute.
*/ */
...@@ -99,15 +107,19 @@ public: ...@@ -99,15 +107,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object * //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object
* std::string exampleName = exampleAttribute->getName(); * std::string exampleName = exampleAttribute->getName();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object * Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object
* ''' * '''
* exampleName = exampleAttribute.getName() * exampleName = exampleAttribute.getName()
* @endcode
* *
* @return a string containing the name of the attribute. * @return a string containing the name of the attribute.
*/ */
...@@ -120,15 +132,19 @@ public: ...@@ -120,15 +132,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its type set * //Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its type set
* shared_ptr<const XdmfAttributeType> exampleType = exampleAttribute->getType(); * shared_ptr<const XdmfAttributeType> exampleType = exampleAttribute->getType();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its type set * Assuming that exampleAttribute is a shared pointer to an XdmfAttribute object with its type set
* ''' * '''
* exampleType = exampleAttribute.getType() * exampleType = exampleAttribute.getType()
* @endcode
* *
* @return XdmfAttributeType of the attribute. * @return XdmfAttributeType of the attribute.
*/ */
...@@ -141,13 +157,17 @@ public: ...@@ -141,13 +157,17 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New(); * shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New();
* exampleAttribute->setCenter(XdmfAttributeCenter::Node()); * exampleAttribute->setCenter(XdmfAttributeCenter::Node());
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleAttribute = XdmfAttribute.New() * exampleAttribute = XdmfAttribute.New()
* exampleAttribute.setCenter(XdmfAttributeCenter.Node()) * exampleAttribute.setCenter(XdmfAttributeCenter.Node())
* @endcode
* *
* @param center the XdmfAttributeCenter to set. * @param center the XdmfAttributeCenter to set.
*/ */
...@@ -160,15 +180,19 @@ public: ...@@ -160,15 +180,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New(); * shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New();
* std::string newName = "New Name"; * std::string newName = "New Name";
* exampleAttribute->setName(newName); * exampleAttribute->setName(newName);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleAttribute = XdmfAttribute.New() * exampleAttribute = XdmfAttribute.New()
* newName = "New Name" * newName = "New Name"
* exampleAttribute.setName(newName) * exampleAttribute.setName(newName)
* @endcode
* *
* @param name a string containing the name to set. * @param name a string containing the name to set.
*/ */
...@@ -181,13 +205,17 @@ public: ...@@ -181,13 +205,17 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New(); * shared_ptr<XdmfAttribute> exampleAttribute = XdmfAttribute::New();
* exampleAttribute->setType(XdmfAttributeType::Node()); * exampleAttribute->setType(XdmfAttributeType::Node());
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleAttribute = XdmfAttribute.New() * exampleAttribute = XdmfAttribute.New()
* exampleAttribute.setType(XdmfAttributeType.Node()) * exampleAttribute.setType(XdmfAttributeType.Node())
* @endcode
* *
* @param type XdmfAttributeType to set. * @param type XdmfAttributeType to set.
*/ */
......
...@@ -53,15 +53,19 @@ public: ...@@ -53,15 +53,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* unsigned int newPointsX = 5; * unsigned int newPointsX = 5;
* unsigned int newPointsY = 5; * unsigned int newPointsY = 5;
* shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPointsX, newPointsY); * shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPointsX, newPointsY);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* newPointsX = 5 * newPointsX = 5
* newPointsY = 5 * newPointsY = 5
* exampleGrid = XdmfCurvilinearGrid.New(newPointsX, newPointsY) * exampleGrid = XdmfCurvilinearGrid.New(newPointsX, newPointsY)
* @endcode
* *
* @param xNumPoints the number of points in the x direction. * @param xNumPoints the number of points in the x direction.
* @param yNumPoints the number of points in the y direction. * @param yNumPoints the number of points in the y direction.
...@@ -79,17 +83,21 @@ public: ...@@ -79,17 +83,21 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* unsigned int newPointsX = 5; * unsigned int newPointsX = 5;
* unsigned int newPointsY = 5; * unsigned int newPointsY = 5;
* unsigned int newPointsZ = 5; * unsigned int newPointsZ = 5;
* shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPointsX, newPointsY, newPointsZ); * shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPointsX, newPointsY, newPointsZ);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* newPointsX = 5 * newPointsX = 5
* newPointsY = 5 * newPointsY = 5
* newPointsZ = 5 * newPointsZ = 5
* exampleGrid = XdmfCurvilinearGrid.New(newPointsX, newPointsY, newPointsZ) * exampleGrid = XdmfCurvilinearGrid.New(newPointsX, newPointsY, newPointsZ)
* @endcode
* *
* @param xNumPoints the number of points in the x direction. * @param xNumPoints the number of points in the x direction.
* @param yNumPoints the number of points in the y direction. * @param yNumPoints the number of points in the y direction.
...@@ -109,19 +117,23 @@ public: ...@@ -109,19 +117,23 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfArray> newPoints = XdmfArray::New(); * shared_ptr<XdmfArray> newPoints = XdmfArray::New();
* newPoints->pushBack(5); * newPoints->pushBack(5);
* newPoints->pushBack(5); * newPoints->pushBack(5);
* newPoints->pushBack(5); * newPoints->pushBack(5);
* shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPoints); * shared_ptr<XdmfCurvilinearGrid> exampleGrid = XdmfCurvilinearGrid::New(newPoints);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* newPoints = XdmfArray.New() * newPoints = XdmfArray.New()
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
* exampleGrid = XdmfCurvilinearGrid.New(newPoints) * exampleGrid = XdmfCurvilinearGrid.New(newPoints)
* @endcode
* *
* @param numPoints the number of points in each direction. * @param numPoints the number of points in each direction.
* *
...@@ -143,15 +155,19 @@ public: ...@@ -143,15 +155,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object * //Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object
* shared_ptr<XdmfArray> exampleDimensions = exampleGrid->getDimensions(); * shared_ptr<XdmfArray> exampleDimensions = exampleGrid->getDimensions();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object * Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object
* ''' * '''
* exampleDimensions = exampleGrid.getDimensions() * exampleDimensions = exampleGrid.getDimensions()
* @endcode
* *
* @return XdmfArray containing dimensions of this grid. * @return XdmfArray containing dimensions of this grid.
*/ */
...@@ -165,8 +181,10 @@ public: ...@@ -165,8 +181,10 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object * //Assuming that exampleGrid is a shared pointer to an XdmfCurvilinearGrid object
* shared_ptr<const XdmfArray> exampleDimensions = exampleGrid->getDimensions(); * shared_ptr<const XdmfArray> exampleDimensions = exampleGrid->getDimensions();
* @endcode
* *
* Python: Python doesn't have a constant version * Python: Python doesn't have a constant version
* *
...@@ -181,15 +199,19 @@ public: ...@@ -181,15 +199,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* shared_ptr<XdmfGeometry> exampleGeometry = exampleGrid->getGeometry(); * shared_ptr<XdmfGeometry> exampleGeometry = exampleGrid->getGeometry();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* ''' * '''
* exampleGeometry = exampleGrid.getGeometry() * exampleGeometry = exampleGrid.getGeometry()
* @endcode
* *
* @return the geometry associated with this grid. * @return the geometry associated with this grid.
*/ */
...@@ -203,15 +225,18 @@ public: ...@@ -203,15 +225,18 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfArray> newPoints = XdmfArray::New(); * shared_ptr<XdmfArray> newPoints = XdmfArray::New();
* newPoints->pushBack(5); * newPoints->pushBack(5);
* newPoints->pushBack(5); * newPoints->pushBack(5);
* newPoints->pushBack(5); * newPoints->pushBack(5);
* //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* exampleGrid->setDimensions(newPoints); * exampleGrid->setDimensions(newPoints);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* newPoints = XdmfArray.New() * newPoints = XdmfArray.New()
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
...@@ -220,6 +245,7 @@ public: ...@@ -220,6 +245,7 @@ public:
* Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* ''' * '''
* exampleGrid.setDimensions(newPoints) * exampleGrid.setDimensions(newPoints)
* @endcode
* *
* @param dimensions the dimension of the grid. * @param dimensions the dimension of the grid.
*/ */
...@@ -232,6 +258,7 @@ public: ...@@ -232,6 +258,7 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfArray> newPoints = XdmfArray::New(); * shared_ptr<XdmfArray> newPoints = XdmfArray::New();
* newPoints->pushBack(5); * newPoints->pushBack(5);
* newPoints->pushBack(5); * newPoints->pushBack(5);
...@@ -241,9 +268,11 @@ public: ...@@ -241,9 +268,11 @@ public:
* newGeometry->insert(0, newPoints, 0, 3, 1, 1);//Start index is 0, 3 values are passed, stride for both arrays is 1 * newGeometry->insert(0, newPoints, 0, 3, 1, 1);//Start index is 0, 3 values are passed, stride for both arrays is 1
* //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * //Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* exampleGrid->setGeometry(newGeometry); * exampleGrid->setGeometry(newGeometry);
* @endcode
* *
* Python * Python
* *
* @code {.py}
* newPoints = XdmfArray.New() * newPoints = XdmfArray.New()
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
* newPoints.pushBackAsInt32(5) * newPoints.pushBackAsInt32(5)
...@@ -255,6 +284,7 @@ public: ...@@ -255,6 +284,7 @@ public:
* Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object * Assuming that exampleGrid is a sharedPointer to an XdmfCurvilinearGrid object
* ''' * '''
* exampleGrid.setGeometry(newGeometry) * exampleGrid.setGeometry(newGeometry)
* @endcode
* *
* @param geometry an XdmfGeometry to associate with this grid. * @param geometry an XdmfGeometry to associate with this grid.
*/ */
......
...@@ -53,11 +53,15 @@ public: ...@@ -53,11 +53,15 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfDomain> exampleDomain = XdmfDomain::New(); * shared_ptr<XdmfDomain> exampleDomain = XdmfDomain::New();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleDomain = XdmfDomain.New(); * exampleDomain = XdmfDomain.New();
* @endcode
* *
* @return constructed XdmfDomain. * @return constructed XdmfDomain.
*/ */
......
...@@ -50,11 +50,15 @@ public: ...@@ -50,11 +50,15 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfGeometry> exampleGeometry = XdmfGeometry::New(); * shared_ptr<XdmfGeometry> exampleGeometry = XdmfGeometry::New();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleGeometry = XdmfGeometry.New() * exampleGeometry = XdmfGeometry.New()
* @endcode
* *
* @return constructed XdmfGeometry. * @return constructed XdmfGeometry.
*/ */
...@@ -76,15 +80,19 @@ public: ...@@ -76,15 +80,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //assuming that exampleGeometry is a shared pointer to a XdmfGeometry object that has been filled with data * //assuming that exampleGeometry is a shared pointer to a XdmfGeometry object that has been filled with data
* unsigned int numPoints = exampleGeometry->getNumberPoints(); * unsigned int numPoints = exampleGeometry->getNumberPoints();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* assuming that exampleGeometry is a shared pointer to a XdmfGeometry object that has been filled with data * assuming that exampleGeometry is a shared pointer to a XdmfGeometry object that has been filled with data
* ''' * '''
* numPoints = exampleGeometry.getNumberPoints() * numPoints = exampleGeometry.getNumberPoints()
* @endcode
*/ */
virtual unsigned int getNumberPoints() const; virtual unsigned int getNumberPoints() const;
...@@ -95,15 +103,19 @@ public: ...@@ -95,15 +103,19 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //assuming that exampleGeometry is a shared pointer to a XdmfGeometry object * //assuming that exampleGeometry is a shared pointer to a XdmfGeometry object
* shared_ptr<const XdmfGeometryType> exampleType = exampleGeometry->getType(); * shared_ptr<const XdmfGeometryType> exampleType = exampleGeometry->getType();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* assuming that exampleGeometry is a shared pointer to a XdmfGeometry object * assuming that exampleGeometry is a shared pointer to a XdmfGeometry object
* ''' * '''
* exampleType = exampleGeometry.getType() * exampleType = exampleGeometry.getType()
* @endcode
* *
* @return XdmfGeometryType of this geometry. * @return XdmfGeometryType of this geometry.
*/ */
...@@ -116,13 +128,17 @@ public: ...@@ -116,13 +128,17 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* shared_ptr<XdmfGeometry> exampleGeometry = XdmfGeometry::New(); * shared_ptr<XdmfGeometry> exampleGeometry = XdmfGeometry::New();
* exampleGeometry->setType(XdmfGeometryType::XYZ()); * exampleGeometry->setType(XdmfGeometryType::XYZ());
* @endcode
* *
* Python * Python
* *
* @code {.py}
* exampleGeometry = XdmfGeometry.New() * exampleGeometry = XdmfGeometry.New()
* exampleGeometry.setType(XdmfGeometryType.XYZ()) * exampleGeometry.setType(XdmfGeometryType.XYZ())
* @endcode
* *
* @param type the XdmfGeometryType to set. * @param type the XdmfGeometryType to set.
*/ */
......
...@@ -68,8 +68,21 @@ public: ...@@ -68,8 +68,21 @@ public:
* *
* Example of use: * Example of use:
* *
* C++
*
* @code {.cpp}
* unsigned int exampleDimensions = XdmfGeometryType::XYZ()->getDimensions(); * unsigned int exampleDimensions = XdmfGeometryType::XYZ()->getDimensions();
* //The variable exampleDimensions now holds the number of dimensions that XYZ has * //The variable exampleDimensions now holds the number of dimensions that XYZ has
* @endcode
*
* Python
*
* @code {.py}
* exampleDimensions = XdmfGeometryType.XYZ().getDimensions()
* '''
* The variable exampleDimensions now holds the number of dimensions that XYZ has
* '''
* @endcode
* *
* @return an int containing number of dimensions. * @return an int containing number of dimensions.
*/ */
...@@ -80,8 +93,21 @@ public: ...@@ -80,8 +93,21 @@ public:
* *
* Example of use: * Example of use:
* *
* C++
*
* @code {.cpp}
* std::string exampleName = XdmfGeometryType::XYZ()->getName(); * std::string exampleName = XdmfGeometryType::XYZ()->getName();
* //The variable exampleName now holds the name of XYZ * //The variable exampleName now holds the name of XYZ
* @endcode
*
* Python
*
* @code {.py}
* exampleName = XdmfGeometryType.XYZ().getName()
* '''
* The variable exampleName now holds the name of XYZ
* '''
* @endcode
* *
* @return the name of this geometry type. * @return the name of this geometry type.
*/ */
......
...@@ -70,17 +70,21 @@ public: ...@@ -70,17 +70,21 @@ public:
* *
* C++ * C++
* *
8 @code {.cpp}
* //using an unstructured grid since XdmfGrid is an abstract class * //using an unstructured grid since XdmfGrid is an abstract class
* //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* shared_ptr<const XdmfGeometry> exampleGeometry = exampleGrid->getGeometry(); * shared_ptr<const XdmfGeometry> exampleGeometry = exampleGrid->getGeometry();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* using an unstructured grid since XdmfGrid is an abstract class * using an unstructured grid since XdmfGrid is an abstract class
* Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* ''' * '''
* exampleGeometry = exampleGrid.getGeometry() * exampleGeometry = exampleGrid.getGeometry()
* @endcode
* *
* @return the geometry associated with this grid. * @return the geometry associated with this grid.
*/ */
...@@ -97,17 +101,21 @@ public: ...@@ -97,17 +101,21 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //using an unstructured grid since XdmfGrid is an abstract class * //using an unstructured grid since XdmfGrid is an abstract class
* //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* std::string exampleName = exampleGrid->getName(); * std::string exampleName = exampleGrid->getName();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* using an unstructured grid since XdmfGrid is an abstract class * using an unstructured grid since XdmfGrid is an abstract class
* Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* ''' * '''
* exampleName = exampleGrid.getName() * exampleName = exampleGrid.getName()
* @endcode
* *
* @return the name of the grid. * @return the name of the grid.
*/ */
...@@ -120,17 +128,21 @@ public: ...@@ -120,17 +128,21 @@ public:
* *
* C++ * C++
* *
* @code {.cpp}
* //using an unstructured grid since XdmfGrid is an abstract class * //using an unstructured grid since XdmfGrid is an abstract class
* //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * //Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* shared_ptr<XdmfTime> exampleTime = exampleGrid->getTime(); * shared_ptr<XdmfTime> exampleTime = exampleGrid->getTime();
* @endcode
* *
* Python * Python
* *
* @code {.py}
* ''' * '''
* using an unstructured grid since XdmfGrid is an abstract class * using an unstructured grid since XdmfGrid is an abstract class
* Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object * Assumming that exampleGrid is a shared pointer to an XdmfUnstructuredGrid object
* ''' * '''
* exampleTime = exampleGrid.getTime() * exampleTime = exampleGrid.getTime()
* @endcode
* *
* @return pointer to the XdmfTime attached to this grid. If no * @return pointer to the XdmfTime attached to this grid. If no
* XdmfTime is attached, return a NULL pointer.