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

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

parent b1ff8b8a
......@@ -546,11 +546,6 @@ void XdmfArray::internalizeArrayPointer()
}
}
std::string XdmfArray::printSelf() const
{
return "";
}
void XdmfArray::releaseArray()
{
boost::shared_ptr<std::vector<char> > emptyArray;
......
......@@ -156,8 +156,6 @@ public:
template <typename T>
boost::shared_ptr<std::vector<T> > initialize();
virtual std::string printSelf() const;
/**
* Release all data held by this XdmfArray.
*/
......
......@@ -41,11 +41,6 @@ std::string XdmfAttribute::getName() const
return mName;
}
std::string XdmfAttribute::printSelf() const
{
return "<XdmfAttribute>";
}
void XdmfAttribute::setAttributeCenter(const XdmfAttributeCenter & attributeCenter)
{
mAttributeCenter = attributeCenter;
......
......@@ -41,8 +41,6 @@ public:
*/
std::string getName() const;
virtual std::string printSelf() const;
/**
* Set the XdmfAttributeCenter associated with this attribute.
*
......
......@@ -29,11 +29,6 @@ boost::shared_ptr<const XdmfArray> XdmfDataItem::getArray() const
return mArray;
}
std::string XdmfDataItem::printSelf() const
{
return "XdmfDataItem";
}
void XdmfDataItem::setArray(boost::shared_ptr<XdmfArray> array)
{
mArray = array;
......
......@@ -31,8 +31,6 @@ public:
*/
boost::shared_ptr<const XdmfArray> getArray() const;
std::string printSelf() const;
/**
* Attach an XdmfArray to this XdmfDataItem.
*
......
......@@ -54,11 +54,6 @@ unsigned int XdmfDomain::getNumberOfGrids() const
return mGrids.size();
}
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)
......
......@@ -52,8 +52,6 @@ public:
*/
unsigned int getNumberOfGrids() const;
virtual std::string printSelf() const;
virtual void traverse(boost::shared_ptr<XdmfVisitor> visitor) const;
protected:
......
......@@ -30,11 +30,6 @@ XdmfGeometryType XdmfGeometry::getGeometryType() const
return mGeometryType;
}
std::string XdmfGeometry::printSelf() const
{
return "XdmfGeometry";
}
void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType)
{
mGeometryType = geometryType;
......
......@@ -34,8 +34,6 @@ public:
*/
void setGeometryType(const XdmfGeometryType & geometryType);
virtual std::string printSelf() const;
protected:
XdmfGeometry();
......
......@@ -85,11 +85,6 @@ void XdmfGrid::insert(boost::shared_ptr<XdmfAttribute> 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)
{
mGeometry = geometry;
......
......@@ -90,8 +90,6 @@ public:
*/
void insert(boost::shared_ptr<XdmfAttribute> attribute);
virtual std::string printSelf() const;
/**
* Set the XdmfGeometry associated with this grid.
*
......
......@@ -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 @@
// Includes
#include "boost/shared_ptr.hpp"
#include <iostream>
#include <ostream>
#define XdmfNewMacro(type) \
template <typename T> friend void boost::checked_delete(T * x); \
......@@ -23,8 +22,6 @@ class XdmfObject {
public:
virtual std::string printSelf() const = 0;
protected:
XdmfObject();
......@@ -32,6 +29,4 @@ protected:
};
std::ostream& operator<<(std::ostream& out, const XdmfObject& ob);
#endif /* XDMFOBJECT_HPP_ */
......@@ -36,11 +36,6 @@ XdmfTopologyType XdmfTopology::getTopologyType() const
return mTopologyType;
}
std::string XdmfTopology::printSelf() const
{
return "XdmfTopology";
}
void XdmfTopology::setTopologyType(const XdmfTopologyType & topologyType)
{
mTopologyType = topologyType;
......
......@@ -34,8 +34,6 @@ public:
*/
XdmfTopologyType getTopologyType() const;
virtual std::string printSelf() const;
/**
* Set the XdmfTopologyType associated with this topology.
*
......
......@@ -162,11 +162,6 @@ void XdmfVisitor::visit(const XdmfTopology * const topology, boost::shared_ptr<X
xmlCurrentNode = parentNode;
}
std::string XdmfVisitor::printSelf() const
{
return "XdmfVisitor";
}
unsigned int XdmfVisitor::getLightDataLimit() const
{
return mLightDataLimit;
......
......@@ -36,8 +36,6 @@ public:
*/
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.
*
......
......@@ -13,7 +13,5 @@ int main(int argc, char* argv[])
domain->insert(grid);
domain->accept(visitor);
std::cout << visitor->printSelf() << std::endl;
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