Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
Xdmf
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CrayzeeWulf
Xdmf
Commits
752922c8
Commit
752922c8
authored
Nov 07, 2012
by
Andrew J. Burns (Cont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C++ full examples added
parent
de5d5235
Changes
46
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
2723 additions
and
50 deletions
+2723
-50
XdmfAttribute.hpp
XdmfAttribute.hpp
+28
-0
XdmfCurvilinearGrid.hpp
XdmfCurvilinearGrid.hpp
+30
-0
XdmfDomain.hpp
XdmfDomain.hpp
+4
-0
XdmfGeometry.hpp
XdmfGeometry.hpp
+16
-0
XdmfGeometryType.hpp
XdmfGeometryType.hpp
+26
-0
XdmfGrid.hpp
XdmfGrid.hpp
+31
-5
XdmfGridCollection.hpp
XdmfGridCollection.hpp
+16
-0
XdmfItemFactory.hpp
XdmfItemFactory.hpp
+4
-0
XdmfMap.hpp
XdmfMap.hpp
+48
-0
XdmfReader.hpp
XdmfReader.hpp
+4
-0
XdmfRectilinearGrid.hpp
XdmfRectilinearGrid.hpp
+38
-0
XdmfRegularGrid.hpp
XdmfRegularGrid.hpp
+42
-0
XdmfSet.hpp
XdmfSet.hpp
+20
-0
XdmfTime.hpp
XdmfTime.hpp
+12
-0
XdmfTopology.hpp
XdmfTopology.hpp
+16
-0
XdmfTopologyType.hpp
XdmfTopologyType.hpp
+97
-2
XdmfUnstructuredGrid.hpp
XdmfUnstructuredGrid.hpp
+24
-0
core/XdmfArray.hpp
core/XdmfArray.hpp
+137
-3
core/XdmfArrayType.hpp
core/XdmfArrayType.hpp
+8
-0
core/XdmfCoreItemFactory.hpp
core/XdmfCoreItemFactory.hpp
+4
-0
core/XdmfCoreReader.hpp
core/XdmfCoreReader.hpp
+16
-0
core/XdmfHDF5Controller.hpp
core/XdmfHDF5Controller.hpp
+4
-0
core/XdmfHDF5ControllerDSM.hpp
core/XdmfHDF5ControllerDSM.hpp
+4
-0
core/XdmfHDF5Writer.hpp
core/XdmfHDF5Writer.hpp
+4
-0
core/XdmfHDF5WriterDSM.hpp
core/XdmfHDF5WriterDSM.hpp
+4
-0
core/XdmfHeavyDataController.hpp
core/XdmfHeavyDataController.hpp
+28
-0
core/XdmfHeavyDataWriter.hpp
core/XdmfHeavyDataWriter.hpp
+32
-0
core/XdmfInformation.hpp
core/XdmfInformation.hpp
+24
-0
core/XdmfItem.hpp
core/XdmfItem.hpp
+84
-32
core/XdmfItemProperty.hpp
core/XdmfItemProperty.hpp
+4
-0
core/XdmfSystemUtils.hpp
core/XdmfSystemUtils.hpp
+4
-0
core/XdmfWriter.hpp
core/XdmfWriter.hpp
+52
-0
tests/Cxx/ExampleXdmfEdit.cpp
tests/Cxx/ExampleXdmfEdit.cpp
+718
-0
tests/Cxx/ExampleXdmfRead.cpp
tests/Cxx/ExampleXdmfRead.cpp
+574
-0
tests/Cxx/ExampleXdmfWrite.cpp
tests/Cxx/ExampleXdmfWrite.cpp
+226
-0
tests/Cxx/c++compilestring.txt
tests/Cxx/c++compilestring.txt
+3
-0
tests/Cxx/editedtestoutput.h5
tests/Cxx/editedtestoutput.h5
+0
-0
tests/Cxx/editedtestoutput.xmf
tests/Cxx/editedtestoutput.xmf
+111
-0
tests/Cxx/exampleedit
tests/Cxx/exampleedit
+0
-0
tests/Cxx/exampleread
tests/Cxx/exampleread
+0
-0
tests/Cxx/examplewrite
tests/Cxx/examplewrite
+0
-0
tests/Cxx/testoutput.h5
tests/Cxx/testoutput.h5
+0
-0
tests/Cxx/testoutput.xmf
tests/Cxx/testoutput.xmf
+111
-0
tests/Python/FinishedXdmfExampleRead.py
tests/Python/FinishedXdmfExampleRead.py
+8
-8
tests/Python/XdmfExampleWrite.py
tests/Python/XdmfExampleWrite.py
+106
-0
utils/XdmfFortran.cpp
utils/XdmfFortran.cpp
+1
-0
No files found.
XdmfAttribute.hpp
View file @
752922c8
...
@@ -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.
*/
*/
...
...
XdmfCurvilinearGrid.hpp
View file @
752922c8
...
@@ -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.
*/
*/
...
...
XdmfDomain.hpp
View file @
752922c8
...
@@ -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.
*/
*/
...
...
XdmfGeometry.hpp
View file @
752922c8
...
@@ -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.
*/
*/
...
...
XdmfGeometryType.hpp
View file @
752922c8
...
@@ -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.
*/
*/
...
...
XdmfGrid.hpp
View file @
752922c8
...
@@ -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.