Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CrayzeeWulf
Xdmf
Commits
48eedaab
Commit
48eedaab
authored
Apr 30, 2010
by
Kenneth Leiter
Browse files
ENH: Remove printSelf() method as it was unnecessary.
parent
b1ff8b8a
Changes
19
Hide whitespace changes
Inline
Side-by-side
XdmfArray.cpp
View file @
48eedaab
...
...
@@ -546,11 +546,6 @@ void XdmfArray::internalizeArrayPointer()
}
}
std
::
string
XdmfArray
::
printSelf
()
const
{
return
""
;
}
void
XdmfArray
::
releaseArray
()
{
boost
::
shared_ptr
<
std
::
vector
<
char
>
>
emptyArray
;
...
...
XdmfArray.hpp
View file @
48eedaab
...
...
@@ -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.
*/
...
...
XdmfAttribute.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfAttribute.hpp
View file @
48eedaab
...
...
@@ -41,8 +41,6 @@ public:
*/
std
::
string
getName
()
const
;
virtual
std
::
string
printSelf
()
const
;
/**
* Set the XdmfAttributeCenter associated with this attribute.
*
...
...
XdmfDataItem.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfDataItem.hpp
View file @
48eedaab
...
...
@@ -31,8 +31,6 @@ public:
*/
boost
::
shared_ptr
<
const
XdmfArray
>
getArray
()
const
;
std
::
string
printSelf
()
const
;
/**
* Attach an XdmfArray to this XdmfDataItem.
*
...
...
XdmfDomain.cpp
View file @
48eedaab
...
...
@@ -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
)
...
...
XdmfDomain.hpp
View file @
48eedaab
...
...
@@ -52,8 +52,6 @@ public:
*/
unsigned
int
getNumberOfGrids
()
const
;
virtual
std
::
string
printSelf
()
const
;
virtual
void
traverse
(
boost
::
shared_ptr
<
XdmfVisitor
>
visitor
)
const
;
protected:
...
...
XdmfGeometry.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfGeometry.hpp
View file @
48eedaab
...
...
@@ -34,8 +34,6 @@ public:
*/
void
setGeometryType
(
const
XdmfGeometryType
&
geometryType
);
virtual
std
::
string
printSelf
()
const
;
protected:
XdmfGeometry
();
...
...
XdmfGrid.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfGrid.hpp
View file @
48eedaab
...
...
@@ -90,8 +90,6 @@ public:
*/
void
insert
(
boost
::
shared_ptr
<
XdmfAttribute
>
attribute
);
virtual
std
::
string
printSelf
()
const
;
/**
* Set the XdmfGeometry associated with this grid.
*
...
...
XdmfObject.cpp
View file @
48eedaab
...
...
@@ -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
;
}
XdmfObject.hpp
View file @
48eedaab
...
...
@@ -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_ */
XdmfTopology.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfTopology.hpp
View file @
48eedaab
...
...
@@ -34,8 +34,6 @@ public:
*/
XdmfTopologyType
getTopologyType
()
const
;
virtual
std
::
string
printSelf
()
const
;
/**
* Set the XdmfTopologyType associated with this topology.
*
...
...
XdmfVisitor.cpp
View file @
48eedaab
...
...
@@ -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
;
...
...
XdmfVisitor.hpp
View file @
48eedaab
...
...
@@ -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.
*
...
...
tests/Cxx/TestXdmfVisitor.cpp
View file @
48eedaab
...
...
@@ -13,7 +13,5 @@ int main(int argc, char* argv[])
domain
->
insert
(
grid
);
domain
->
accept
(
visitor
);
std
::
cout
<<
visitor
->
printSelf
()
<<
std
::
endl
;
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment