Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
305ffbca
Commit
305ffbca
authored
Jun 30, 2010
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Make ItemTag const so it is cannot be modified.
parent
cb10378a
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
16 additions
and
25 deletions
+16
-25
XdmfAttribute.cpp
XdmfAttribute.cpp
+1
-1
XdmfAttribute.hpp
XdmfAttribute.hpp
+1
-1
XdmfDomain.cpp
XdmfDomain.cpp
+1
-1
XdmfDomain.hpp
XdmfDomain.hpp
+1
-1
XdmfGeometry.cpp
XdmfGeometry.cpp
+1
-1
XdmfGeometry.hpp
XdmfGeometry.hpp
+1
-1
XdmfGrid.cpp
XdmfGrid.cpp
+1
-1
XdmfGrid.hpp
XdmfGrid.hpp
+1
-1
XdmfGridCollection.cpp
XdmfGridCollection.cpp
+1
-1
XdmfGridCollection.hpp
XdmfGridCollection.hpp
+1
-1
XdmfSet.cpp
XdmfSet.cpp
+1
-1
XdmfSet.hpp
XdmfSet.hpp
+1
-1
XdmfTopology.cpp
XdmfTopology.cpp
+1
-1
XdmfTopology.hpp
XdmfTopology.hpp
+1
-1
core/XdmfArray.cpp
core/XdmfArray.cpp
+1
-1
core/XdmfArray.hpp
core/XdmfArray.hpp
+1
-1
core/tests/Cxx/CMakeLists.txt
core/tests/Cxx/CMakeLists.txt
+0
-1
core/tests/Cxx/TestXdmfDataItem.cpp
core/tests/Cxx/TestXdmfDataItem.cpp
+0
-8
No files found.
XdmfAttribute.cpp
View file @
305ffbca
...
...
@@ -22,7 +22,7 @@ XdmfAttribute::~XdmfAttribute()
std
::
cout
<<
"Deleted Attribute "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfAttribute
::
ItemTag
=
"Attribute"
;
const
std
::
string
XdmfAttribute
::
ItemTag
=
"Attribute"
;
boost
::
shared_ptr
<
const
XdmfAttributeCenter
>
XdmfAttribute
::
getAttributeCenter
()
const
{
...
...
XdmfAttribute.hpp
View file @
305ffbca
...
...
@@ -22,7 +22,7 @@ public:
virtual
~
XdmfAttribute
();
LOKI_DEFINE_VISITABLE
(
XdmfAttribute
,
XdmfDataItem
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Get the XdmfAttributeCenter associated with this attribute.
...
...
XdmfDomain.cpp
View file @
305ffbca
...
...
@@ -18,7 +18,7 @@ XdmfDomain::~XdmfDomain()
std
::
cout
<<
"Deleted Domain "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfDomain
::
ItemTag
=
"Domain"
;
const
std
::
string
XdmfDomain
::
ItemTag
=
"Domain"
;
void
XdmfDomain
::
insert
(
const
boost
::
shared_ptr
<
XdmfGrid
>
grid
)
{
...
...
XdmfDomain.hpp
View file @
305ffbca
...
...
@@ -21,7 +21,7 @@ public:
virtual
~
XdmfDomain
();
LOKI_DEFINE_VISITABLE
(
XdmfDomain
,
XdmfItem
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Get a XdmfGrid attached to the domain.
...
...
XdmfGeometry.cpp
View file @
305ffbca
...
...
@@ -21,7 +21,7 @@ XdmfGeometry::~XdmfGeometry()
std
::
cout
<<
"Deleted Geometry "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfGeometry
::
ItemTag
=
"Geometry"
;
const
std
::
string
XdmfGeometry
::
ItemTag
=
"Geometry"
;
boost
::
shared_ptr
<
const
XdmfGeometryType
>
XdmfGeometry
::
getGeometryType
()
const
{
...
...
XdmfGeometry.hpp
View file @
305ffbca
...
...
@@ -22,7 +22,7 @@ public:
virtual
~
XdmfGeometry
();
LOKI_DEFINE_VISITABLE
(
XdmfGeometry
,
XdmfDataItem
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Get the XdmfGeometryType associated with this geometry.
...
...
XdmfGrid.cpp
View file @
305ffbca
...
...
@@ -24,7 +24,7 @@ XdmfGrid::~XdmfGrid()
std
::
cout
<<
"Deleted Grid "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfGrid
::
ItemTag
=
"Grid"
;
const
std
::
string
XdmfGrid
::
ItemTag
=
"Grid"
;
boost
::
shared_ptr
<
XdmfAttribute
>
XdmfGrid
::
getAttribute
(
const
unsigned
int
index
)
{
...
...
XdmfGrid.hpp
View file @
305ffbca
...
...
@@ -26,7 +26,7 @@ public:
virtual
~
XdmfGrid
();
LOKI_DEFINE_VISITABLE
(
XdmfGrid
,
XdmfItem
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Get an XdmfAttribute attached to this grid.
...
...
XdmfGridCollection.cpp
View file @
305ffbca
...
...
@@ -20,7 +20,7 @@ XdmfGridCollection::~XdmfGridCollection()
std
::
cout
<<
"Deleted Collection "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfGridCollection
::
ItemTag
=
"Grid"
;
const
std
::
string
XdmfGridCollection
::
ItemTag
=
"Grid"
;
boost
::
shared_ptr
<
XdmfGrid
>
XdmfGridCollection
::
getGrid
(
const
unsigned
int
index
)
{
...
...
XdmfGridCollection.hpp
View file @
305ffbca
...
...
@@ -23,7 +23,7 @@ public:
virtual
~
XdmfGridCollection
();
LOKI_DEFINE_VISITABLE
(
XdmfGridCollection
,
XdmfGrid
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Get a grid from this collection.
...
...
XdmfSet.cpp
View file @
305ffbca
...
...
@@ -20,7 +20,7 @@ XdmfSet::~XdmfSet()
std
::
cout
<<
"Deleted Set "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfSet
::
ItemTag
=
"Set"
;
const
std
::
string
XdmfSet
::
ItemTag
=
"Set"
;
std
::
string
XdmfSet
::
getName
()
const
{
...
...
XdmfSet.hpp
View file @
305ffbca
...
...
@@ -23,7 +23,7 @@ public:
virtual
~
XdmfSet
();
LOKI_DEFINE_VISITABLE
(
XdmfSet
,
XdmfDataItem
)
static
std
::
string
ItemTag
;
const
static
std
::
string
ItemTag
;
/**
* Get the XdmfSetType associated with this set.
...
...
XdmfTopology.cpp
View file @
305ffbca
...
...
@@ -22,7 +22,7 @@ XdmfTopology::~XdmfTopology()
std
::
cout
<<
"Deleted Topology "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfTopology
::
ItemTag
=
"Topology"
;
const
std
::
string
XdmfTopology
::
ItemTag
=
"Topology"
;
std
::
string
XdmfTopology
::
getItemTag
()
const
{
...
...
XdmfTopology.hpp
View file @
305ffbca
...
...
@@ -22,7 +22,7 @@ public:
virtual
~
XdmfTopology
();
LOKI_DEFINE_VISITABLE
(
XdmfTopology
,
XdmfDataItem
)
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
std
::
map
<
std
::
string
,
std
::
string
>
getItemProperties
()
const
;
...
...
core/XdmfArray.cpp
View file @
305ffbca
...
...
@@ -319,7 +319,7 @@ XdmfArray::~XdmfArray()
std
::
cout
<<
"Deleted Array "
<<
this
<<
std
::
endl
;
}
std
::
string
XdmfArray
::
ItemTag
=
"DataItem"
;
const
std
::
string
XdmfArray
::
ItemTag
=
"DataItem"
;
void
XdmfArray
::
clear
()
{
...
...
core/XdmfArray.hpp
View file @
305ffbca
...
...
@@ -54,7 +54,7 @@ public:
LOKI_DEFINE_VISITABLE
(
XdmfArray
,
XdmfItem
)
friend
class
XdmfHDF5Writer
;
static
std
::
string
ItemTag
;
static
const
std
::
string
ItemTag
;
/**
* Copy values from an XdmfArray into this array.
...
...
core/tests/Cxx/CMakeLists.txt
View file @
305ffbca
set
(
XdmfCoreCxxTests
TestXdmfArray
TestXdmfArrayWriteRead
TestXdmfDataItem
TestXdmfHDF5Writer
)
...
...
core/tests/Cxx/TestXdmfDataItem.cpp
deleted
100644 → 0
View file @
cb10378a
#include "XdmfDataItem.hpp"
int
main
(
int
argc
,
char
*
argv
[])
{
//boost::shared_ptr<XdmfDataItem> dataItem = XdmfDataItem::New();
//int intArray[10] = {1,2,3,4,5,6,7,8,9,10};
//dataItem->setValues(intArray);
}
Write
Preview
Markdown
is supported
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