Xdmf.i 69.9 KB
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3 4 5
/*
XdmfPython.cpp:
swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
*/

6 7 8 9 10 11 12 13 14
%{
#include <cstddef>
#include <iostream>
#if PY_VERSION_HEX >= 0x03020000
    #define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
#else
    #define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
#endif
%}
15 16 17

#ifdef XDMF_BUILD_DSM

18 19
%module Xdmf
%{
20 21 22
    // MPI Includes
    #include <mpi.h>

23
    // XdmfCore Includes
24 25
    #include <Xdmf.hpp>
    #include <XdmfArray.hpp>
26
    #include <XdmfArrayReference.hpp>
27 28 29
    #include <XdmfArrayType.hpp>
    #include <XdmfCoreItemFactory.hpp>
    #include <XdmfCoreReader.hpp>
30 31
    #include <XdmfDSMBuffer.hpp>
    #include <XdmfDSMCommMPI.hpp>
32
    #include <XdmfDSMItemFactory.hpp>
33
    #include <XdmfError.hpp>
34
    #include <XdmfFunction.hpp>
35 36 37 38 39 40 41 42 43
    #include <XdmfHDF5Controller.hpp>
    #include <XdmfHDF5Writer.hpp>
    #include <XdmfHDF5ControllerDSM.hpp>
    #include <XdmfHDF5WriterDSM.hpp>
    #include <XdmfHeavyDataController.hpp>
    #include <XdmfHeavyDataWriter.hpp>
    #include <XdmfInformation.hpp>
    #include <XdmfItem.hpp>
    #include <XdmfItemProperty.hpp>
44
    #include <XdmfSharedPtr.hpp>
45
    #include <XdmfSparseMatrix.hpp>
Andrew J. Burns (Cont's avatar
Andrew J. Burns (Cont committed
46
    #include <XdmfSubset.hpp>
47
    #include <XdmfSystemUtils.hpp>
48
    #include <XdmfTIFFController.hpp>
49 50
    #include <XdmfVisitor.hpp>
    #include <XdmfWriter.hpp>
51

52
    // Xdmf Includes
53
    #include <XdmfAggregate.hpp>
54 55 56 57 58 59 60
    #include <XdmfAttribute.hpp>
    #include <XdmfAttributeCenter.hpp>
    #include <XdmfAttributeType.hpp>
    #include <XdmfCurvilinearGrid.hpp>
    #include <XdmfDomain.hpp>
    #include <XdmfGeometry.hpp>
    #include <XdmfGeometryType.hpp>
61
    #include <XdmfGraph.hpp>
62 63 64 65 66 67 68 69 70 71 72 73 74 75
    #include <XdmfGrid.hpp>
    #include <XdmfGridCollection.hpp>
    #include <XdmfGridCollectionType.hpp>
    #include <XdmfItemFactory.hpp>
    #include <XdmfMap.hpp>
    #include <XdmfReader.hpp>
    #include <XdmfRectilinearGrid.hpp>
    #include <XdmfRegularGrid.hpp>
    #include <XdmfSet.hpp>
    #include <XdmfSetType.hpp>
    #include <XdmfTime.hpp>
    #include <XdmfTopology.hpp>
    #include <XdmfTopologyType.hpp>
    #include <XdmfUnstructuredGrid.hpp>
76

77
%}
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
78

79 80 81 82 83 84
#else
%module Xdmf
%{
    // XdmfCore Includes
    #include <Xdmf.hpp>
    #include <XdmfArray.hpp>
85
    #include <XdmfArrayReference.hpp>
86 87 88 89
    #include <XdmfArrayType.hpp>
    #include <XdmfCoreItemFactory.hpp>
    #include <XdmfCoreReader.hpp>
    #include <XdmfError.hpp>
90
    #include <XdmfFunction.hpp>
91 92 93 94 95 96 97 98
    #include <XdmfHDF5Controller.hpp>
    #include <XdmfHDF5Writer.hpp>
    #include <XdmfHeavyDataController.hpp>
    #include <XdmfHeavyDataWriter.hpp>
    #include <XdmfInformation.hpp>
    #include <XdmfItem.hpp>
    #include <XdmfItemProperty.hpp>
    #include <XdmfSharedPtr.hpp>
99
    #include <XdmfSparseMatrix.hpp>
Andrew J. Burns (Cont's avatar
Andrew J. Burns (Cont committed
100
    #include <XdmfSubset.hpp>
101
    #include <XdmfSystemUtils.hpp>
102
    #include <XdmfTIFFController.hpp>
103 104 105 106
    #include <XdmfVisitor.hpp>
    #include <XdmfWriter.hpp>

    // Xdmf Includes
107
    #include <XdmfAggregate.hpp>
108 109 110 111 112 113 114
    #include <XdmfAttribute.hpp>
    #include <XdmfAttributeCenter.hpp>
    #include <XdmfAttributeType.hpp>
    #include <XdmfCurvilinearGrid.hpp>
    #include <XdmfDomain.hpp>
    #include <XdmfGeometry.hpp>
    #include <XdmfGeometryType.hpp>
115
    #include <XdmfGraph.hpp>
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
    #include <XdmfGrid.hpp>
    #include <XdmfGridCollection.hpp>
    #include <XdmfGridCollectionType.hpp>
    #include <XdmfItemFactory.hpp>
    #include <XdmfMap.hpp>
    #include <XdmfReader.hpp>
    #include <XdmfRectilinearGrid.hpp>
    #include <XdmfRegularGrid.hpp>
    #include <XdmfSet.hpp>
    #include <XdmfSetType.hpp>
    #include <XdmfTime.hpp>
    #include <XdmfTopology.hpp>
    #include <XdmfTopologyType.hpp>
    #include <XdmfUnstructuredGrid.hpp>
%}

#endif

134 135
%import XdmfCore.i

136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976
// Ignoring C Wrappers

// XdmfAggregate

%ignore XdmfAggregateNew();
%ignore XdmfAggregateGetArray(XDMFAGGREGATE * aggregate, unsigned int index);
%ignore XdmfAggregateGetArrayByName(XDMFAGGREGATE * aggregate, char * name);
%ignore XdmfAggregateGetNumberArrays(XDMFAGGREGATE * aggregate);
%ignore XdmfAggregateInsertArray(XDMFAGGREGATE * aggregate, XDMFARRAY * array, int transferOwnership);
%ignore XdmfAggregateRemoveArray(XDMFAGGREGATE * aggregate, unsigned int index);
%ignore XdmfAggregateRemoveArrayByName(XDMFAGGREGATE * aggregate, char * name);

// XdmfAttributeCenter

%ignore XdmfAttributeCenterGrid();
%ignore XdmfAttributeCenterCell();
%ignore XdmfAttributeCenterFace();
%ignore XdmfAttributeCenterEdge();
%ignore XdmfAttributeCenterNode();

// XdmfAttribute

%ignore XdmfAttributeNew();
%ignore XdmfAttributeGetCenter(XDMFATTRIBUTE * attribute);
%ignore XdmfAttributeGetType(XDMFATTRIBUTE * attribute);
%ignore XdmfAttributeSetCenter(XDMFATTRIBUTE * attribute, int center, int * status);
%ignore XdmfAttributeSetType(XDMFATTRIBUTE * attribute, int type, int * status);
// XdmfAttribute inherited from XdmfArray
%ignore XdmfAttributeNew();
%ignore XdmfAttributeClear(XDMFATTRIBUTE * array);
%ignore XdmfAttributeErase(XDMFATTRIBUTE * array, unsigned int index);
%ignore XdmfAttributeGetArrayType(XDMFATTRIBUTE * array, int * status);
%ignore XdmfAttributeGetCapacity(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetDimensions(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetDimensionsString(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetHeavyDataController(XDMFATTRIBUTE * array, unsigned int index);
%ignore XdmfAttributeGetReadMode(XDMFATTRIBUTE * array, int * status);
%ignore XdmfAttributeGetName(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetNumberDimensions(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetNumberHeavyDataControllers(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetSize(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetReference(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetValue(XDMFATTRIBUTE * array, unsigned int index, int arrayType, int * status);
%ignore XdmfAttributeGetValues(XDMFATTRIBUTE * array, unsigned int startIndex, int arrayType, unsigned int numValues, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfAttributeGetValuesInternal(XDMFATTRIBUTE * array);
%ignore XdmfAttributeGetValuesString(XDMFATTRIBUTE * array);
%ignore XdmfAttributeInitialize(XDMFATTRIBUTE * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfAttributeInsertDataFromPointer(XDMFATTRIBUTE * array, void * values, int arrayType, unsigned int startIndex, unsigned int numVals, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfAttributeInsertDataFromXdmfArray(XDMFATTRIBUTE * array, XDMFARRAY * valArray, int * arrayStarts, int * valueStarts, int * arrayCounts, int * valueCounts, int * arrayStrides, int * valueStrides, int * status);
%ignore XdmfAttributeInsertHeavyDataController(XDMFATTRIBUTE * array, XDMFHEAVYDATACONTROLLER * controller, int passControl);
%ignore XdmfAttributeInsertValue(XDMFATTRIBUTE * array, unsigned int index, void * value, int arrayType, int * status);
%ignore XdmfAttributeIsInitialized(XDMFATTRIBUTE * array);
%ignore XdmfAttributePushBack(XDMFATTRIBUTE * array, void * value, int arrayType, int * status);
%ignore XdmfAttributeRead(XDMFATTRIBUTE * array, int * status);
%ignore XdmfAttributeReadController(XDMFATTRIBUTE * array, int * status);
%ignore XdmfAttributeReadReference(XDMFATTRIBUTE * array, int * status);
%ignore XdmfAttributeRelease(XDMFATTRIBUTE * array);
%ignore XdmfAttributeRemoveHeavyDataController(XDMFATTRIBUTE * array, unsigned int index);
%ignore XdmfAttributeReserve(XDMFATTRIBUTE * array, int size);
%ignore XdmfAttributeResize(XDMFATTRIBUTE * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfAttributeSetReadMode(XDMFATTRIBUTE * array, int readMode, int * status);
%ignore XdmfAttributeSetReference(XDMFATTRIBUTE * array, XDMFARRAYREFERENCE * reference, int passControl);
%ignore XdmfAttributeSetName(XDMFATTRIBUTE * array, char * name, int * status);
%ignore XdmfAttributeSetValuesInternal(XDMFATTRIBUTE * array, void * pointer, unsigned int numValues, int arrayType, int transferOwnership, int * status);
%ignore XdmfAttributeSwapWithXdmfArray(XDMFATTRIBUTE * array, XDMFARRAY * swapArray);
%ignore XdmfAttributeSwapWithArray(XDMFATTRIBUTE * array, void ** pointer, int numValues, int arrayType, int * status);
// XdmfAttribute inherited from XdmfItem
%ignore XdmfAttributeAccept(XDMFATTRIBUTE * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfAttributeFree(void * item);
%ignore XdmfAttributeGetInformation(XDMFATTRIBUTE * item, unsigned int index);
%ignore XdmfAttributeGetInformationByKey(XDMFATTRIBUTE * item, char * key);
%ignore XdmfAttributeGetNumberInformations(XDMFATTRIBUTE * item);
%ignore XdmfAttributeInsertInformation(XDMFATTRIBUTE * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfAttributeRemoveInformation(XDMFATTRIBUTE * item, unsigned int index);
%ignore XdmfAttributeRemoveInformationByKey(XDMFATTRIBUTE * item, char * key);
%ignore XdmfAttributeGetItemTag(XDMFATTRIBUTE * item);

// XdmfAttributeType

%ignore XdmfAttributeTypeScalar();
%ignore XdmfAttributeTypeVector();
%ignore XdmfAttributeTypeTensor();
%ignore XdmfAttributeTypeMatrix();
%ignore XdmfAttributeTypeTensor6();
%ignore XdmfAttributeTypeGlobalId();
%ignore XdmfAttributeTypeNoAttributeType();

// XdmfCurvilinearGrid

%ignore XdmfCurvilinearGridNew2D(unsigned int xNumPoints,
                                 unsigned int yNumPoints);
%ignore XdmfCurvilinearGridNew3D(unsigned int xNumPoints,
                                 unsigned int yNumPoints,
                                 unsigned int zNumPoints);
%ignore XdmfCurvilinearGridNew(XDMFARRAY * numPoints, int * status);
%ignore XdmfCurvilinearGridGetDimensions(XDMFCURVILINEARGRID * grid, int * status);
%ignore XdmfCurvilinearGridGetGeometry(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridSetDimensions(XDMFCURVILINEARGRID * grid,
                                         XDMFARRAY * dimensions,
                                         int passControl,
                                         int * status);
%ignore XdmfCurvilinearGridSetGeometry(XDMFCURVILINEARGRID * grid,
                                       XDMFGEOMETRY * geometry,
                                       int passControl);
// XdmfCurvilinearGrid inherited from XdmfItem
%ignore XdmfCurvilinearGridAccept(XDMFCURVILINEARGRID * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfCurvilinearGridFree(void * item);
%ignore XdmfCurvilinearGridGetInformation(XDMFCURVILINEARGRID * item, unsigned int index);
%ignore XdmfCurvilinearGridGetInformationByKey(XDMFCURVILINEARGRID * item, char * key);
%ignore XdmfCurvilinearGridGetNumberInformations(XDMFCURVILINEARGRID * item);
%ignore XdmfCurvilinearGridInsertInformation(XDMFCURVILINEARGRID * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfCurvilinearGridRemoveInformation(XDMFCURVILINEARGRID * item, unsigned int index);
%ignore XdmfCurvilinearGridRemoveInformationByKey(XDMFCURVILINEARGRID * item, char * key);
%ignore XdmfCurvilinearGridGetItemTag(XDMFCURVILINEARGRID * item);
// XdmfCurvilinearGrid inherited from XdmfGrid
%ignore XdmfCurvilinearGridGetAttribute(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridGetAttributeByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetNumberAttributes(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridInsertAttribute(XDMFCURVILINEARGRID * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfCurvilinearGridRemoveAttribute(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridRemoveAttributeByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetSet(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridGetSetByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetNumberSets(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridInsertSet(XDMFCURVILINEARGRID * grid, XDMFSET * Set, int passControl);
%ignore XdmfCurvilinearGridRemoveSet(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridRemoveSetByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetMap(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridGetMapByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetNumberMaps(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridInsertMap(XDMFCURVILINEARGRID * grid, XDMFMAP * Map, int passControl);
%ignore XdmfCurvilinearGridRemoveMap(XDMFCURVILINEARGRID * grid, unsigned int index);
%ignore XdmfCurvilinearGridRemoveMapByName(XDMFCURVILINEARGRID * grid, char * Name);
%ignore XdmfCurvilinearGridGetName(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridGetTime(XDMFCURVILINEARGRID * grid);
%ignore XdmfCurvilinearGridSetName(XDMFCURVILINEARGRID * grid, char * name, int * status);
%ignore XdmfCurvilinearGridSetTime(XDMFCURVILINEARGRID * grid, XDMFTIME * time, int passControl);

// XdmfDomain

%ignore XdmfDomainNew();
%ignore XdmfDomainGetGridCollection(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetGridCollectionByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberGridCollections(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertGridCollection(XDMFDOMAIN * domain,
                                       XDMFGRIDCOLLECTION * GridCollection,
                                       int passControl);
%ignore XdmfDomainRemoveGridCollection(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveGridCollectionByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetGraph(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetGraphByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberGraphs(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertGraph(XDMFDOMAIN * domain, XDMFGRAPH * graph, int passControl);
%ignore XdmfDomainRemoveGraph(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveGraphByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetCurvilinearGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetCurvilinearGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberCurvilinearGrids(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertCurvilinearGrid(XDMFDOMAIN * domain,
                                        XDMFCURVILINEARGRID * CurvilinearGrid,
                                        int passControl);
%ignore XdmfDomainRemoveCurvilinearGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveCurvilinearGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetRectilinearGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetRectilinearGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberRectilinearGrids(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertRectilinearGrid(XDMFDOMAIN * domain,
                                        XDMFRECTILINEARGRID * RectilinearGrid,
                                        int passControl);
%ignore XdmfDomainRemoveRectilinearGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveRectilinearGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetRegularGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetRegularGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberRegularGrids(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertRegularGrid(XDMFDOMAIN * domain,
                                    XDMFREGULARGRID * RegularGrid,
                                    int passControl);
%ignore XdmfDomainRemoveRegularGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveRegularGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetUnstructuredGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainGetUnstructuredGridByName(XDMFDOMAIN * domain, char * Name);
%ignore XdmfDomainGetNumberUnstructuredGrids(XDMFDOMAIN * domain);
%ignore XdmfDomainInsertUnstructuredGrid(XDMFDOMAIN * domain,
                                         XDMFUNSTRUCTUREDGRID * UnstructuredGrid,
                                         int passControl);
%ignore XdmfDomainRemoveUnstructuredGrid(XDMFDOMAIN * domain, unsigned int index);
%ignore XdmfDomainRemoveUnstructuredGridByName(XDMFDOMAIN * domain, char * Name);
// XdmfDomain inherited from XdmfItem
%ignore XdmfDomainAccept(XDMFDOMAIN * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfDomainFree(void * item);
%ignore XdmfDomainGetInformation(XDMFDOMAIN * item, unsigned int index);
%ignore XdmfDomainGetInformationByKey(XDMFDOMAIN * item, char * key);
%ignore XdmfDomainGetNumberInformations(XDMFDOMAIN * item);
%ignore XdmfDomainInsertInformation(XDMFDOMAIN * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfDomainRemoveInformation(XDMFDOMAIN * item, unsigned int index);
%ignore XdmfDomainRemoveInformationByKey(XDMFDOMAIN * item, char * key);
%ignore XdmfDomainGetItemTag(XDMFDOMAIN * item);

// XdmfGeometry

%ignore XdmfGeometryNew();
%ignore XdmfGeometryGetNumberPoints(XDMFGEOMETRY * geometry);
%ignore XdmfGeometryGetOrigin(XDMFGEOMETRY * geometry);
%ignore XdmfGeometryGetOriginSize(XDMFGEOMETRY * geometry);
%ignore XdmfGeometryGetType(XDMFGEOMETRY * geometry);
%ignore XdmfGeometrySetOrigin(XDMFGEOMETRY * geometry, double newX, double newY, double newZ);
%ignore XdmfGeometrySetOriginArray(XDMFGEOMETRY * geometry, double * originVals, unsigned int numDims);
%ignore XdmfGeometrySetType(XDMFGEOMETRY * geometry, int type, int * status);
// XdmfGeometry inherited from XdmfArray
%ignore XdmfGeometryNew();
%ignore XdmfGeometryClear(XDMFGEOMETRY * array);
%ignore XdmfGeometryErase(XDMFGEOMETRY * array, unsigned int index);
%ignore XdmfGeometryGetArrayType(XDMFGEOMETRY * array, int * status);
%ignore XdmfGeometryGetCapacity(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetDimensions(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetDimensionsString(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetHeavyDataController(XDMFGEOMETRY * array, unsigned int index);
%ignore XdmfGeometryGetReadMode(XDMFGEOMETRY * array, int * status);
%ignore XdmfGeometryGetName(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetNumberDimensions(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetNumberHeavyDataControllers(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetSize(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetReference(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetValue(XDMFGEOMETRY * array, unsigned int index, int arrayType, int * status);
%ignore XdmfGeometryGetValues(XDMFGEOMETRY * array, unsigned int startIndex, int arrayType, unsigned int numValues, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfGeometryGetValuesInternal(XDMFGEOMETRY * array);
%ignore XdmfGeometryGetValuesString(XDMFGEOMETRY * array);
%ignore XdmfGeometryInitialize(XDMFGEOMETRY * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfGeometryInsertDataFromPointer(XDMFGEOMETRY * array, void * values, int arrayType, unsigned int startIndex, unsigned int numVals, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfGeometryInsertDataFromXdmfArray(XDMFGEOMETRY * array, XDMFARRAY * valArray, int * arrayStarts, int * valueStarts, int * arrayCounts, int * valueCounts, int * arrayStrides, int * valueStrides, int * status);
%ignore XdmfGeometryInsertHeavyDataController(XDMFGEOMETRY * array, XDMFHEAVYDATACONTROLLER * controller, int passControl);
%ignore XdmfGeometryInsertValue(XDMFGEOMETRY * array, unsigned int index, void * value, int arrayType, int * status);
%ignore XdmfGeometryIsInitialized(XDMFGEOMETRY * array);
%ignore XdmfGeometryPushBack(XDMFGEOMETRY * array, void * value, int arrayType, int * status);
%ignore XdmfGeometryRead(XDMFGEOMETRY * array, int * status);
%ignore XdmfGeometryReadController(XDMFGEOMETRY * array, int * status);
%ignore XdmfGeometryReadReference(XDMFGEOMETRY * array, int * status);
%ignore XdmfGeometryRelease(XDMFGEOMETRY * array);
%ignore XdmfGeometryRemoveHeavyDataController(XDMFGEOMETRY * array, unsigned int index);
%ignore XdmfGeometryReserve(XDMFGEOMETRY * array, int size);
%ignore XdmfGeometryResize(XDMFGEOMETRY * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfGeometrySetReadMode(XDMFGEOMETRY * array, int readMode, int * status);
%ignore XdmfGeometrySetReference(XDMFGEOMETRY * array, XDMFARRAYREFERENCE * reference, int passControl);
%ignore XdmfGeometrySetName(XDMFGEOMETRY * array, char * name, int * status);
%ignore XdmfGeometrySetValuesInternal(XDMFGEOMETRY * array, void * pointer, unsigned int numValues, int arrayType, int transferOwnership, int * status);
%ignore XdmfGeometrySwapWithXdmfArray(XDMFGEOMETRY * array, XDMFARRAY * swapArray);
%ignore XdmfGeometrySwapWithArray(XDMFGEOMETRY * array, void ** pointer, int numValues, int arrayType, int * status);
// XdmfGeometry inherited from XdmfItem
%ignore XdmfGeometryAccept(XDMFGEOMETRY * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfGeometryFree(void * item);
%ignore XdmfGeometryGetInformation(XDMFGEOMETRY * item, unsigned int index);
%ignore XdmfGeometryGetInformationByKey(XDMFGEOMETRY * item, char * key);
%ignore XdmfGeometryGetNumberInformations(XDMFGEOMETRY * item);
%ignore XdmfGeometryInsertInformation(XDMFGEOMETRY * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfGeometryRemoveInformation(XDMFGEOMETRY * item, unsigned int index);
%ignore XdmfGeometryRemoveInformationByKey(XDMFGEOMETRY * item, char * key);
%ignore XdmfGeometryGetItemTag(XDMFGEOMETRY * item);

// XdmfGeometryType

%ignore XdmfGeometryTypeNoGeometryType();
%ignore XdmfGeometryTypeXYZ();
%ignore XdmfGeometryTypeXY();
%ignore XdmfGeometryTypeGetDimensions(int type, int * status);
%ignore XdmfGeometryTypeGetName(int type);

// XdmfGraph

%ignore XdmfGraphNew(unsigned int numberNodes);
%ignore XdmfGraphGetAttribute(XDMFGRAPH * graph, unsigned int index);
%ignore XdmfGraphGetAttributeByName(XDMFGRAPH * graph, char * Name);
%ignore XdmfGraphGetNumberAttributes(XDMFGRAPH * graph);
%ignore XdmfGraphInsertAttribute(XDMFGRAPH * graph, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfGraphRemoveAttribute(XDMFGRAPH * graph, unsigned int index);
%ignore XdmfGraphRemoveAttributeByName(XDMFGRAPH * graph, char * Name);
%ignore XdmfGraphGetNumberNodes(XDMFGRAPH * graph);
// XdmfGraph inherited from XdmfSparseMatrix
%ignore XdmfGraphNew(unsigned int numberRows, unsigned int numberColumns);
%ignore XdmfGraphGetColumnIndex(XDMFGRAPH * matrix, int * status);
%ignore XdmfGraphGetName(XDMFGRAPH * matrix);
%ignore XdmfGraphGetNumberColumns(XDMFGRAPH * matrix);
%ignore XdmfGraphGetNumberRows(XDMFGRAPH * matrix);
%ignore XdmfGraphGetRowPointer(XDMFGRAPH * matrix, int * status);
%ignore XdmfGraphGetValues(XDMFGRAPH * matrix, int * status);
%ignore XdmfGraphGetValuesString(XDMFGRAPH * matrix, int * status);
%ignore XdmfGraphSetColumnIndex(XDMFGRAPH * matrix,
                                XDMFARRAY * columnIndex,
                                int passControl,
                                int * status);
%ignore XdmfGraphSetName(XDMFGRAPH * matrix, char * name, int * status);
%ignore XdmfGraphSetRowPointer(XDMFGRAPH * matrix,
                               XDMFARRAY * rowPointer,
                               int passControl,
                               int * status);
%ignore XdmfGraphSetValues(XDMFGRAPH * matrix,
                           XDMFARRAY * values,
                           int passControl,
                           int * status);
// XdmfGraph inherited from XdmfItem
%ignore XdmfGraphAccept(XDMFGRAPH * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfGraphFree(void * item);
%ignore XdmfGraphGetInformation(XDMFGRAPH * item, unsigned int index);
%ignore XdmfGraphGetInformationByKey(XDMFGRAPH * item, char * key);
%ignore XdmfGraphGetNumberInformations(XDMFGRAPH * item);
%ignore XdmfGraphInsertInformation(XDMFGRAPH * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfGraphRemoveInformation(XDMFGRAPH * item, unsigned int index);
%ignore XdmfGraphRemoveInformationByKey(XDMFGRAPH * item, char * key);
%ignore XdmfGraphGetItemTag(XDMFGRAPH * item);

// XdmfGridCollection

%ignore XdmfGridCollectionNew();
%ignore XdmfGridCollectionGetType(XDMFGRIDCOLLECTION * collection, int * status);
%ignore XdmfGridCollectionSetType(XDMFGRIDCOLLECTION * collection, int type, int * status);
// XdmfGridCollection inherited from XdmfDomain
%ignore XdmfGridCollectionGetGridCollection(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetGridCollectionByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberGridCollections(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertGridCollection(XDMFGRIDCOLLECTION * domain,
                                       XDMFGRIDCOLLECTION * GridCollection,
                                       int passControl);
%ignore XdmfGridCollectionRemoveGridCollection(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveGridCollectionByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetGraph(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetGraphByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberGraphs(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertGraph(XDMFGRIDCOLLECTION * domain, XDMFGRAPH * graph, int passControl);
%ignore XdmfGridCollectionRemoveGraph(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveGraphByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetCurvilinearGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetCurvilinearGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberCurvilinearGrids(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertCurvilinearGrid(XDMFGRIDCOLLECTION * domain,
                                        XDMFCURVILINEARGRID * CurvilinearGrid,
                                        int passControl);
%ignore XdmfGridCollectionRemoveCurvilinearGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveCurvilinearGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetRectilinearGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetRectilinearGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberRectilinearGrids(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertRectilinearGrid(XDMFGRIDCOLLECTION * domain,
                                        XDMFRECTILINEARGRID * RectilinearGrid,
                                        int passControl);
%ignore XdmfGridCollectionRemoveRectilinearGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveRectilinearGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetRegularGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetRegularGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberRegularGrids(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertRegularGrid(XDMFGRIDCOLLECTION * domain,
                                    XDMFREGULARGRID * RegularGrid,
                                    int passControl);
%ignore XdmfGridCollectionRemoveRegularGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveRegularGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetUnstructuredGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionGetUnstructuredGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
%ignore XdmfGridCollectionGetNumberUnstructuredGrids(XDMFGRIDCOLLECTION * domain);
%ignore XdmfGridCollectionInsertUnstructuredGrid(XDMFGRIDCOLLECTION * domain,
                                         XDMFUNSTRUCTUREDGRID * UnstructuredGrid,
                                         int passControl);
%ignore XdmfGridCollectionRemoveUnstructuredGrid(XDMFGRIDCOLLECTION * domain, unsigned int index);
%ignore XdmfGridCollectionRemoveUnstructuredGridByName(XDMFGRIDCOLLECTION * domain, char * Name);
// XdmfGridCollection inherited from XdmfGrid
%ignore XdmfGridCollectionGetAttribute(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionGetAttributeByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetNumberAttributes(XDMFGRIDCOLLECTION * grid);
%ignore XdmfGridCollectionInsertAttribute(XDMFGRIDCOLLECTION * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfGridCollectionRemoveAttribute(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionRemoveAttributeByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetSet(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionGetSetByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetNumberSets(XDMFGRIDCOLLECTION * grid);
%ignore XdmfGridCollectionInsertSet(XDMFGRIDCOLLECTION * grid, XDMFSET * Set, int passControl);
%ignore XdmfGridCollectionRemoveSet(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionRemoveSetByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetMap(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionGetMapByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetNumberMaps(XDMFGRIDCOLLECTION * grid);
%ignore XdmfGridCollectionInsertMap(XDMFGRIDCOLLECTION * grid, XDMFMAP * Map, int passControl);
%ignore XdmfGridCollectionRemoveMap(XDMFGRIDCOLLECTION * grid, unsigned int index);
%ignore XdmfGridCollectionRemoveMapByName(XDMFGRIDCOLLECTION * grid, char * Name);
%ignore XdmfGridCollectionGetName(XDMFGRIDCOLLECTION * grid);
%ignore XdmfGridCollectionGetTime(XDMFGRIDCOLLECTION * grid);
%ignore XdmfGridCollectionSetName(XDMFGRIDCOLLECTION * grid, char * name, int * status);
%ignore XdmfGridCollectionSetTime(XDMFGRIDCOLLECTION * grid, XDMFTIME * time, int passControl);
// XdmfGridCollection inherited from XdmfItem
%ignore XdmfGridCollectionAccept(XDMFGRIDCOLLECTION * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfGridCollectionFree(void * item);
%ignore XdmfGridCollectionGetInformation(XDMFGRIDCOLLECTION * item, unsigned int index);
%ignore XdmfGridCollectionGetInformationByKey(XDMFGRIDCOLLECTION * item, char * key);
%ignore XdmfGridCollectionGetNumberInformations(XDMFGRIDCOLLECTION * item);
%ignore XdmfGridCollectionInsertInformation(XDMFGRIDCOLLECTION * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfGridCollectionRemoveInformation(XDMFGRIDCOLLECTION * item, unsigned int index);
%ignore XdmfGridCollectionRemoveInformationByKey(XDMFGRIDCOLLECTION * item, char * key);
%ignore XdmfGridCollectionGetItemTag(XDMFGRIDCOLLECTION * item);

// XdmfGrid

// XdmfGrid inherited from XdmfGrid
%ignore XdmfGridGetAttribute(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridGetAttributeByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetNumberAttributes(XDMFGRID * grid);
%ignore XdmfGridInsertAttribute(XDMFGRID * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfGridRemoveAttribute(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridRemoveAttributeByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetSet(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridGetSetByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetNumberSets(XDMFGRID * grid);
%ignore XdmfGridInsertSet(XDMFGRID * grid, XDMFSET * Set, int passControl);
%ignore XdmfGridRemoveSet(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridRemoveSetByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetMap(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridGetMapByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetNumberMaps(XDMFGRID * grid);
%ignore XdmfGridInsertMap(XDMFGRID * grid, XDMFMAP * Map, int passControl);
%ignore XdmfGridRemoveMap(XDMFGRID * grid, unsigned int index);
%ignore XdmfGridRemoveMapByName(XDMFGRID * grid, char * Name);
%ignore XdmfGridGetName(XDMFGRID * grid);
%ignore XdmfGridGetTime(XDMFGRID * grid);
%ignore XdmfGridSetName(XDMFGRID * grid, char * name, int * status);
%ignore XdmfGridSetTime(XDMFGRID * grid, XDMFTIME * time, int passControl);
// XdmfGrid inherited from XdmfItem
%ignore XdmfGridAccept(XDMFGRID * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfGridFree(void * item);
%ignore XdmfGridGetInformation(XDMFGRID * item, unsigned int index);
%ignore XdmfGridGetInformationByKey(XDMFGRID * item, char * key);
%ignore XdmfGridGetNumberInformations(XDMFGRID * item);
%ignore XdmfGridInsertInformation(XDMFGRID * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfGridRemoveInformation(XDMFGRID * item, unsigned int index);
%ignore XdmfGridRemoveInformationByKey(XDMFGRID * item, char * key);
%ignore XdmfGridGetItemTag(XDMFGRID * item);

// XdmfMap

%ignore XdmfMapNew();
%ignore XdmfMapNewFromIdVector(int ** globalNodeIds, int * numIdsOnNode, int numIds);
%ignore XdmfMapGetName(XDMFMAP * map);
%ignore XdmfMapInsert(XDMFMAP * map, int remoteTaskId, int localNodeId, int remoteLocalNodeId);
%ignore XdmfMapIsInitialized(XDMFMAP * map);
%ignore XdmfMapRead(XDMFMAP * map, int * status);
%ignore XdmfMapRelease(XDMFMAP * map);
%ignore XdmfMapRetrieveLocalNodeIds(XDMFMAP * map, int remoteTaskId);
%ignore XdmfMapRetrieveNumberLocalNodeIds(XDMFMAP * map, int remoteTaskId);
%ignore XdmfMapRetrieveNumberRemoteTaskIds(XDMFMAP * map);
%ignore XdmfMapRetrieveNumberRemoteNodeIds(XDMFMAP * map, int remoteTaskId, int localNodeId);
%ignore XdmfMapRetrieveRemoteTaskIds(XDMFMAP * map);
%ignore XdmfMapRetrieveRemoteNodeIds(XDMFMAP * map, int remoteTaskId, int localNodeId);
%ignore XdmfMapSetHeavyDataControllers(XDMFMAP * map,
                                       XDMFHEAVYDATACONTROLLER ** remoteTaskControllers,
                                       int numRemoteTaskControllers,
                                       XDMFHEAVYDATACONTROLLER ** localNodeControllers,
                                       int numberLocalNodeControllers,
                                       XDMFHEAVYDATACONTROLLER ** remoteLocalNodeControllers,
                                       int numRemoteLocalNodeControllers,
                                       int passControl,
                                       int * status);
%ignore XdmfMapSetName(XDMFMAP * map, char * newName);
// XdmfMap inherited from XdmfItem
%ignore XdmfMapAccept(XDMFMAP * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfMapFree(void * item);
%ignore XdmfMapGetInformation(XDMFMAP * item, unsigned int index);
%ignore XdmfMapGetInformationByKey(XDMFMAP * item, char * key);
%ignore XdmfMapGetNumberInformations(XDMFMAP * item);
%ignore XdmfMapInsertInformation(XDMFMAP * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfMapRemoveInformation(XDMFMAP * item, unsigned int index);
%ignore XdmfMapRemoveInformationByKey(XDMFMAP * item, char * key);
%ignore XdmfMapGetItemTag(XDMFMAP * item);

// XdmfReader

%ignore XdmfReaderNew();
%ignore XdmfReaderFree(XDMFREADER * item);
// XdmfReader inherited from XdmfCoreReader
%ignore XdmfReaderRead(XDMFREADER * reader, char * filePath, int * status);

// XdmfRectilinearGrid

%ignore XdmfRectilinearGridNew(XDMFARRAY ** axesCoordinates,
                               unsigned int numCoordinates,
                               int passControl);
%ignore XdmfRectilinearGridNew2D(XDMFARRAY * xCoordinates,
                                 XDMFARRAY * yCoordinates,
                                 int passControl);
%ignore XdmfRectilinearGridNew3D(XDMFARRAY * xCoordinates,
                                 XDMFARRAY * yCoordinates,
                                 XDMFARRAY * zCoordinates,
                                 int passControl);
%ignore XdmfRectilinearGridGetCoordinatesByIndex(XDMFRECTILINEARGRID * grid,
                                                 unsigned int axisIndex,
                                                 int * status);
%ignore XdmfRectilinearGridGetCoordinates(XDMFRECTILINEARGRID * grid, int * status);
%ignore XdmfRectilinearGridGetNumberCoordinates(XDMFRECTILINEARGRID * grid, int * status);
%ignore XdmfRectilinearGridGetDimensions(XDMFRECTILINEARGRID * grid, int * status);
%ignore XdmfRectilinearGridSetCoordinates(XDMFRECTILINEARGRID * grid,
                                          XDMFARRAY ** axesCoordinates,
                                          unsigned int numCoordinates,
                                          int passControl,
                                          int * status);
%ignore XdmfRectilinearGridSetCoordinatesByIndex(XDMFRECTILINEARGRID * grid,
                                                 unsigned int index,
                                                 XDMFARRAY * coordinates,
                                                 int passControl,
                                                 int * status);
// XdmfRectilinearGrid inherited from XdmfItem
%ignore XdmfRectilinearGridAccept(XDMFRECTILINEARGRID * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfRectilinearGridFree(void * item);
%ignore XdmfRectilinearGridGetInformation(XDMFRECTILINEARGRID * item, unsigned int index);
%ignore XdmfRectilinearGridGetInformationByKey(XDMFRECTILINEARGRID * item, char * key);
%ignore XdmfRectilinearGridGetNumberInformations(XDMFRECTILINEARGRID * item);
%ignore XdmfRectilinearGridInsertInformation(XDMFRECTILINEARGRID * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfRectilinearGridRemoveInformation(XDMFRECTILINEARGRID * item, unsigned int index);
%ignore XdmfRectilinearGridRemoveInformationByKey(XDMFRECTILINEARGRID * item, char * key);
%ignore XdmfRectilinearGridGetItemTag(XDMFRECTILINEARGRID * item);
// XdmfRectilinearGrid inherited from XdmfGrid
%ignore XdmfRectilinearGridGetAttribute(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridGetAttributeByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetNumberAttributes(XDMFRECTILINEARGRID * grid);
%ignore XdmfRectilinearGridInsertAttribute(XDMFRECTILINEARGRID * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfRectilinearGridRemoveAttribute(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridRemoveAttributeByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetSet(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridGetSetByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetNumberSets(XDMFRECTILINEARGRID * grid);
%ignore XdmfRectilinearGridInsertSet(XDMFRECTILINEARGRID * grid, XDMFSET * Set, int passControl);
%ignore XdmfRectilinearGridRemoveSet(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridRemoveSetByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetMap(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridGetMapByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetNumberMaps(XDMFRECTILINEARGRID * grid);
%ignore XdmfRectilinearGridInsertMap(XDMFRECTILINEARGRID * grid, XDMFMAP * Map, int passControl);
%ignore XdmfRectilinearGridRemoveMap(XDMFRECTILINEARGRID * grid, unsigned int index);
%ignore XdmfRectilinearGridRemoveMapByName(XDMFRECTILINEARGRID * grid, char * Name);
%ignore XdmfRectilinearGridGetName(XDMFRECTILINEARGRID * grid);
%ignore XdmfRectilinearGridGetTime(XDMFRECTILINEARGRID * grid);
%ignore XdmfRectilinearGridSetName(XDMFRECTILINEARGRID * grid, char * name, int * status);
%ignore XdmfRectilinearGridSetTime(XDMFRECTILINEARGRID * grid, XDMFTIME * time, int passControl);

// XdmfRegularGrid

%ignore XdmfRegularGridNew2D(double xBrickSize,
                             double yBrickSize,
                             unsigned int xNumPoints,
                             unsigned int yNumPoints,
                             double xOrigin,
                             double yOrigin);
%ignore XdmfRegularGridNew3D(double xBrickSize,
                             double yBrickSize,
                             double zBrickSize,
                             unsigned int xNumPoints,
                             unsigned int yNumPoints,
                             unsigned int zNumPoints,
                             double xOrigin,
                             double yOrigin,
                             double zOrigin);
%ignore XdmfRegularGridNew(XDMFARRAY * brickSize,
                           XDMFARRAY * numPoints,
                           XDMFARRAY * origin,
                           int passControl);
%ignore XdmfRegularGridGetBrickSize(XDMFREGULARGRID * grid, int * status);
%ignore XdmfRegularGridGetDimensions(XDMFREGULARGRID * grid, int * status);
%ignore XdmfRegularGridGetOrigin(XDMFREGULARGRID * grid, int * status);
%ignore XdmfRegularGridSetBrickSize(XDMFREGULARGRID * grid,
                                    XDMFARRAY * brickSize,
                                    int passControl,
                                    int * status);
%ignore XdmfRegularGridSetDimensions(XDMFREGULARGRID * grid,
                                     XDMFARRAY * dimensions,
                                     int passControl,
                                     int * status);
%ignore XdmfRegularGridSetOrigin(XDMFREGULARGRID * grid,
                                 XDMFARRAY * origin,
                                 int passControl,
                                 int * status);
// XdmfRegularGrid inherited from XdmfItem
%ignore XdmfRegularGridAccept(XDMFREGULARGRID * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfRegularGridFree(void * item);
%ignore XdmfRegularGridGetInformation(XDMFREGULARGRID * item, unsigned int index);
%ignore XdmfRegularGridGetInformationByKey(XDMFREGULARGRID * item, char * key);
%ignore XdmfRegularGridGetNumberInformations(XDMFREGULARGRID * item);
%ignore XdmfRegularGridInsertInformation(XDMFREGULARGRID * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfRegularGridRemoveInformation(XDMFREGULARGRID * item, unsigned int index);
%ignore XdmfRegularGridRemoveInformationByKey(XDMFREGULARGRID * item, char * key);
%ignore XdmfRegularGridGetItemTag(XDMFREGULARGRID * item);
// XdmfRegularGrid inherited from XdmfGrid
%ignore XdmfRegularGridGetAttribute(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridGetAttributeByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetNumberAttributes(XDMFREGULARGRID * grid);
%ignore XdmfRegularGridInsertAttribute(XDMFREGULARGRID * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfRegularGridRemoveAttribute(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridRemoveAttributeByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetSet(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridGetSetByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetNumberSets(XDMFREGULARGRID * grid);
%ignore XdmfRegularGridInsertSet(XDMFREGULARGRID * grid, XDMFSET * Set, int passControl);
%ignore XdmfRegularGridRemoveSet(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridRemoveSetByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetMap(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridGetMapByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetNumberMaps(XDMFREGULARGRID * grid);
%ignore XdmfRegularGridInsertMap(XDMFREGULARGRID * grid, XDMFMAP * Map, int passControl);
%ignore XdmfRegularGridRemoveMap(XDMFREGULARGRID * grid, unsigned int index);
%ignore XdmfRegularGridRemoveMapByName(XDMFREGULARGRID * grid, char * Name);
%ignore XdmfRegularGridGetName(XDMFREGULARGRID * grid);
%ignore XdmfRegularGridGetTime(XDMFREGULARGRID * grid);
%ignore XdmfRegularGridSetName(XDMFREGULARGRID * grid, char * name, int * status);
%ignore XdmfRegularGridSetTime(XDMFREGULARGRID * grid, XDMFTIME * time, int passControl);

// XdmfSet

%ignore XdmfSetNew();
%ignore XdmfSetGetAttribute(XDMFSET * set, unsigned int index);
%ignore XdmfSetGetAttributeByName(XDMFSET * set, char * Name);
%ignore XdmfSetGetNumberAttributes(XDMFSET * set);
%ignore XdmfSetGetType(XDMFSET * set);
%ignore XdmfSetInsertAttribute(XDMFSET * set, XDMFATTRIBUTE * Attribute, int passControl);
vXdmfSetRemoveAttribute(XDMFSET * set, unsigned int index);
%ignore XdmfSetRemoveAttributeByName(XDMFSET * set, char * Name);
%ignore XdmfSetSetType(XDMFSET * set, int type, int * status);
// XdmfSet inherited from XdmfArray
%ignore XdmfSetNew();
%ignore XdmfSetClear(XDMFSET * array);
%ignore XdmfSetErase(XDMFSET * array, unsigned int index);
%ignore XdmfSetGetArrayType(XDMFSET * array, int * status);
%ignore XdmfSetGetCapacity(XDMFSET * array);
%ignore XdmfSetGetDimensions(XDMFSET * array);
%ignore XdmfSetGetDimensionsString(XDMFSET * array);
%ignore XdmfSetGetHeavyDataController(XDMFSET * array, unsigned int index);
%ignore XdmfSetGetReadMode(XDMFSET * array, int * status);
%ignore XdmfSetGetName(XDMFSET * array);
%ignore XdmfSetGetNumberDimensions(XDMFSET * array);
%ignore XdmfSetGetNumberHeavyDataControllers(XDMFSET * array);
%ignore XdmfSetGetSize(XDMFSET * array);
%ignore XdmfSetGetReference(XDMFSET * array);
%ignore XdmfSetGetValue(XDMFSET * array, unsigned int index, int arrayType, int * status);
%ignore XdmfSetGetValues(XDMFSET * array, unsigned int startIndex, int arrayType, unsigned int numValues, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfSetGetValuesInternal(XDMFSET * array);
%ignore XdmfSetGetValuesString(XDMFSET * array);
%ignore XdmfSetInitialize(XDMFSET * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfSetInsertDataFromPointer(XDMFSET * array, void * values, int arrayType, unsigned int startIndex, unsigned int numVals, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfSetInsertDataFromXdmfArray(XDMFSET * array, XDMFARRAY * valArray, int * arrayStarts, int * valueStarts, int * arrayCounts, int * valueCounts, int * arrayStrides, int * valueStrides, int * status);
%ignore XdmfSetInsertHeavyDataController(XDMFSET * array, XDMFHEAVYDATACONTROLLER * controller, int passControl);
%ignore XdmfSetInsertValue(XDMFSET * array, unsigned int index, void * value, int arrayType, int * status);
%ignore XdmfSetIsInitialized(XDMFSET * array);
%ignore XdmfSetPushBack(XDMFSET * array, void * value, int arrayType, int * status);
%ignore XdmfSetRead(XDMFSET * array, int * status);
%ignore XdmfSetReadController(XDMFSET * array, int * status);
%ignore XdmfSetReadReference(XDMFSET * array, int * status);
%ignore XdmfSetRelease(XDMFSET * array);
%ignore XdmfSetRemoveHeavyDataController(XDMFSET * array, unsigned int index);
%ignore XdmfSetReserve(XDMFSET * array, int size);
%ignore XdmfSetResize(XDMFSET * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfSetSetReadMode(XDMFSET * array, int readMode, int * status);
%ignore XdmfSetSetReference(XDMFSET * array, XDMFARRAYREFERENCE * reference, int passControl);
%ignore XdmfSetSetName(XDMFSET * array, char * name, int * status);
%ignore XdmfSetSetValuesInternal(XDMFSET * array, void * pointer, unsigned int numValues, int arrayType, int transferOwnership, int * status);
%ignore XdmfSetSwapWithXdmfArray(XDMFSET * array, XDMFARRAY * swapArray);
%ignore XdmfSetSwapWithArray(XDMFSET * array, void ** pointer, int numValues, int arrayType, int * status);
// XdmfSet inherited from XdmfItem
%ignore XdmfSetAccept(XDMFSET * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfSetFree(void * item);
%ignore XdmfSetGetInformation(XDMFSET * item, unsigned int index);
%ignore XdmfSetGetInformationByKey(XDMFSET * item, char * key);
%ignore XdmfSetGetNumberInformations(XDMFSET * item);
%ignore XdmfSetInsertInformation(XDMFSET * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfSetRemoveInformation(XDMFSET * item, unsigned int index);
%ignore XdmfSetRemoveInformationByKey(XDMFSET * item, char * key);
%ignore XdmfSetGetItemTag(XDMFSET * item);

// XdmfSetType

%ignore XdmfSetTypeNoSetType();
%ignore XdmfSetTypeNode();
%ignore XdmfSetTypeCell();
%ignore XdmfSetTypeFace();
%ignore XdmfSetTypeEdge();

// XdmfTime

%ignore XdmfTimeNew(double value);
%ignore XdmfTimeGetValue(XDMFTIME * timePointer);
%ignore XdmfTimeSetValue(XDMFTIME * timePointer, double time);
// XdmfTime inherited from XdmfItem
%ignore XdmfTimeAccept(XDMFTIME * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfTimeFree(void * item);
%ignore XdmfTimeGetInformation(XDMFTIME * item, unsigned int index);
%ignore XdmfTimeGetInformationByKey(XDMFTIME * item, char * key);
%ignore XdmfTimeGetNumberInformations(XDMFTIME * item);
%ignore XdmfTimeInsertInformation(XDMFTIME * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfTimeRemoveInformation(XDMFTIME * item, unsigned int index);
%ignore XdmfTimeRemoveInformationByKey(XDMFTIME * item, char * key);
%ignore XdmfTimeGetItemTag(XDMFTIME * item);

// XdmfTopology

%ignore XdmfTopologyNew();
%ignore XdmfTopologyGetNumberElements(XDMFTOPOLOGY * topology, int * status);
%ignore XdmfTopologyGetType(XDMFTOPOLOGY * topology);
%ignore XdmfTopologySetType(XDMFTOPOLOGY * topology, int type, int * status);
%ignore XdmfTopologySetPolyType(XDMFTOPOLOGY * topology, int type, int nodes, int * status);
// XdmfTopology inherited from XdmfArray
%ignore XdmfTopologyNew();
%ignore XdmfTopologyClear(XDMFTOPOLOGY * array);
%ignore XdmfTopologyErase(XDMFTOPOLOGY * array, unsigned int index);
%ignore XdmfTopologyGetArrayType(XDMFTOPOLOGY * array, int * status);
%ignore XdmfTopologyGetCapacity(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetDimensions(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetDimensionsString(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetHeavyDataController(XDMFTOPOLOGY * array, unsigned int index);
%ignore XdmfTopologyGetReadMode(XDMFTOPOLOGY * array, int * status);
%ignore XdmfTopologyGetName(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetNumberDimensions(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetNumberHeavyDataControllers(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetSize(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetReference(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetValue(XDMFTOPOLOGY * array, unsigned int index, int arrayType, int * status);
%ignore XdmfTopologyGetValues(XDMFTOPOLOGY * array, unsigned int startIndex, int arrayType, unsigned int numValues, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfTopologyGetValuesInternal(XDMFTOPOLOGY * array);
%ignore XdmfTopologyGetValuesString(XDMFTOPOLOGY * array);
%ignore XdmfTopologyInitialize(XDMFTOPOLOGY * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfTopologyInsertDataFromPointer(XDMFTOPOLOGY * array, void * values, int arrayType, unsigned int startIndex, unsigned int numVals, unsigned int arrayStride, unsigned int valueStride, int * status);
%ignore XdmfTopologyInsertDataFromXdmfArray(XDMFTOPOLOGY * array, XDMFARRAY * valArray, int * arrayStarts, int * valueStarts, int * arrayCounts, int * valueCounts, int * arrayStrides, int * valueStrides, int * status);
%ignore XdmfTopologyInsertHeavyDataController(XDMFTOPOLOGY * array, XDMFHEAVYDATACONTROLLER * controller, int passControl);
%ignore XdmfTopologyInsertValue(XDMFTOPOLOGY * array, unsigned int index, void * value, int arrayType, int * status);
%ignore XdmfTopologyIsInitialized(XDMFTOPOLOGY * array);
%ignore XdmfTopologyPushBack(XDMFTOPOLOGY * array, void * value, int arrayType, int * status);
%ignore XdmfTopologyRead(XDMFTOPOLOGY * array, int * status);
%ignore XdmfTopologyReadController(XDMFTOPOLOGY * array, int * status);
%ignore XdmfTopologyReadReference(XDMFTOPOLOGY * array, int * status);
%ignore XdmfTopologyRelease(XDMFTOPOLOGY * array);
%ignore XdmfTopologyRemoveHeavyDataController(XDMFTOPOLOGY * array, unsigned int index);
%ignore XdmfTopologyReserve(XDMFTOPOLOGY * array, int size);
%ignore XdmfTopologyResize(XDMFTOPOLOGY * array, int * dims, int numDims, int arrayType, int * status);
%ignore XdmfTopologySetReadMode(XDMFTOPOLOGY * array, int readMode, int * status);
%ignore XdmfTopologySetReference(XDMFTOPOLOGY * array, XDMFARRAYREFERENCE * reference, int passControl);
%ignore XdmfTopologySetName(XDMFTOPOLOGY * array, char * name, int * status);
%ignore XdmfTopologySetValuesInternal(XDMFTOPOLOGY * array, void * pointer, unsigned int numValues, int arrayType, int transferOwnership, int * status);
%ignore XdmfTopologySwapWithXdmfArray(XDMFTOPOLOGY * array, XDMFARRAY * swapArray);
%ignore XdmfTopologySwapWithArray(XDMFTOPOLOGY * array, void ** pointer, int numValues, int arrayType, int * status);
// XdmfTopology inherited from XdmfItem
%ignore XdmfTopologyAccept(XDMFTOPOLOGY * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfTopologyFree(void * item);
%ignore XdmfTopologyGetInformation(XDMFTOPOLOGY * item, unsigned int index);
%ignore XdmfTopologyGetInformationByKey(XDMFTOPOLOGY * item, char * key);
%ignore XdmfTopologyGetNumberInformations(XDMFTOPOLOGY * item);
%ignore XdmfTopologyInsertInformation(XDMFTOPOLOGY * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfTopologyRemoveInformation(XDMFTOPOLOGY * item, unsigned int index);
%ignore XdmfTopologyRemoveInformationByKey(XDMFTOPOLOGY * item, char * key);
%ignore XdmfTopologyGetItemTag(XDMFTOPOLOGY * item);

// XdmfTopologyType

%ignore XdmfTopologyTypePolyvertex();
%ignore XdmfTopologyTypePolyline();
%ignore XdmfTopologyTypePolygon();
%ignore XdmfTopologyTypeTriangle();
%ignore XdmfTopologyTypeQuadrilateral();
%ignore XdmfTopologyTypeTetrahedron();
%ignore XdmfTopologyTypePyramid();
%ignore XdmfTopologyTypeWedge();
%ignore XdmfTopologyTypeHexahedron();
%ignore XdmfTopologyTypeEdge_3();
%ignore XdmfTopologyTypeTriangle_6();
%ignore XdmfTopologyTypeQuadrilateral_8();
%ignore XdmfTopologyTypeQuadrilateral_9();
%ignore XdmfTopologyTypeTetrahedron_10();
%ignore XdmfTopologyTypePyramid_13();
%ignore XdmfTopologyTypeWedge_15();
%ignore XdmfTopologyTypeWedge_18();
%ignore XdmfTopologyTypeHexahedron_20();
%ignore XdmfTopologyTypeHexahedron_24();
%ignore XdmfTopologyTypeHexahedron_27();
%ignore XdmfTopologyTypeHexahedron_64();
%ignore XdmfTopologyTypeHexahedron_125();
%ignore XdmfTopologyTypeHexahedron_216();
%ignore XdmfTopologyTypeHexahedron_343();
%ignore XdmfTopologyTypeHexahedron_512();
%ignore XdmfTopologyTypeHexahedron_729();
%ignore XdmfTopologyTypeHexahedron_1000();
%ignore XdmfTopologyTypeHexahedron_1331();
%ignore XdmfTopologyTypeHexahedron_Spectral_64();
%ignore XdmfTopologyTypeHexahedron_Spectral_125();
%ignore XdmfTopologyTypeHexahedron_Spectral_216();
%ignore XdmfTopologyTypeHexahedron_Spectral_343();
%ignore XdmfTopologyTypeHexahedron_Spectral_512();
%ignore XdmfTopologyTypeHexahedron_Spectral_729();
%ignore XdmfTopologyTypeHexahedron_Spectral_1000();
%ignore XdmfTopologyTypeHexahedron_Spectral_1331();
%ignore XdmfTopologyTypeMixed();
%ignore XdmfTopologyTypeGetCellType(int type);
%ignore XdmfTopologyTypeGetEdgesPerElement(int type, int * status);
%ignore XdmfTopologyTypeGetFacesPerElement(int type, int * status);
%ignore XdmfTopologyTypeGetFaceType(int type);
%ignore XdmfTopologyTypeGetID(int type);
%ignore XdmfTopologyTypeGetName(int type);
%ignore XdmfTopologyTypeGetNodesPerElement(int type);

// XdmfUnstructuredGrid

%ignore XdmfUnstructuredGridNew();
%ignore XdmfUnstructuredGridNewFromRegularGrid(XDMFREGULARGRID * regularGrid, int * status);
%ignore XdmfUnstructuredGridGetGeometry(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridGetTopology(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridSetGeometry(XDMFUNSTRUCTUREDGRID * grid,
                                        XDMFGEOMETRY * geometry,
                                        int passControl);
%ignore XdmfUnstructuredGridSetTopology(XDMFUNSTRUCTUREDGRID * grid,
                                        XDMFTOPOLOGY * topology,
                                        int passControl);
// XdmfUnstructuredGrid inherited from XdmfItem
%ignore XdmfUnstructuredGridAccept(XDMFUNSTRUCTUREDGRID * item, XDMFVISITOR * visitor, int * status);
%ignore XdmfUnstructuredGridFree(void * item);
%ignore XdmfUnstructuredGridGetInformation(XDMFUNSTRUCTUREDGRID * item, unsigned int index);
%ignore XdmfUnstructuredGridGetInformationByKey(XDMFUNSTRUCTUREDGRID * item, char * key);
%ignore XdmfUnstructuredGridGetNumberInformations(XDMFUNSTRUCTUREDGRID * item);
%ignore XdmfUnstructuredGridInsertInformation(XDMFUNSTRUCTUREDGRID * item, XDMFINFORMATION * information, int passControl);
%ignore XdmfUnstructuredGridRemoveInformation(XDMFUNSTRUCTUREDGRID * item, unsigned int index);
%ignore XdmfUnstructuredGridRemoveInformationByKey(XDMFUNSTRUCTUREDGRID * item, char * key);
%ignore XdmfUnstructuredGridGetItemTag(XDMFUNSTRUCTUREDGRID * item);
// XdmfUnstructuredGrid inherited from XdmfGrid
%ignore XdmfUnstructuredGridGetAttribute(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridGetAttributeByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetNumberAttributes(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridInsertAttribute(XDMFUNSTRUCTUREDGRID * grid, XDMFATTRIBUTE * Attribute, int passControl);
%ignore XdmfUnstructuredGridRemoveAttribute(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridRemoveAttributeByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetSet(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridGetSetByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetNumberSets(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridInsertSet(XDMFUNSTRUCTUREDGRID * grid, XDMFSET * Set, int passControl);
%ignore XdmfUnstructuredGridRemoveSet(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridRemoveSetByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetMap(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridGetMapByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetNumberMaps(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridInsertMap(XDMFUNSTRUCTUREDGRID * grid, XDMFMAP * Map, int passControl);
%ignore XdmfUnstructuredGridRemoveMap(XDMFUNSTRUCTUREDGRID * grid, unsigned int index);
%ignore XdmfUnstructuredGridRemoveMapByName(XDMFUNSTRUCTUREDGRID * grid, char * Name);
%ignore XdmfUnstructuredGridGetName(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridGetTime(XDMFUNSTRUCTUREDGRID * grid);
%ignore XdmfUnstructuredGridSetName(XDMFUNSTRUCTUREDGRID * grid, char * name, int * status);
%ignore XdmfUnstructuredGridSetTime(XDMFUNSTRUCTUREDGRID * grid, XDMFTIME * time, int passControl);

977 978
#ifdef SWIGJAVA

979
// Typemaps that work for Java
980

981
%typemap(out) shared_ptr<XdmfItem> {
982 983
    if(shared_ptr<XdmfAttribute> value = shared_dynamic_cast<XdmfAttribute>($1)) {
        *(shared_ptr< XdmfAttribute > **)&($result) = value ? new shared_ptr< XdmfAttribute >(value) : 0;
984
    }
985 986
    else if(shared_ptr<XdmfCurvilinearGrid> value = shared_dynamic_cast<XdmfCurvilinearGrid>($1)) {
        *(shared_ptr< XdmfCurvilinearGrid > **)&($result) = value ? new shared_ptr< XdmfCurvilinearGrid >(value) : 0;
987
    }
988 989 990
    else if(shared_ptr<XdmfGridCollection> value = shared_dynamic_cast<XdmfGridCollection>($1)) {
        *(shared_ptr< XdmfGridCollection > **)&($result) = value ? new shared_ptr< XdmfGridCollection >(value) : 0;
    }
991 992
    else if(shared_ptr<XdmfDomain> value = shared_dynamic_cast<XdmfDomain>($1)) {
        *(shared_ptr< XdmfDomain > **)&($result) = value ? new shared_ptr< XdmfDomain >(value) : 0;
993
    }
994 995
    else if(shared_ptr<XdmfGeometry> value = shared_dynamic_cast<XdmfGeometry>($1)) {
        *(shared_ptr< XdmfGeometry > **)&($result) = value ? new shared_ptr< XdmfGeometry >(value) : 0;
996
    }
997 998
    else if(shared_ptr<XdmfInformation> value = shared_dynamic_cast<XdmfInformation>($1)) {
        *(shared_ptr< XdmfInformation > **)&($result) = value ? new shared_ptr< XdmfInformation >(value) : 0;
999
    }
1000 1001
    else if(shared_ptr<XdmfRectilinearGrid> value = shared_dynamic_cast<XdmfRectilinearGrid>($1)) {
        *(shared_ptr< XdmfRectilinearGrid > **)&($result) = value ? new shared_ptr< XdmfRectilinearGrid >(value) : 0;
1002
    }
1003 1004
    else if(shared_ptr<XdmfRegularGrid> value = shared_dynamic_cast<XdmfRegularGrid>($1)) {
        *(shared_ptr< XdmfRegularGrid > **)&($result) = value ? new shared_ptr< XdmfRegularGrid >(value) : 0;
1005
    }
1006 1007
    else if(shared_ptr<XdmfSet> value = shared_dynamic_cast<XdmfSet>($1)) {
        *(shared_ptr< XdmfSet > **)&($result) = value ? new shared_ptr< XdmfSet >(value) : 0;
1008
    }
1009 1010
    else if(shared_ptr<XdmfTime> value = shared_dynamic_cast<XdmfTime>($1)) {
        *(shared_ptr< XdmfTime > **)&($result) = value ? new shared_ptr< XdmfTime >(value) : 0;
1011
    }
1012 1013
    else if(shared_ptr<XdmfTopology> value = shared_dynamic_cast<XdmfTopology>($1)) {
        *(shared_ptr< XdmfTopology > **)&($result) = value ? new shared_ptr< XdmfTopology >(value) : 0;
1014
    }
1015 1016
    else if(shared_ptr<XdmfUnstructuredGrid> value = shared_dynamic_cast<XdmfUnstructuredGrid>($1)) {
        *(shared_ptr< XdmfUnstructuredGrid > **)&($result) = value ? new shared_ptr< XdmfUnstructuredGrid >(value) : 0;
1017 1018
    }
    else {
1019
        *(shared_ptr< XdmfItem > **)&($result) = &($1);
1020
    }
1021
}
1022

1023 1024 1025
// Ignore multiple inheritance warning
#pragma SWIG nowarn=813

1026
// Ignore const overloaded methods
1027 1028 1029
%ignore XdmfCurvilinearGrid::getDimensions() const;
%ignore XdmfDomain::getCurvilinearGrid(const unsigned int) const;
%ignore XdmfDomain::getCurvilinearGrid(const std::string &) const;
1030 1031
%ignore XdmfDomain::getGridCollection(const unsigned int) const;
%ignore XdmfDomain::getGridCollection(const std::string &) const;
1032 1033 1034 1035 1036 1037
%ignore XdmfDomain::getRectilinearGrid(const unsigned int) const;
%ignore XdmfDomain::getRectilinearGrid(const std::string &) const;
%ignore XdmfDomain::getRegularGrid(const unsigned int) const;
%ignore XdmfDomain::getRegularGrid(const std::string &) const;
%ignore XdmfDomain::getUnstructuredGrid(const unsigned int) const;
%ignore XdmfDomain::getUnstructuredGrid(const std::string &) const;
1038 1039 1040
%ignore XdmfGrid::getAttribute(const unsigned int) const;
%ignore XdmfGrid::getAttribute(const std::string &) const;
%ignore XdmfGrid::getMap() const;
1041 1042 1043
%ignore XdmfGrid::getMap(unsigned int const) const;
%ignore XdmfGrid::getMap(unsigned int const &) const;
%ignore XdmfGrid::getMap(std::string const &) const;
1044 1045 1046
%ignore XdmfGrid::getSet(const unsigned int) const;
%ignore XdmfGrid::getSet(const std::string &) const;
%ignore XdmfGrid::getTime() const;
1047 1048 1049 1050 1051 1052
%ignore XdmfRectilinearGrid::getCoordinates(const unsigned int) const;
%ignore XdmfRectilinearGrid::getCoordinates() const;
%ignore XdmfRectilinearGrid::getDimensions() const;
%ignore XdmfRegularGrid::getBrickSize() const;
%ignore XdmfRegularGrid::getDimensions() const;
%ignore XdmfRegularGrid::getOrigin() const;
1053 1054 1055 1056
%ignore XdmfSet::getAttribute(const unsigned int) const;
%ignore XdmfSet::getAttribute(const std::string &) const;

// Ignore ItemTags
1057
%ignore XdmfAttribute::ItemTag;
1058
%ignore XdmfCurvilinearGrid::ItemTag;
1059 1060
%ignore XdmfDomain::ItemTag;
%ignore XdmfGeometry::ItemTag;
1061
%ignore XdmfGraph::ItemTag;
1062 1063
%ignore XdmfGrid::ItemTag;
%ignore XdmfGridCollection::ItemTag;
1064
%ignore XdmfMap::ItemTag;
1065 1066
%ignore XdmfRectilinearGrid::ItemTag;
%ignore XdmfRegularGrid::ItemTag;
1067 1068 1069
%ignore XdmfSet::ItemTag;
%ignore XdmfTime::ItemTag;
%ignore XdmfTopology::ItemTag;
1070
%ignore XdmfUnstructuredGrid::ItemTag;
1071 1072

%pragma(java) jniclasscode=%{
1073 1074 1075 1076 1077
    static {
        try {
            System.loadLibrary("XdmfJava");
        }
        catch (UnsatisfiedLinkError e) {
1078 1079
            System.err.println("Native code library failed to load for" +
                                "XdmfJava\n" + e);
1080 1081 1082
            System.exit(1);
        }
    }
1083 1084
%}

1085
#endif /* SWIGJAVA */
1086

1087 1088
#ifdef SWIGPYTHON

1089 1090
%include std_set.i
%include std_map.i
1091
%include std_vector.i
1092

1093 1094 1095
%template(XdmfMapNodeIdSet) std::set<int>;
%template(XdmfMapNodeIdMap) std::map<int, std::set<int> >;
%template(XdmfMapMap) std::map<int, std::map<int, std::set<int> > >;
1096 1097 1098
%template(AttributeVector) std::vector<shared_ptr<XdmfAttribute> >;
%template(MapVector) std::vector<shared_ptr<XdmfMap> >;
%template(ArrayVector) std::vector<shared_ptr<XdmfArray> >;
1099

1100 1101
#ifdef XDMF_BUILD_DSM

1102
%pythoncode {
1103
    import sys
1104
    from XdmfCore import *
1105 1106
    if 'mpi4py' in sys.modules.keys():
      from XdmfDSM import *
1107 1108
}

1109
#else
1110 1111

%pythoncode {
1112
    from XdmfCore import *
1113 1114 1115 1116 1117
}

#endif /* XDMF_BUILD_DSM */


1118 1119 1120 1121 1122
%fragment("XdmfItemCast", "header") {
    #include <XdmfSharedPtr.hpp>
    PyObject * XdmfItemCast(shared_ptr<XdmfItem> obj) {
        PyObject * result;
        if(shared_ptr<XdmfAttribute> attribute = shared_dynamic_cast<XdmfAttribute>(obj)) {
1123
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfAttribute>(attribute)), SWIGTYPE_p_boost__shared_ptrT_XdmfAttribute_t, SWIG_POINTER_OWN);
1124 1125
        }
        else if(shared_ptr<XdmfCurvilinearGrid> gridCurvilinear = shared_dynamic_cast<XdmfCurvilinearGrid>(obj)) {
1126
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfCurvilinearGrid>(gridCurvilinear)), SWIGTYPE_p_boost__shared_ptrT_XdmfCurvilinearGrid_t, SWIG_POINTER_OWN);
1127
        }
1128
        else if(shared_ptr<XdmfGridCollection> gridCollection = shared_dynamic_cast<XdmfGridCollection>(obj)) {
1129
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfGridCollection>(gridCollection)), SWIGTYPE_p_boost__shared_ptrT_XdmfGridCollection_t, SWIG_POINTER_OWN);
1130
        }
1131
        else if(shared_ptr<XdmfDomain> domain = shared_dynamic_cast<XdmfDomain>(obj)) {
1132
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfDomain>(domain)), SWIGTYPE_p_boost__shared_ptrT_XdmfDomain_t, SWIG_POINTER_OWN);
1133 1134
        }
        else if(shared_ptr<XdmfGeometry> geometry = shared_dynamic_cast<XdmfGeometry>(obj)) {
1135
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfGeometry>(geometry)), SWIGTYPE_p_boost__shared_ptrT_XdmfGeometry_t, SWIG_POINTER_OWN);
1136 1137
        }
        else if(shared_ptr<XdmfGraph> graph = shared_dynamic_cast<XdmfGraph>(obj)) {
1138
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfGraph>(graph)), SWIGTYPE_p_boost__shared_ptrT_XdmfGraph_t, SWIG_POINTER_OWN);
1139 1140
        }
        else if(shared_ptr<XdmfInformation> information = shared_dynamic_cast<XdmfInformation>(obj)) {
1141
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfInformation>(information)), SWIGTYPE_p_boost__shared_ptrT_XdmfInformation_t, SWIG_POINTER_OWN);
1142 1143
        }
        else if(shared_ptr<XdmfMap> map = shared_dynamic_cast<XdmfMap>(obj)) {
1144
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfMap>(map)), SWIGTYPE_p_boost__shared_ptrT_XdmfMap_t, SWIG_POINTER_OWN);
1145 1146
        }
        else if(shared_ptr<XdmfRectilinearGrid> gridRectilinear = shared_dynamic_cast<XdmfRectilinearGrid>(obj)) {
1147
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfRectilinearGrid>(gridRectilinear)), SWIGTYPE_p_boost__shared_ptrT_XdmfRectilinearGrid_t, SWIG_POINTER_OWN);
1148 1149
        }
        else if(shared_ptr<XdmfRegularGrid> gridRegular = shared_dynamic_cast<XdmfRegularGrid>(obj)) {
1150
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfRegularGrid>(gridRegular)), SWIGTYPE_p_boost__shared_ptrT_XdmfRegularGrid_t, SWIG_POINTER_OWN);
1151 1152
        }
        else if(shared_ptr<XdmfSet> set = shared_dynamic_cast<XdmfSet>(obj)) {
1153
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfSet>(set)), SWIGTYPE_p_boost__shared_ptrT_XdmfSet_t, SWIG_POINTER_OWN);
1154 1155
        }
        else if(shared_ptr<XdmfTime> time = shared_dynamic_cast<XdmfTime>(obj)) {
1156
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfTime>(time)), SWIGTYPE_p_boost__shared_ptrT_XdmfTime_t, SWIG_POINTER_OWN);
1157 1158
        }
        else if(shared_ptr<XdmfTopology> topology = shared_dynamic_cast<XdmfTopology>(obj)) {
1159
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfTopology>(topology)), SWIGTYPE_p_boost__shared_ptrT_XdmfTopology_t, SWIG_POINTER_OWN);
1160 1161
        }
        else if(shared_ptr<XdmfUnstructuredGrid> gridUnstructured = shared_dynamic_cast<XdmfUnstructuredGrid>(obj)) {
1162
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfUnstructuredGrid>(gridUnstructured)), SWIGTYPE_p_boost__shared_ptrT_XdmfUnstructuredGrid_t, SWIG_POINTER_OWN);
1163 1164
        }
        else {
1165
            result = SWIG_NewPointerObj(SWIG_as_voidptr(new shared_ptr<XdmfItem>(obj)), SWIGTYPE_p_boost__shared_ptrT_XdmfItem_t, SWIG_POINTER_OWN);
1166 1167
        }
        return result;
1168
    }
1169 1170
}

1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181
%typemap(out, fragment="XdmfItemCast") shared_ptr<XdmfItem> {
    $result = XdmfItemCast($1);
}

%typemap(out, fragment="XdmfItemCast") std::vector<shared_ptr<XdmfItem> > {
    $result = PyList_New($1.size());
    for(std::vector<shared_ptr<XdmfItem> >::size_type i = 0; i < $1.size(); ++i) {
        PyList_SetItem($result, i, XdmfItemCast($1[i]));
    } 
}

1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217
%extend XdmfAttributeCenter {
    bool __eq__(const XdmfAttributeCenter * attributeCenter) {
        return $self == attributeCenter;
    }
}

%extend XdmfAttributeType {
    bool __eq__(const XdmfAttributeType * attributeType) {
   	return $self == attributeType;
    }
}

%extend XdmfGeometryType {
    bool __eq__(const XdmfGeometryType * geometryType) {
   	return $self == geometryType;
    }
}

%extend XdmfGridCollectionType {
    bool __eq__(const XdmfGridCollectionType * gridCollectionType) {
   	return $self == gridCollectionType;
    }
}

%extend XdmfSetType {
    bool __eq__(const XdmfSetType * setType) {
   	return $self == setType;
    }
}

%extend XdmfTopologyType {
    bool __eq__(const XdmfTopologyType * topologyType) {
   	return $self == topologyType;
    }
}

1218 1219
#endif /* SWIGPYTHON */

1220
// Shared Pointer Templates
1221
%shared_ptr(XdmfAggregate)
1222
%shared_ptr(XdmfAttribute)
1223 1224
%shared_ptr(XdmfAttributeCenter)
%shared_ptr(XdmfAttributeType)
1225
%shared_ptr(XdmfCurvilinearGrid)
1226 1227
%shared_ptr(XdmfDomain)
%shared_ptr(XdmfGeometry)
1228
%shared_ptr(XdmfGeometryType)
1229
%shared_ptr(XdmfGraph)
1230 1231
%shared_ptr(XdmfGrid)
%shared_ptr(XdmfGridCollection)
1232 1233
%shared_ptr(XdmfGridCollectionType)
%shared_ptr(XdmfItemFactory)
1234
%shared_ptr(XdmfMap)
1235
%shared_ptr(XdmfReader)
1236 1237
%shared_ptr(XdmfRectilinearGrid)
%shared_ptr(XdmfRegularGrid)
1238 1239
%shared_ptr(XdmfSet)
%shared_ptr(XdmfSetType)
1240
%shared_ptr(XdmfTime)
1241
%shared_ptr(XdmfTopology)
1242
%shared_ptr(XdmfTopologyType)
1243 1244
%shared_ptr(XdmfUnstructuredGrid)

1245
%include Xdmf.hpp
1246
%include XdmfGrid.hpp
1247

1248
%include XdmfAggregate.hpp
1249
%include XdmfAttribute.hpp
1250
%include XdmfAttributeCenter.hpp
1251
%include XdmfAttributeType.hpp
1252
%include XdmfCurvilinearGrid.hpp
Kenneth Leiter's avatar
Kenneth Leiter committed
1253
%include XdmfDomain.hpp
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1254
%include XdmfGeometry.hpp
1255
%include XdmfGeometryType.hpp
1256
%include XdmfGraph.hpp
1257 1258 1259
%include XdmfGridCollection.hpp
%include XdmfGridCollectionType.hpp
%include XdmfItemFactory.hpp
1260
%include XdmfMap.hpp
1261
%include XdmfReader.hpp
1262 1263
%include XdmfRectilinearGrid.hpp
%include XdmfRegularGrid.hpp
1264 1265
%include XdmfSet.hpp
%include XdmfSetType.hpp
1266
%include XdmfTime.hpp
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1267
%include XdmfTopology.hpp
1268
%include XdmfTopologyType.hpp
1269
%include XdmfUnstructuredGrid.hpp