ENH: Split visitor operation into a visit and a traverse operation so that...

ENH: Split visitor operation into a visit and a traverse operation so that logic of how to traverse the xdmf graph is kept with xdmf objects rather than the visitor.  The visitor calls this function rather than relying on its own logic.
parent 369f62ea
......@@ -115,6 +115,7 @@ class XdmfAttributePtr(_object):
def printSelf(self): return _Xdmf.XdmfAttributePtr_printSelf(self)
def setArray(self, *args): return _Xdmf.XdmfAttributePtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfAttributePtr_getArray(self, *args)
def traverse(self, *args): return _Xdmf.XdmfAttributePtr_traverse(self, *args)
XdmfAttributePtr_swigregister = _Xdmf.XdmfAttributePtr_swigregister
XdmfAttributePtr_swigregister(XdmfAttributePtr)
......@@ -137,10 +138,11 @@ class XdmfArrayPtr(_object):
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 getValuesPointer(self, *args): return _Xdmf.XdmfArrayPtr_getValuesPointer(self, *args)
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)
def traverse(self, *args): return _Xdmf.XdmfArrayPtr_traverse(self, *args)
XdmfArrayPtr_swigregister = _Xdmf.XdmfArrayPtr_swigregister
XdmfArrayPtr_swigregister(XdmfArrayPtr)
......@@ -160,6 +162,7 @@ class XdmfDataItemPtr(_object):
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 traverse(self, *args): return _Xdmf.XdmfDataItemPtr_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfDataItemPtr_write(self, *args)
XdmfDataItemPtr_swigregister = _Xdmf.XdmfDataItemPtr_swigregister
XdmfDataItemPtr_swigregister(XdmfDataItemPtr)
......@@ -182,6 +185,7 @@ class XdmfDomainPtr(_object):
def getGrid(self, *args): return _Xdmf.XdmfDomainPtr_getGrid(self, *args)
def getNumberOfGrids(self): return _Xdmf.XdmfDomainPtr_getNumberOfGrids(self)
def printSelf(self): return _Xdmf.XdmfDomainPtr_printSelf(self)
def traverse(self, *args): return _Xdmf.XdmfDomainPtr_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfDomainPtr_write(self, *args)
XdmfDomainPtr_swigregister = _Xdmf.XdmfDomainPtr_swigregister
XdmfDomainPtr_swigregister(XdmfDomainPtr)
......@@ -208,6 +212,7 @@ class XdmfGeometryPtr(_object):
def write(self, *args): return _Xdmf.XdmfGeometryPtr_write(self, *args)
def setArray(self, *args): return _Xdmf.XdmfGeometryPtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfGeometryPtr_getArray(self, *args)
def traverse(self, *args): return _Xdmf.XdmfGeometryPtr_traverse(self, *args)
XdmfGeometryPtr_swigregister = _Xdmf.XdmfGeometryPtr_swigregister
XdmfGeometryPtr_swigregister(XdmfGeometryPtr)
......@@ -235,6 +240,7 @@ class XdmfGridPtr(_object):
def getAttribute(self, *args): return _Xdmf.XdmfGridPtr_getAttribute(self, *args)
def getNumberOfAttributes(self): return _Xdmf.XdmfGridPtr_getNumberOfAttributes(self)
def printSelf(self): return _Xdmf.XdmfGridPtr_printSelf(self)
def traverse(self, *args): return _Xdmf.XdmfGridPtr_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfGridPtr_write(self, *args)
XdmfGridPtr_swigregister = _Xdmf.XdmfGridPtr_swigregister
XdmfGridPtr_swigregister(XdmfGridPtr)
......@@ -252,6 +258,7 @@ class XdmfItemPtr(_object):
except: self.this = this
__swig_destroy__ = _Xdmf.delete_XdmfItemPtr
__del__ = lambda self : None;
def traverse(self, *args): return _Xdmf.XdmfItemPtr_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfItemPtr_write(self, *args)
def printSelf(self): return _Xdmf.XdmfItemPtr_printSelf(self)
XdmfItemPtr_swigregister = _Xdmf.XdmfItemPtr_swigregister
......@@ -297,6 +304,7 @@ class XdmfTopologyPtr(_object):
def write(self, *args): return _Xdmf.XdmfTopologyPtr_write(self, *args)
def setArray(self, *args): return _Xdmf.XdmfTopologyPtr_setArray(self, *args)
def getArray(self, *args): return _Xdmf.XdmfTopologyPtr_getArray(self, *args)
def traverse(self, *args): return _Xdmf.XdmfTopologyPtr_traverse(self, *args)
XdmfTopologyPtr_swigregister = _Xdmf.XdmfTopologyPtr_swigregister
XdmfTopologyPtr_swigregister(XdmfTopologyPtr)
......@@ -341,6 +349,7 @@ class XdmfItem(XdmfObject):
__getattr__ = lambda self, name: _swig_getattr(self, XdmfItem, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def traverse(self, *args): return _Xdmf.XdmfItem_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfItem_write(self, *args)
XdmfItem_swigregister = _Xdmf.XdmfItem_swigregister
XdmfItem_swigregister(XdmfItem)
......@@ -379,7 +388,7 @@ class XdmfDataItem(XdmfItem):
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)
def traverse(self, *args): return _Xdmf.XdmfDataItem_traverse(self, *args)
XdmfDataItem_swigregister = _Xdmf.XdmfDataItem_swigregister
XdmfDataItem_swigregister(XdmfDataItem)
......@@ -535,7 +544,7 @@ class XdmfArray(XdmfItem):
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 getValuesPointer(self, *args): return _Xdmf.XdmfArray_getValuesPointer(self, *args)
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)
......@@ -561,6 +570,7 @@ class XdmfDomain(XdmfItem):
def getGrid(self, *args): return _Xdmf.XdmfDomain_getGrid(self, *args)
def getNumberOfGrids(self): return _Xdmf.XdmfDomain_getNumberOfGrids(self)
def printSelf(self): return _Xdmf.XdmfDomain_printSelf(self)
def traverse(self, *args): return _Xdmf.XdmfDomain_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfDomain_write(self, *args)
XdmfDomain_swigregister = _Xdmf.XdmfDomain_swigregister
XdmfDomain_swigregister(XdmfDomain)
......@@ -687,6 +697,7 @@ class XdmfGrid(XdmfItem):
def getAttribute(self, *args): return _Xdmf.XdmfGrid_getAttribute(self, *args)
def getNumberOfAttributes(self): return _Xdmf.XdmfGrid_getNumberOfAttributes(self)
def printSelf(self): return _Xdmf.XdmfGrid_printSelf(self)
def traverse(self, *args): return _Xdmf.XdmfGrid_traverse(self, *args)
def write(self, *args): return _Xdmf.XdmfGrid_write(self, *args)
XdmfGrid_swigregister = _Xdmf.XdmfGrid_swigregister
XdmfGrid_swigregister(XdmfGrid)
......
......@@ -284,5 +284,5 @@ std::string XdmfArray::printSelf() const
void XdmfArray::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
visitor->visit(this);
visitor->visit(this, visitor);
}
......@@ -63,7 +63,7 @@ void XdmfAttribute::setName(const std::string& name)
void XdmfAttribute::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
visitor->visit(this);
visitor->visit(this, visitor);
}
std::string XdmfAttribute::printSelf() const
......
......@@ -38,3 +38,8 @@ boost::shared_ptr<const XdmfArray> XdmfDataItem::getArray() const
{
return mArray;
}
void XdmfDataItem::traverse(boost::shared_ptr<XdmfVisitor> visitor) const
{
mArray->write(visitor);
}
......@@ -42,7 +42,7 @@ public:
std::string printSelf() const;
void write(boost::shared_ptr<XdmfVisitor> visitor) const = 0;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
protected:
......
......@@ -6,6 +6,7 @@
*/
#include "XdmfDomain.hpp"
#include "XdmfGrid.hpp"
#include "XdmfVisitor.hpp"
XdmfDomain::XdmfDomain()
......@@ -53,7 +54,15 @@ std::string XdmfDomain::printSelf() const
return "XdmfDomain";
}
void XdmfDomain::traverse(boost::shared_ptr<XdmfVisitor> visitor) const
{
for(std::vector<boost::shared_ptr<XdmfGrid> >::const_iterator iter = mGrids.begin(); iter != mGrids.end(); ++iter)
{
(*iter)->write(visitor);
}
}
void XdmfDomain::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
visitor->visit(this);
visitor->visit(this, visitor);
}
......@@ -45,6 +45,7 @@ public:
virtual std::string printSelf() const;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const;
protected:
......
......@@ -47,5 +47,5 @@ std::string XdmfGeometry::printSelf() const
void XdmfGeometry::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
visitor->visit(this);
visitor->visit(this, visitor);
}
......@@ -5,6 +5,7 @@
* Author: kleiter
*/
#include "XdmfAttribute.hpp"
#include "XdmfGrid.hpp"
#include "XdmfGeometry.hpp"
#include "XdmfTopology.hpp"
......@@ -108,7 +109,17 @@ std::string XdmfGrid::printSelf() const
return "XdmfGrid containing a " + mGeometry->printSelf() + " and a " + mTopology->printSelf();
}
void XdmfGrid::traverse(boost::shared_ptr<XdmfVisitor> visitor) const
{
mGeometry->write(visitor);
mTopology->write(visitor);
for(std::vector<boost::shared_ptr<XdmfAttribute> >::const_iterator iter = mAttributes.begin(); iter != mAttributes.end(); ++iter)
{
(*iter)->write(visitor);
}
}
void XdmfGrid::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
visitor->visit(this);
visitor->visit(this, visitor);
}
......@@ -102,6 +102,8 @@ public:
virtual std::string printSelf() const;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const;
protected:
......
#include "XdmfItem.hpp"
#include "XdmfVisitor.hpp"
XdmfItem::XdmfItem()
{
......@@ -8,3 +9,8 @@ XdmfItem::XdmfItem()
XdmfItem::~XdmfItem()
{
}
void XdmfItem::traverse(boost::shared_ptr<XdmfVisitor> visitor) const
{
return;
}
......@@ -18,7 +18,8 @@ class XdmfItem : public XdmfObject {
public:
virtual void write(boost::shared_ptr<XdmfVisitor>) const = 0;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const = 0;
protected:
......
......@@ -6717,6 +6717,44 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfAttributePtr_traverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfAttribute > *arg1 = (boost::shared_ptr< XdmfAttribute > *) 0 ;
boost::shared_ptr< XdmfVisitor > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:XdmfAttributePtr_traverse",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfAttribute_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XdmfAttributePtr_traverse" "', argument " "1"" of type '" "boost::shared_ptr< XdmfAttribute > const *""'");
}
arg1 = reinterpret_cast< boost::shared_ptr< XdmfAttribute > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_boost__shared_ptrT_XdmfVisitor_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XdmfAttributePtr_traverse" "', argument " "2"" of type '" "boost::shared_ptr< XdmfVisitor >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XdmfAttributePtr_traverse" "', argument " "2"" of type '" "boost::shared_ptr< XdmfVisitor >""'");
} else {
boost::shared_ptr< XdmfVisitor > * temp = reinterpret_cast< boost::shared_ptr< XdmfVisitor > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(*arg1)->traverse(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *XdmfAttributePtr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
......@@ -6912,7 +6950,29 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_getValuesPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_getValuesPointer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:XdmfArrayPtr_getValuesPointer",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XdmfArrayPtr_getValuesPointer" "', argument " "1"" of type '" "boost::shared_ptr< XdmfArray > *""'");
}
arg1 = reinterpret_cast< boost::shared_ptr< XdmfArray > * >(argp1);
result = (void *)(*arg1)->getValuesPointer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_getValuesPointer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
void *argp1 = 0 ;
......@@ -6934,6 +6994,44 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_getValuesPointer(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2];
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = (int)PyObject_Length(args);
for (ii = 0; (ii < argc) && (ii < 1); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_XdmfArrayPtr_getValuesPointer__SWIG_0(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_XdmfArrayPtr_getValuesPointer__SWIG_1(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'XdmfArrayPtr_getValuesPointer'.\n"
" Possible C/C++ prototypes are:\n"
" getValuesPointer(boost::shared_ptr< XdmfArray > *)\n"
" getValuesPointer(boost::shared_ptr< XdmfArray > const *)\n");
return NULL;
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_printSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
......@@ -6994,7 +7092,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7063,7 +7161,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7123,7 +7221,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7174,7 +7272,49 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
char *arg3 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int res3 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:XdmfArrayPtr_setValues",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XdmfArrayPtr_setValues" "', argument " "1"" of type '" "boost::shared_ptr< XdmfArray > *""'");
}
arg1 = reinterpret_cast< boost::shared_ptr< XdmfArray > * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XdmfArrayPtr_setValues" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XdmfArrayPtr_setValues" "', argument " "3"" of type '" "char *""'");
}
arg3 = reinterpret_cast< char * >(buf3);
(*arg1)->SWIGTEMPLATEDISAMBIGUATOR setValues< char >(arg2,arg3);
resultobj = SWIG_Py_Void();
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
return resultobj;
fail:
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
return NULL;
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
std::vector< char,std::allocator< char > > *arg2 = 0 ;
......@@ -7207,7 +7347,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7273,7 +7413,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7330,7 +7470,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7378,7 +7518,46 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
short *arg3 = (short *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:XdmfArrayPtr_setValues",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XdmfArrayPtr_setValues" "', argument " "1"" of type '" "boost::shared_ptr< XdmfArray > *""'");
}
arg1 = reinterpret_cast< boost::shared_ptr< XdmfArray > * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XdmfArrayPtr_setValues" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_short, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XdmfArrayPtr_setValues" "', argument " "3"" of type '" "short *""'");
}
arg3 = reinterpret_cast< short * >(argp3);
(*arg1)->SWIGTEMPLATEDISAMBIGUATOR setValues< short >(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
std::vector< short,std::allocator< short > > *arg2 = 0 ;
......@@ -7411,7 +7590,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7477,7 +7656,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7534,7 +7713,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_17(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7582,7 +7761,46 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_18(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
int *arg3 = (int *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:XdmfArrayPtr_setValues",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XdmfArrayPtr_setValues" "', argument " "1"" of type '" "boost::shared_ptr< XdmfArray > *""'");
}
arg1 = reinterpret_cast< boost::shared_ptr< XdmfArray > * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XdmfArrayPtr_setValues" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XdmfArrayPtr_setValues" "', argument " "3"" of type '" "int *""'");
}
arg3 = reinterpret_cast< int * >(argp3);
(*arg1)->SWIGTEMPLATEDISAMBIGUATOR setValues< int >(arg2,arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_19(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
std::vector< int,std::allocator< int > > *arg2 = 0 ;
......@@ -7615,7 +7833,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7681,7 +7899,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_17(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_21(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7738,7 +7956,7 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_18(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_22(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
int arg2 ;
......@@ -7786,32 +8004,38 @@ fail:
}
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_19(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_XdmfArrayPtr_setValues__SWIG_23(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
boost::shared_ptr< XdmfArray > *arg1 = (boost::shared_ptr< XdmfArray > *) 0 ;
std::vector< long,std::allocator< long > > *arg2 = 0 ;
int arg2 ;
long *arg3 = (long *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val2 ;
int ecode2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:XdmfArrayPtr_setValues",&obj0,&obj1)) SWIG_fail;
if (!PyArg_ParseTuple(args,(char *)"OOO:XdmfArrayPtr_setValues",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_boost__shared_ptrT_XdmfArray_t, 0 | 0 );