Commit 48eedaab authored by Kenneth Leiter's avatar Kenneth Leiter
Browse files

ENH: Remove printSelf() method as it was unnecessary.

parent b1ff8b8a
...@@ -546,11 +546,6 @@ void XdmfArray::internalizeArrayPointer() ...@@ -546,11 +546,6 @@ void XdmfArray::internalizeArrayPointer()
} }
} }
std::string XdmfArray::printSelf() const
{
return "";
}
void XdmfArray::releaseArray() void XdmfArray::releaseArray()
{ {
boost::shared_ptr<std::vector<char> > emptyArray; boost::shared_ptr<std::vector<char> > emptyArray;
......
...@@ -156,8 +156,6 @@ public: ...@@ -156,8 +156,6 @@ public:
template <typename T> template <typename T>
boost::shared_ptr<std::vector<T> > initialize(); boost::shared_ptr<std::vector<T> > initialize();
virtual std::string printSelf() const;
/** /**
* Release all data held by this XdmfArray. * Release all data held by this XdmfArray.
*/ */
......
...@@ -41,11 +41,6 @@ std::string XdmfAttribute::getName() const ...@@ -41,11 +41,6 @@ std::string XdmfAttribute::getName() const
return mName; return mName;
} }
std::string XdmfAttribute::printSelf() const
{
return "<XdmfAttribute>";
}
void XdmfAttribute::setAttributeCenter(const XdmfAttributeCenter & attributeCenter) void XdmfAttribute::setAttributeCenter(const XdmfAttributeCenter & attributeCenter)
{ {
mAttributeCenter = attributeCenter; mAttributeCenter = attributeCenter;
......
...@@ -41,8 +41,6 @@ public: ...@@ -41,8 +41,6 @@ public:
*/ */
std::string getName() const; std::string getName() const;
virtual std::string printSelf() const;
/** /**
* Set the XdmfAttributeCenter associated with this attribute. * Set the XdmfAttributeCenter associated with this attribute.
* *
......
...@@ -29,11 +29,6 @@ boost::shared_ptr<const XdmfArray> XdmfDataItem::getArray() const ...@@ -29,11 +29,6 @@ boost::shared_ptr<const XdmfArray> XdmfDataItem::getArray() const
return mArray; return mArray;
} }
std::string XdmfDataItem::printSelf() const
{
return "XdmfDataItem";
}
void XdmfDataItem::setArray(boost::shared_ptr<XdmfArray> array) void XdmfDataItem::setArray(boost::shared_ptr<XdmfArray> array)
{ {
mArray = array; mArray = array;
......
...@@ -31,8 +31,6 @@ public: ...@@ -31,8 +31,6 @@ public:
*/ */
boost::shared_ptr<const XdmfArray> getArray() const; boost::shared_ptr<const XdmfArray> getArray() const;
std::string printSelf() const;
/** /**
* Attach an XdmfArray to this XdmfDataItem. * Attach an XdmfArray to this XdmfDataItem.
* *
......
...@@ -54,11 +54,6 @@ unsigned int XdmfDomain::getNumberOfGrids() const ...@@ -54,11 +54,6 @@ unsigned int XdmfDomain::getNumberOfGrids() const
return mGrids.size(); return mGrids.size();
} }
std::string XdmfDomain::printSelf() const
{
return "XdmfDomain";
}
void XdmfDomain::traverse(boost::shared_ptr<XdmfVisitor> visitor) const 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) for(std::vector<boost::shared_ptr<XdmfGrid> >::const_iterator iter = mGrids.begin(); iter != mGrids.end(); ++iter)
......
...@@ -52,8 +52,6 @@ public: ...@@ -52,8 +52,6 @@ public:
*/ */
unsigned int getNumberOfGrids() const; unsigned int getNumberOfGrids() const;
virtual std::string printSelf() const;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const; virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
protected: protected:
......
...@@ -30,11 +30,6 @@ XdmfGeometryType XdmfGeometry::getGeometryType() const ...@@ -30,11 +30,6 @@ XdmfGeometryType XdmfGeometry::getGeometryType() const
return mGeometryType; return mGeometryType;
} }
std::string XdmfGeometry::printSelf() const
{
return "XdmfGeometry";
}
void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType) void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType)
{ {
mGeometryType = geometryType; mGeometryType = geometryType;
......
...@@ -34,8 +34,6 @@ public: ...@@ -34,8 +34,6 @@ public:
*/ */
void setGeometryType(const XdmfGeometryType & geometryType); void setGeometryType(const XdmfGeometryType & geometryType);
virtual std::string printSelf() const;
protected: protected:
XdmfGeometry(); XdmfGeometry();
......
...@@ -85,11 +85,6 @@ void XdmfGrid::insert(boost::shared_ptr<XdmfAttribute> attribute) ...@@ -85,11 +85,6 @@ void XdmfGrid::insert(boost::shared_ptr<XdmfAttribute> attribute)
mAttributes.push_back(attribute); mAttributes.push_back(attribute);
} }
std::string XdmfGrid::printSelf() const
{
return "XdmfGrid containing a " + mGeometry->printSelf() + " and a " + mTopology->printSelf();
}
void XdmfGrid::setGeometry(boost::shared_ptr<XdmfGeometry> geometry) void XdmfGrid::setGeometry(boost::shared_ptr<XdmfGeometry> geometry)
{ {
mGeometry = geometry; mGeometry = geometry;
......
...@@ -90,8 +90,6 @@ public: ...@@ -90,8 +90,6 @@ public:
*/ */
void insert(boost::shared_ptr<XdmfAttribute> attribute); void insert(boost::shared_ptr<XdmfAttribute> attribute);
virtual std::string printSelf() const;
/** /**
* Set the XdmfGeometry associated with this grid. * Set the XdmfGeometry associated with this grid.
* *
......
...@@ -16,14 +16,3 @@ XdmfObject::~XdmfObject() ...@@ -16,14 +16,3 @@ XdmfObject::~XdmfObject()
{ {
} }
std::string XdmfObject::printSelf() const
{
return "XdmfObject";
}
std::ostream& operator<<(std::ostream& out, const XdmfObject& ob)
{
out << ob.printSelf();
return out;
}
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
// Includes // Includes
#include "boost/shared_ptr.hpp" #include "boost/shared_ptr.hpp"
#include <iostream> #include <iostream>
#include <ostream>
#define XdmfNewMacro(type) \ #define XdmfNewMacro(type) \
template <typename T> friend void boost::checked_delete(T * x); \ template <typename T> friend void boost::checked_delete(T * x); \
...@@ -23,8 +22,6 @@ class XdmfObject { ...@@ -23,8 +22,6 @@ class XdmfObject {
public: public:
virtual std::string printSelf() const = 0;
protected: protected:
XdmfObject(); XdmfObject();
...@@ -32,6 +29,4 @@ protected: ...@@ -32,6 +29,4 @@ protected:
}; };
std::ostream& operator<<(std::ostream& out, const XdmfObject& ob);
#endif /* XDMFOBJECT_HPP_ */ #endif /* XDMFOBJECT_HPP_ */
...@@ -36,11 +36,6 @@ XdmfTopologyType XdmfTopology::getTopologyType() const ...@@ -36,11 +36,6 @@ XdmfTopologyType XdmfTopology::getTopologyType() const
return mTopologyType; return mTopologyType;
} }
std::string XdmfTopology::printSelf() const
{
return "XdmfTopology";
}
void XdmfTopology::setTopologyType(const XdmfTopologyType & topologyType) void XdmfTopology::setTopologyType(const XdmfTopologyType & topologyType)
{ {
mTopologyType = topologyType; mTopologyType = topologyType;
......
...@@ -34,8 +34,6 @@ public: ...@@ -34,8 +34,6 @@ public:
*/ */
XdmfTopologyType getTopologyType() const; XdmfTopologyType getTopologyType() const;
virtual std::string printSelf() const;
/** /**
* Set the XdmfTopologyType associated with this topology. * Set the XdmfTopologyType associated with this topology.
* *
......
...@@ -162,11 +162,6 @@ void XdmfVisitor::visit(const XdmfTopology * const topology, boost::shared_ptr<X ...@@ -162,11 +162,6 @@ void XdmfVisitor::visit(const XdmfTopology * const topology, boost::shared_ptr<X
xmlCurrentNode = parentNode; xmlCurrentNode = parentNode;
} }
std::string XdmfVisitor::printSelf() const
{
return "XdmfVisitor";
}
unsigned int XdmfVisitor::getLightDataLimit() const unsigned int XdmfVisitor::getLightDataLimit() const
{ {
return mLightDataLimit; return mLightDataLimit;
......
...@@ -36,8 +36,6 @@ public: ...@@ -36,8 +36,6 @@ public:
*/ */
unsigned int getLightDataLimit() const; unsigned int getLightDataLimit() const;
virtual std::string printSelf() const;
/** /**
* Set the number of values that this visitor writes to light data (XML) before switching to a heavy data format. * Set the number of values that this visitor writes to light data (XML) before switching to a heavy data format.
* *
......
...@@ -13,7 +13,5 @@ int main(int argc, char* argv[]) ...@@ -13,7 +13,5 @@ int main(int argc, char* argv[])
domain->insert(grid); domain->insert(grid);
domain->accept(visitor); domain->accept(visitor);
std::cout << visitor->printSelf() << std::endl;
return 0; return 0;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment