ENH:

	Add XdmfArray to store values --- modify XdmfDataItem to contain an XdmfArray.
	Modify Tests to use new XdmfArray.
	Modify XdmfVisitor to use new XdmfArray.
	Add Python Tests and move Cxx tests to their own directory.
parent c92bcfad
# Add a python test from a python file
# One cannot simply do:
# SET(ENV{PYTHONPATH} ${LIBRARY_OUTPUT_PATH})
# SET(my_test "from test_mymodule import *\;test_mymodule()")
# ADD_TEST(PYTHON-TEST-MYMODULE python -c ${my_test})
# Since cmake is only transmitting the ADD_TEST line to ctest thus you are loosing
# the env var. The only way to store the env var is to physically write in the cmake script
# whatever PYTHONPATH you want and then add the test as 'cmake -P python_test.cmake'
#
# Usage:
# SET_SOURCE_FILES_PROPERTIES(test.py PROPERTIES PYTHONPATH
# "${LIBRARY_OUTPUT_PATH}:${VTK_DIR}")
# ADD_PYTHON_TEST(PYTHON-TEST test.py)
# Need python interpreter:
FIND_PACKAGE(PythonInterp REQUIRED)
MACRO(ADD_PYTHON_TEST TESTNAME FILENAME)
GET_SOURCE_FILE_PROPERTY(loc ${FILENAME} LOCATION)
GET_SOURCE_FILE_PROPERTY(pyenv ${FILENAME} PYTHONPATH)
STRING(REGEX REPLACE ";" " " wo_semicolumn "${ARGN}")
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME}.cmake
"
SET(ENV{PYTHONPATH} ${pyenv})
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} ${loc} ${wo_semicolumn}
#WORKING_DIRECTORY @LIBRARY_OUTPUT_PATH@
RESULT_VARIABLE import_res
OUTPUT_VARIABLE import_output
ERROR_VARIABLE import_output
)
# Pass the output back to ctest
MESSAGE("\${import_output}")
IF(import_res)
MESSAGE(SEND_ERROR "\${import_res}")
ENDIF(import_res)
"
)
ADD_TEST(${TESTNAME} cmake -P ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME}.cmake)
ENDMACRO(ADD_PYTHON_TEST)
# Byte compile recursively a directory (DIRNAME)
MACRO(ADD_PYTHON_COMPILEALL_TEST DIRNAME)
# First get the path:
GET_FILENAME_COMPONENT(temp_path "${PYTHON_LIBRARIES}" PATH)
# Find the python script:
GET_FILENAME_COMPONENT(PYTHON_COMPILE_ALL_PY "${temp_path}/../compileall.py" ABSOLUTE)
# add test, use DIRNAME to create uniq name for the test:
ADD_TEST(COMPILE_ALL-${DIRNAME} ${PYTHON_EXECUTABLE} "${PYTHON_COMPILE_ALL_PY}" -q ${DIRNAME})
ENDMACRO(ADD_PYTHON_COMPILEALL_TEST)
project(Xdmf2)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
set(BUILD_SHARED_LIBS true)
......@@ -29,12 +30,12 @@ if(XDMF_WRAP_PYTHON)
endif(XDMF_WRAP_PYTHON)
set(XdmfSources
XdmfArray
XdmfAttribute
XdmfAttributeCenter
XdmfAttributeType
XdmfDataItem
XdmfDataItemType
XdmfDomain
XdmfDomain
XdmfGeometry
XdmfGeometryType
XdmfGrid
......@@ -63,6 +64,4 @@ option(BUILD_TESTING OFF)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
add_executable(XdmfTest test.cpp)
target_link_libraries(XdmfTest Xdmf)
endif(BUILD_TESTING)
......@@ -15,6 +15,7 @@ namespace boost {
}
%template(XdmfAttributePtr) boost::shared_ptr<XdmfAttribute>;
%template(XdmfArrayPtr) boost::shared_ptr<XdmfArray>;
%template(XdmfDataItemPtr) boost::shared_ptr<XdmfDataItem>;
%template(XdmfDomainPtr) boost::shared_ptr<XdmfDomain>;
%template(XdmfGeometryPtr) boost::shared_ptr<XdmfGeometry>;
......@@ -26,11 +27,11 @@ namespace boost {
%module Xdmf
%{
#include <XdmfArray.hpp>
#include <XdmfAttribute.hpp>
#include <XdmfAttributeCenter.hpp>
#include <XdmfAttributeType.hpp>
#include <XdmfDataItem.hpp>
#include <XdmfDataItemType.hpp>
#include <XdmfDomain.hpp>
#include <XdmfGeometry.hpp>
#include <XdmfGeometryType.hpp>
......@@ -48,14 +49,36 @@ namespace boost {
%include XdmfVisitor.hpp
%include XdmfDataItem.hpp
%include XdmfDataItemType.hpp
%include XdmfAttribute.hpp
%include XdmfAttributeCenter.hpp
%include XdmfAttributeType.hpp
%include XdmfArray.hpp
%include XdmfDomain.hpp
%include XdmfGeometry.hpp
%include XdmfGeometryType.hpp
%include XdmfGrid.hpp
%include XdmfTopology.hpp
%include XdmfTopologyType.hpp
%template(CharVector) std::vector<char>;
%template(ShortVector) std::vector<short>;
%template(IntVector) std::vector<int>;
%template(LongVector) std::vector<long>;
%template(FloatVector) std::vector<float>;
%template(DoubleVector) std::vector<double>;
%template(UCharVector) std::vector<unsigned char>;
%template(UShortVector) std::vector<unsigned short>;
%template(UIntVector) std::vector<unsigned int>;
%extend XdmfArray {
%template(setValues) setValues<char>;
%template(setValues) setValues<short>;
%template(setValues) setValues<int>;
%template(setValues) setValues<long>;
%template(setValues) setValues<float>;
%template(setValues) setValues<double>;
%template(setValues) setValues<unsigned char>;
%template(setValues) setValues<unsigned short>;
%template(setValues) setValues<unsigned int>;
};
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
# Version 1.3.37
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
......@@ -10,18 +10,12 @@ if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_Xdmf', [dirname(__file__)])
except ImportError:
import _Xdmf
return _Xdmf
if fp is not None:
try:
_mod = imp.load_module('_Xdmf', fp, pathname, description)
finally:
fp.close()
return _mod
_mod = imp.load_module('_Xdmf', fp, pathname, description)
finally:
if fp is not None: fp.close()
return _mod
_Xdmf = swig_import_helper()
del swig_import_helper
else:
......@@ -71,7 +65,7 @@ class SwigPyIterator(_object):
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_destroy__ = _Xdmf.delete_SwigPyIterator
__del__ = lambda self : None;
......@@ -119,11 +113,37 @@ class XdmfAttributePtr(_object):
def getAttributeCenterAsString(self): return _Xdmf.XdmfAttributePtr_getAttributeCenterAsString(self)
def write(self, *args): return _Xdmf.XdmfAttributePtr_write(self, *args)
def printSelf(self): return _Xdmf.XdmfAttributePtr_printSelf(self)
def setNumberValues(self, *args): return _Xdmf.XdmfAttributePtr_setNumberValues(self, *args)
def getNumberValues(self): return _Xdmf.XdmfAttributePtr_getNumberValues(self)
def setArray(self, *args): return _Xdmf.XdmfAttributePtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfAttributePtr_getArray(self, *args)
XdmfAttributePtr_swigregister = _Xdmf.XdmfAttributePtr_swigregister
XdmfAttributePtr_swigregister(XdmfAttributePtr)
class XdmfArrayPtr(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XdmfArrayPtr, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XdmfArrayPtr, name)
__repr__ = _swig_repr
def __deref__(self): return _Xdmf.XdmfArrayPtr___deref__(self)
def __init__(self):
this = _Xdmf.new_XdmfArrayPtr()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _Xdmf.delete_XdmfArrayPtr
__del__ = lambda self : None;
def New(self): return _Xdmf.XdmfArrayPtr_New(self)
def getType(self): return _Xdmf.XdmfArrayPtr_getType(self)
def getHDF5Type(self): return _Xdmf.XdmfArrayPtr_getHDF5Type(self)
def getPrecision(self): return _Xdmf.XdmfArrayPtr_getPrecision(self)
def getSize(self): return _Xdmf.XdmfArrayPtr_getSize(self)
def getValues(self): return _Xdmf.XdmfArrayPtr_getValues(self)
def getValuesPointer(self): return _Xdmf.XdmfArrayPtr_getValuesPointer(self)
def printSelf(self): return _Xdmf.XdmfArrayPtr_printSelf(self)
def write(self, *args): return _Xdmf.XdmfArrayPtr_write(self, *args)
def setValues(self, *args): return _Xdmf.XdmfArrayPtr_setValues(self, *args)
XdmfArrayPtr_swigregister = _Xdmf.XdmfArrayPtr_swigregister
XdmfArrayPtr_swigregister(XdmfArrayPtr)
class XdmfDataItemPtr(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XdmfDataItemPtr, name, value)
......@@ -137,8 +157,8 @@ class XdmfDataItemPtr(_object):
except: self.this = this
__swig_destroy__ = _Xdmf.delete_XdmfDataItemPtr
__del__ = lambda self : None;
def New(self): return _Xdmf.XdmfDataItemPtr_New(self)
def getNumberValues(self): return _Xdmf.XdmfDataItemPtr_getNumberValues(self)
def setArray(self, *args): return _Xdmf.XdmfDataItemPtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfDataItemPtr_getArray(self, *args)
def printSelf(self): return _Xdmf.XdmfDataItemPtr_printSelf(self)
def write(self, *args): return _Xdmf.XdmfDataItemPtr_write(self, *args)
XdmfDataItemPtr_swigregister = _Xdmf.XdmfDataItemPtr_swigregister
......@@ -184,10 +204,10 @@ class XdmfGeometryPtr(_object):
def setGeometryType(self, *args): return _Xdmf.XdmfGeometryPtr_setGeometryType(self, *args)
def getGeometryTypeAsString(self): return _Xdmf.XdmfGeometryPtr_getGeometryTypeAsString(self)
def getDimensions(self): return _Xdmf.XdmfGeometryPtr_getDimensions(self)
def setNumberPoints(self, *args): return _Xdmf.XdmfGeometryPtr_setNumberPoints(self, *args)
def printSelf(self): return _Xdmf.XdmfGeometryPtr_printSelf(self)
def write(self, *args): return _Xdmf.XdmfGeometryPtr_write(self, *args)
def getNumberValues(self): return _Xdmf.XdmfGeometryPtr_getNumberValues(self)
def setArray(self, *args): return _Xdmf.XdmfGeometryPtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfGeometryPtr_getArray(self, *args)
XdmfGeometryPtr_swigregister = _Xdmf.XdmfGeometryPtr_swigregister
XdmfGeometryPtr_swigregister(XdmfGeometryPtr)
......@@ -271,12 +291,12 @@ class XdmfTopologyPtr(_object):
def getTopologyType(self): return _Xdmf.XdmfTopologyPtr_getTopologyType(self)
def setTopologyType(self, *args): return _Xdmf.XdmfTopologyPtr_setTopologyType(self, *args)
def getNumberElements(self): return _Xdmf.XdmfTopologyPtr_getNumberElements(self)
def setNumberElements(self, *args): return _Xdmf.XdmfTopologyPtr_setNumberElements(self, *args)
def getTopologyTypeAsString(self): return _Xdmf.XdmfTopologyPtr_getTopologyTypeAsString(self)
def getNodesPerElement(self): return _Xdmf.XdmfTopologyPtr_getNodesPerElement(self)
def printSelf(self): return _Xdmf.XdmfTopologyPtr_printSelf(self)
def write(self, *args): return _Xdmf.XdmfTopologyPtr_write(self, *args)
def getNumberValues(self): return _Xdmf.XdmfTopologyPtr_getNumberValues(self)
def setArray(self, *args): return _Xdmf.XdmfTopologyPtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfTopologyPtr_getArray(self, *args)
XdmfTopologyPtr_swigregister = _Xdmf.XdmfTopologyPtr_swigregister
XdmfTopologyPtr_swigregister(XdmfTopologyPtr)
......@@ -296,6 +316,8 @@ class XdmfVisitorPtr(_object):
def New(self): return _Xdmf.XdmfVisitorPtr_New(self)
def visit(self, *args): return _Xdmf.XdmfVisitorPtr_visit(self, *args)
def printSelf(self): return _Xdmf.XdmfVisitorPtr_printSelf(self)
def getLightDataLimit(self): return _Xdmf.XdmfVisitorPtr_getLightDataLimit(self)
def setLightDataLimit(self, *args): return _Xdmf.XdmfVisitorPtr_setLightDataLimit(self, *args)
XdmfVisitorPtr_swigregister = _Xdmf.XdmfVisitorPtr_swigregister
XdmfVisitorPtr_swigregister(XdmfVisitorPtr)
......@@ -304,7 +326,7 @@ class XdmfObject(_object):
__setattr__ = lambda self, name, value: _swig_setattr(self, XdmfObject, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XdmfObject, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def printSelf(self): return _Xdmf.XdmfObject_printSelf(self)
XdmfObject_swigregister = _Xdmf.XdmfObject_swigregister
......@@ -317,7 +339,7 @@ class XdmfItem(XdmfObject):
__swig_getmethods__ = {}
for _s in [XdmfObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, XdmfItem, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def write(self, *args): return _Xdmf.XdmfItem_write(self, *args)
XdmfItem_swigregister = _Xdmf.XdmfItem_swigregister
......@@ -336,6 +358,8 @@ class XdmfVisitor(XdmfObject):
if _newclass:New = staticmethod(_Xdmf.XdmfVisitor_New)
def visit(self, *args): return _Xdmf.XdmfVisitor_visit(self, *args)
def printSelf(self): return _Xdmf.XdmfVisitor_printSelf(self)
def getLightDataLimit(self): return _Xdmf.XdmfVisitor_getLightDataLimit(self)
def setLightDataLimit(self, *args): return _Xdmf.XdmfVisitor_setLightDataLimit(self, *args)
XdmfVisitor_swigregister = _Xdmf.XdmfVisitor_swigregister
XdmfVisitor_swigregister(XdmfVisitor)
......@@ -352,96 +376,13 @@ class XdmfDataItem(XdmfItem):
__getattr__ = lambda self, name: _swig_getattr(self, XdmfDataItem, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_getmethods__["New"] = lambda x: _Xdmf.XdmfDataItem_New
if _newclass:New = staticmethod(_Xdmf.XdmfDataItem_New)
def getNumberValues(self): return _Xdmf.XdmfDataItem_getNumberValues(self)
def setArray(self, *args): return _Xdmf.XdmfDataItem_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfDataItem_getArray(self, *args)
def printSelf(self): return _Xdmf.XdmfDataItem_printSelf(self)
def write(self, *args): return _Xdmf.XdmfDataItem_write(self, *args)
XdmfDataItem_swigregister = _Xdmf.XdmfDataItem_swigregister
XdmfDataItem_swigregister(XdmfDataItem)
def XdmfDataItem_New():
return _Xdmf.XdmfDataItem_New()
XdmfDataItem_New = _Xdmf.XdmfDataItem_New
class XdmfDataItemType(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XdmfDataItemType, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XdmfDataItemType, name)
__repr__ = _swig_repr
__swig_getmethods__["Unknown"] = lambda x: _Xdmf.XdmfDataItemType_Unknown
if _newclass:Unknown = staticmethod(_Xdmf.XdmfDataItemType_Unknown)
__swig_getmethods__["Int8"] = lambda x: _Xdmf.XdmfDataItemType_Int8
if _newclass:Int8 = staticmethod(_Xdmf.XdmfDataItemType_Int8)
__swig_getmethods__["Int16"] = lambda x: _Xdmf.XdmfDataItemType_Int16
if _newclass:Int16 = staticmethod(_Xdmf.XdmfDataItemType_Int16)
__swig_getmethods__["Int32"] = lambda x: _Xdmf.XdmfDataItemType_Int32
if _newclass:Int32 = staticmethod(_Xdmf.XdmfDataItemType_Int32)
__swig_getmethods__["Int64"] = lambda x: _Xdmf.XdmfDataItemType_Int64
if _newclass:Int64 = staticmethod(_Xdmf.XdmfDataItemType_Int64)
__swig_getmethods__["Float32"] = lambda x: _Xdmf.XdmfDataItemType_Float32
if _newclass:Float32 = staticmethod(_Xdmf.XdmfDataItemType_Float32)
__swig_getmethods__["Float64"] = lambda x: _Xdmf.XdmfDataItemType_Float64
if _newclass:Float64 = staticmethod(_Xdmf.XdmfDataItemType_Float64)
__swig_getmethods__["UInt8"] = lambda x: _Xdmf.XdmfDataItemType_UInt8
if _newclass:UInt8 = staticmethod(_Xdmf.XdmfDataItemType_UInt8)
__swig_getmethods__["UInt16"] = lambda x: _Xdmf.XdmfDataItemType_UInt16
if _newclass:UInt16 = staticmethod(_Xdmf.XdmfDataItemType_UInt16)
__swig_getmethods__["UInt32"] = lambda x: _Xdmf.XdmfDataItemType_UInt32
if _newclass:UInt32 = staticmethod(_Xdmf.XdmfDataItemType_UInt32)
def getName(self): return _Xdmf.XdmfDataItemType_getName(self)
def __eq__(self, *args): return _Xdmf.XdmfDataItemType___eq__(self, *args)
def __ne__(self, *args): return _Xdmf.XdmfDataItemType___ne__(self, *args)
def __init__(self, *args):
this = _Xdmf.new_XdmfDataItemType(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _Xdmf.delete_XdmfDataItemType
__del__ = lambda self : None;
XdmfDataItemType_swigregister = _Xdmf.XdmfDataItemType_swigregister
XdmfDataItemType_swigregister(XdmfDataItemType)
def XdmfDataItemType_Unknown():
return _Xdmf.XdmfDataItemType_Unknown()
XdmfDataItemType_Unknown = _Xdmf.XdmfDataItemType_Unknown
def XdmfDataItemType_Int8():
return _Xdmf.XdmfDataItemType_Int8()
XdmfDataItemType_Int8 = _Xdmf.XdmfDataItemType_Int8
def XdmfDataItemType_Int16():
return _Xdmf.XdmfDataItemType_Int16()
XdmfDataItemType_Int16 = _Xdmf.XdmfDataItemType_Int16
def XdmfDataItemType_Int32():
return _Xdmf.XdmfDataItemType_Int32()
XdmfDataItemType_Int32 = _Xdmf.XdmfDataItemType_Int32
def XdmfDataItemType_Int64():
return _Xdmf.XdmfDataItemType_Int64()
XdmfDataItemType_Int64 = _Xdmf.XdmfDataItemType_Int64
def XdmfDataItemType_Float32():
return _Xdmf.XdmfDataItemType_Float32()
XdmfDataItemType_Float32 = _Xdmf.XdmfDataItemType_Float32
def XdmfDataItemType_Float64():
return _Xdmf.XdmfDataItemType_Float64()
XdmfDataItemType_Float64 = _Xdmf.XdmfDataItemType_Float64
def XdmfDataItemType_UInt8():
return _Xdmf.XdmfDataItemType_UInt8()
XdmfDataItemType_UInt8 = _Xdmf.XdmfDataItemType_UInt8
def XdmfDataItemType_UInt16():
return _Xdmf.XdmfDataItemType_UInt16()
XdmfDataItemType_UInt16 = _Xdmf.XdmfDataItemType_UInt16
def XdmfDataItemType_UInt32():
return _Xdmf.XdmfDataItemType_UInt32()
XdmfDataItemType_UInt32 = _Xdmf.XdmfDataItemType_UInt32
class XdmfAttribute(XdmfDataItem):
__swig_setmethods__ = {}
for _s in [XdmfDataItem]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
......@@ -463,7 +404,6 @@ class XdmfAttribute(XdmfDataItem):
def getAttributeCenterAsString(self): return _Xdmf.XdmfAttribute_getAttributeCenterAsString(self)
def write(self, *args): return _Xdmf.XdmfAttribute_write(self, *args)
def printSelf(self): return _Xdmf.XdmfAttribute_printSelf(self)
def setNumberValues(self, *args): return _Xdmf.XdmfAttribute_setNumberValues(self, *args)
XdmfAttribute_swigregister = _Xdmf.XdmfAttribute_swigregister
XdmfAttribute_swigregister(XdmfAttribute)
......@@ -579,6 +519,33 @@ def XdmfAttributeType_GlobalId():
return _Xdmf.XdmfAttributeType_GlobalId()
XdmfAttributeType_GlobalId = _Xdmf.XdmfAttributeType_GlobalId
class XdmfArray(XdmfItem):
__swig_setmethods__ = {}
for _s in [XdmfItem]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, XdmfArray, name, value)
__swig_getmethods__ = {}
for _s in [XdmfItem]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, XdmfArray, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_getmethods__["New"] = lambda x: _Xdmf.XdmfArray_New
if _newclass:New = staticmethod(_Xdmf.XdmfArray_New)
def getType(self): return _Xdmf.XdmfArray_getType(self)
def getHDF5Type(self): return _Xdmf.XdmfArray_getHDF5Type(self)
def getPrecision(self): return _Xdmf.XdmfArray_getPrecision(self)
def getSize(self): return _Xdmf.XdmfArray_getSize(self)
def getValues(self): return _Xdmf.XdmfArray_getValues(self)
def getValuesPointer(self): return _Xdmf.XdmfArray_getValuesPointer(self)
def printSelf(self): return _Xdmf.XdmfArray_printSelf(self)
def write(self, *args): return _Xdmf.XdmfArray_write(self, *args)
def setValues(self, *args): return _Xdmf.XdmfArray_setValues(self, *args)
XdmfArray_swigregister = _Xdmf.XdmfArray_swigregister
XdmfArray_swigregister(XdmfArray)
def XdmfArray_New():
return _Xdmf.XdmfArray_New()
XdmfArray_New = _Xdmf.XdmfArray_New
class XdmfDomain(XdmfItem):
__swig_setmethods__ = {}
for _s in [XdmfItem]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
......@@ -617,7 +584,6 @@ class XdmfGeometry(XdmfDataItem):
def setGeometryType(self, *args): return _Xdmf.XdmfGeometry_setGeometryType(self, *args)
def getGeometryTypeAsString(self): return _Xdmf.XdmfGeometry_getGeometryTypeAsString(self)
def getDimensions(self): return _Xdmf.XdmfGeometry_getDimensions(self)
def setNumberPoints(self, *args): return _Xdmf.XdmfGeometry_setNumberPoints(self, *args)
def printSelf(self): return _Xdmf.XdmfGeometry_printSelf(self)
def write(self, *args): return _Xdmf.XdmfGeometry_write(self, *args)
XdmfGeometry_swigregister = _Xdmf.XdmfGeometry_swigregister
......@@ -743,7 +709,6 @@ class XdmfTopology(XdmfDataItem):
def getTopologyType(self): return _Xdmf.XdmfTopology_getTopologyType(self)
def setTopologyType(self, *args): return _Xdmf.XdmfTopology_setTopologyType(self, *args)
def getNumberElements(self): return _Xdmf.XdmfTopology_getNumberElements(self)
def setNumberElements(self, *args): return _Xdmf.XdmfTopology_setNumberElements(self, *args)
def getTopologyTypeAsString(self): return _Xdmf.XdmfTopology_getTopologyTypeAsString(self)
def getNodesPerElement(self): return _Xdmf.XdmfTopology_getNodesPerElement(self)
def printSelf(self): return _Xdmf.XdmfTopology_printSelf(self)
......@@ -924,5 +889,428 @@ def XdmfTopologyType_ThreeDCoRectMesh():
return _Xdmf.XdmfTopologyType_ThreeDCoRectMesh()
XdmfTopologyType_ThreeDCoRectMesh = _Xdmf.XdmfTopologyType_ThreeDCoRectMesh
class CharVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, CharVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, CharVector, name)
__repr__ = _swig_repr
def iterator(self): return _Xdmf.CharVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _Xdmf.CharVector___nonzero__(self)
def __bool__(self): return _Xdmf.CharVector___bool__(self)
def __len__(self): return _Xdmf.CharVector___len__(self)
def pop(self): return _Xdmf.CharVector_pop(self)
def __getslice__(self, *args): return _Xdmf.CharVector___getslice__(self, *args)
def __setslice__(self, *args): return _Xdmf.CharVector___setslice__(self, *args)
def __delslice__(self, *args): return _Xdmf.CharVector___delslice__(self, *args)
def __delitem__(self, *args): return _Xdmf.CharVector___delitem__(self, *args)
def __getitem__(self, *args): return _Xdmf.CharVector___getitem__(self, *args)
def __setitem__(self, *args): return _Xdmf.CharVector___setitem__(self, *args)
def append(self, *args): return _Xdmf.CharVector_append(self, *args)
def empty(self): return _Xdmf.CharVector_empty(self)
def size(self): return _Xdmf.CharVector_size(self)
def clear(self): return _Xdmf.CharVector_clear(self)
def swap(self, *args): return _Xdmf.CharVector_swap(self, *args)
def get_allocator(self): return _Xdmf.CharVector_get_allocator(self)
def begin(self): return _Xdmf.CharVector_begin(self)
def end(self): return _Xdmf.CharVector_end(self)
def rbegin(self): return _Xdmf.CharVector_rbegin(self)
def rend(self): return _Xdmf.CharVector_rend(self)
def pop_back(self): return _Xdmf.CharVector_pop_back(self)
def erase(self, *args): return _Xdmf.CharVector_erase(self, *args)
def __init__(self, *args):
this = _Xdmf.new_CharVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _Xdmf.CharVector_push_back(self, *args)
def front(self): return _Xdmf.CharVector_front(self)
def back(self): return _Xdmf.CharVector_back(self)
def assign(self, *args): return _Xdmf.CharVector_assign(self, *args)
def resize(self, *args): return _Xdmf.CharVector_resize(self, *args)
def insert(self, *args): return _Xdmf.CharVector_insert(self, *args)
def reserve(self, *args): return _Xdmf.CharVector_reserve(self, *args)
def capacity(self): return _Xdmf.CharVector_capacity(self)
__swig_destroy__ = _Xdmf.delete_CharVector
__del__ = lambda self : None;
CharVector_swigregister = _Xdmf.CharVector_swigregister
CharVector_swigregister(CharVector)
class ShortVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ShortVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ShortVector, name)
__repr__ = _swig_repr
def iterator(self): return _Xdmf.ShortVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _Xdmf.ShortVector___nonzero__(self)
def __bool__(self): return _Xdmf.ShortVector___bool__(self)
def __len__(self): return _Xdmf.ShortVector___len__(self)
def pop(self): return _Xdmf.ShortVector_pop(self)
def __getslice__(self, *args): return _Xdmf.ShortVector___getslice__(self, *args)
def __setslice__(self, *args): return _Xdmf.ShortVector___setslice__(self, *args)
def __delslice__(self, *args): return _Xdmf.ShortVector___delslice__(self, *args)
def __delitem__(self, *args): return _Xdmf.ShortVector___delitem__(self, *args)
def __getitem__(self, *args): return _Xdmf.ShortVector___getitem__(self, *args)
def __setitem__(self, *args): return _Xdmf.ShortVector___setitem__(self, *args)
def append(self, *args): return _Xdmf.ShortVector_append(self, *args)
def empty(self): return _Xdmf.ShortVector_empty(self)
def size(self): return _Xdmf.ShortVector_size(self)
def clear(self): return _Xdmf.ShortVector_clear(self)
def swap(self, *args): return _Xdmf.ShortVector_swap(self, *args)
def get_allocator(self): return _Xdmf.ShortVector_get_allocator(self)
def begin(self): return _Xdmf.ShortVector_begin(self)
def end(self): return _Xdmf.ShortVector_end(self)
def rbegin(self): return _Xdmf.ShortVector_rbegin(self)
def rend(self): return _Xdmf.ShortVector_rend(self)
def pop_back(self): return _Xdmf.ShortVector_pop_back(self)
def erase(self, *args): return _Xdmf.ShortVector_erase(self, *args)
def __init__(self, *args):
this = _Xdmf.new_ShortVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _Xdmf.ShortVector_push_back(self, *args)
def front(self): return _Xdmf.ShortVector_front(self)
def back(self): return _Xdmf.ShortVector_back(self)
def assign(self, *args): return _Xdmf.ShortVector_assign(self, *args)
def resize(self, *args): return _Xdmf.ShortVector_resize(self, *args)
def insert(self, *args): return _Xdmf.ShortVector_insert(self, *args)
def reserve(self, *args): return _Xdmf.ShortVector_reserve(self, *args)
def capacity(self): return _Xdmf.ShortVector_capacity(self)
__swig_destroy__ = _Xdmf.delete_ShortVector
__del__ = lambda self : None;
ShortVector_swigregister = _Xdmf.ShortVector_swigregister
ShortVector_swigregister(ShortVector)
class IntVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
__repr__ = _swig_repr
def iterator(self): return _Xdmf.IntVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _Xdmf.IntVector___nonzero__(self)
def __bool__(self): return _Xdmf.IntVector___bool__(self)
def __len__(self): return _Xdmf.IntVector___len__(self)
def pop(self): return _Xdmf.IntVector_pop(self)
def __getslice__(self, *args): return _Xdmf.IntVector___getslice__(self, *args)
def __setslice__(self, *args): return _Xdmf.IntVector___setslice__(self, *args)
def __delslice__(self, *args): return _Xdmf.IntVector___delslice__(self, *args)
def __delitem__(self, *args): return _Xdmf.IntVector___delitem__(self, *args)
def __getitem__(self, *args): return _Xdmf.IntVector___getitem__(self, *args)
def __setitem__(self, *args): return _Xdmf.IntVector___setitem__(self, *args)
def append(self, *args): return _Xdmf.IntVector_append(self, *args)
def empty(self): return _Xdmf.IntVector_empty(self)
def size(self): return _Xdmf.IntVector_size(self)
def clear(self): return _Xdmf.IntVector_clear(self)
def swap(self, *args): return _Xdmf.IntVector_swap(self, *args)
def get_allocator(self): return _Xdmf.IntVector_get_allocator(self)
def begin(self): return _Xdmf.IntVector_begin(self)
def end(self): return _Xdmf.IntVector_end(self)
def rbegin(self): return _Xdmf.IntVector_rbegin(self)
def rend(self): return _Xdmf.IntVector_rend(self)
def pop_back(self): return _Xdmf.IntVector_pop_back(self)
def erase(self, *args): return _Xdmf.IntVector_erase(self, *args)
def __init__(self, *args):
this = _Xdmf.new_IntVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _Xdmf.IntVector_push_back(self, *args)
def front(self): return _Xdmf.IntVector_front(self)
def back(self): return _Xdmf.IntVector_back(self)
def assign(self, *args): return _Xdmf.IntVector_assign(self, *args)
def resize(self, *args): return _Xdmf.IntVector_resize(self, *args)
def insert(self, *args): return _Xdmf.IntVector_insert(self, *args)
def reserve(self, *args): return _Xdmf.IntVector_reserve(self, *args)
def capacity(self): return _Xdmf.IntVector_capacity(self)
__swig_destroy__ = _Xdmf.delete_IntVector
__del__ = lambda self : None;
IntVector_swigregister = _Xdmf.IntVector_swigregister
IntVector_swigregister(IntVector)
class LongVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, LongVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, LongVector, name)
__repr__ = _swig_repr
def iterator(self): return _Xdmf.LongVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _Xdmf.LongVector___nonzero__(self)
def __bool__(self): return _Xdmf.LongVector___bool__(self)
def __len__(self): return _Xdmf.LongVector___len__(self)
def pop(self): return _Xdmf.LongVector_pop(self)
def __getslice__(self, *args): return _Xdmf.LongVector___getslice__(self, *args)
def __setslice__(self, *args): return _Xdmf.LongVector___setslice__(self, *args)
def __delslice__(self, *args): return _Xdmf.LongVector___delslice__(self, *args)
def __delitem__(self, *args): return _Xdmf.LongVector___delitem__(self, *args)
def __getitem__(self, *args): return _Xdmf.LongVector___getitem__(self, *args)
def __setitem__(self, *args): return _Xdmf.LongVector___setitem__(self, *args)
def append(self, *args): return _Xdmf.LongVector_append(self, *args)
def empty(self): return _Xdmf.LongVector_empty(self)
def size(self): return _Xdmf.LongVector_size(self)
def clear(self): return _Xdmf.LongVector_clear(self)
def swap(self, *args): return _Xdmf.LongVector_swap(self, *args)
def get_allocator(self): return _Xdmf.LongVector_get_allocator(self)
def begin(self): return _Xdmf.LongVector_begin(self)
def end(self): return _Xdmf.LongVector_end(self)
def rbegin(self): return _Xdmf.LongVector_rbegin(self)
def rend(self): return _Xdmf.LongVector_rend(self)
def pop_back(self): return _Xdmf.LongVector_pop_back(self)
def erase(self, *args): return _Xdmf.LongVector_erase(self, *args)
def __init__(self, *args):
this = _Xdmf.new_LongVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _Xdmf.LongVector_push_back(self, *args)
def front(self): return _Xdmf.LongVector_front(self)
def back(self): return _Xdmf.LongVector_back(self)
def assign(self, *args): return _Xdmf.LongVector_assign(self, *args)
def resize(self, *args): return _Xdmf.LongVector_resize(self, *args)
def insert(self, *args): return _Xdmf.LongVector_insert(self, *args)
def reserve(self, *args): return _Xdmf.LongVector_reserve(self, *args)
def capacity(self): return _Xdmf.LongVector_capacity(self)
__swig_destroy__ = _Xdmf.delete_LongVector
__del__ = lambda self : None;
LongVector_swigregister = _Xdmf.LongVector_swigregister
LongVector_swigregister(LongVector)
class FloatVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, FloatVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, FloatVector, name)
__repr__ = _swig_repr
def iterator(self): return _Xdmf.FloatVector_iterator(self)
def __iter__(self): return self.iterator()
def __nonzero__(self): return _Xdmf.FloatVector___nonzero__(self)
def __bool__(self): return _Xdmf.FloatVector___bool__(self)
def __len__(self): return _Xdmf.FloatVector___len__(self)
def pop(self): return _Xdmf.FloatVector_pop(self)
def __getslice__(self, *args): return _Xdmf.FloatVector___getslice__(self, *args)
def __setslice__(self, *args): return _Xdmf.FloatVector___setslice__(self, *args)
def __delslice__(self, *args): return _Xdmf.FloatVector___delslice__(self, *args)
def __delitem__(self, *args): return _Xdmf.FloatVector___delitem__(self, *args)
def __getitem__(self, *args): return _Xdmf.FloatVector___getitem__(self, *args)
def __setitem__(self, *args): return _Xdmf.FloatVector___setitem__(self, *args)
def append(self, *args): return _Xdmf.FloatVector_append(self, *args)
def empty(self): return _Xdmf.FloatVector_empty(self)
def size(self): return _Xdmf.FloatVector_size(self)
def clear(self): return _Xdmf.FloatVector_clear(self)
def swap(self, *args): return _Xdmf.FloatVector_swap(self, *args)
def get_allocator(self): return _Xdmf.FloatVector_get_allocator(self)
def begin(self): return _Xdmf.FloatVector_begin(self)
def end(self): return _Xdmf.FloatVector_end(self)
def rbegin(self): return _Xdmf.FloatVector_rbegin(self)
def rend(self): return _Xdmf.FloatVector_rend(self)
def pop_back(self): return _Xdmf.FloatVector_pop_back(self)
def erase(self, *args): return _Xdmf.FloatVector_erase(self, *args)
def __init__(self, *args):
this = _Xdmf.new_FloatVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(self, *args): return _Xdmf.FloatVector_push_back(self, *args)
def front(self): return _Xdmf.FloatVector_front(self)
def back(self): return _Xdmf.FloatVector_back(self)
def assign(self, *args): return _Xdmf.FloatVector_assign(self, *args)
def resize(self, *args): return _Xdmf.FloatVector_resize(self, *args)
def insert(self, *args): return _Xdmf.FloatVector_insert(self, *args)