summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/modelPartsTypes.impl.h6
-rw-r--r--slicer/tool/parser.cpp7
2 files changed, 6 insertions, 7 deletions
diff --git a/slicer/slicer/modelPartsTypes.impl.h b/slicer/slicer/modelPartsTypes.impl.h
index 98dba9d..76b71dc 100644
--- a/slicer/slicer/modelPartsTypes.impl.h
+++ b/slicer/slicer/modelPartsTypes.impl.h
@@ -399,6 +399,12 @@ namespace Slicer {
}
template<typename T>
+ ModelPartPtr ModelPartForSequence<T>::elementModelPart(typename T::value_type & e) const
+ {
+ return ModelPart::CreateFor(e);
+ }
+
+ template<typename T>
ModelPartPtr ModelPartForSequence<T>::GetContainedModelPart()
{
return ModelPart::CreateFor<typename T::value_type>();
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index bc8c0ef..a2fc81b 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -370,13 +370,6 @@ namespace Slicer {
fprintbf(cpp, "\treturn GetAnonChildRef(flt);\n}\n\n");
fprintbf(cpp, "template<> DLL_PUBLIC\n");
- fprintbf(cpp, "ModelPartPtr\n");
- fprintbf(cpp, "ModelPartForSequence< %s >::elementModelPart(typename %s::value_type & e) const {\n",
- s->scoped(),
- s->scoped());
- fprintbf(cpp, "\treturn ModelPart::CreateFor(e);\n}\n\n");
-
- fprintbf(cpp, "template<> DLL_PUBLIC\n");
auto ename = metaDataValue("slicer:element:", s->getMetaData());
fprintbf(cpp, "const std::string ModelPartForSequence< %s >::elementName(\"%s\");\n\n",
s->scoped(),