summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/modelPartsTypes.impl.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/slicer/slicer/modelPartsTypes.impl.h b/slicer/slicer/modelPartsTypes.impl.h
index 0ded2a2..c8407c9 100644
--- a/slicer/slicer/modelPartsTypes.impl.h
+++ b/slicer/slicer/modelPartsTypes.impl.h
@@ -350,6 +350,26 @@ namespace Slicer {
return metadata;
}
+ template<typename T>
+ T ModelPartForEnum<T>::lookup(const std::string & val)
+ {
+ auto i = enumerations.right.find(val);
+ if (i == enumerations.right.end()) {
+ throw InvalidEnumerationSymbol(val, typeid(T).name());
+ }
+ return i->second;
+ }
+
+ template<typename T>
+ const std::string & ModelPartForEnum<T>::lookup(T val)
+ {
+ auto i = enumerations.left.find(val);
+ if (i == enumerations.left.end()) {
+ throw InvalidEnumerationValue((::Ice::Int)val, typeid(T).name());
+ }
+ return i->second;
+ }
+
// ModelPartForSequence
template<typename T>
ModelPartForSequence<T>::ModelPartForSequence(T * s) :
@@ -380,26 +400,6 @@ namespace Slicer {
return metadata;
}
- template<typename T>
- T ModelPartForEnum<T>::lookup(const std::string & val)
- {
- auto i = enumerations.right.find(val);
- if (i == enumerations.right.end()) {
- throw InvalidEnumerationSymbol(val, typeid(T).name());
- }
- return i->second;
- }
-
- template<typename T>
- const std::string & ModelPartForEnum<T>::lookup(T val)
- {
- auto i = enumerations.left.find(val);
- if (i == enumerations.left.end()) {
- throw InvalidEnumerationValue((::Ice::Int)val, typeid(T).name());
- }
- return i->second;
- }
-
// ModelPartForDictionaryElementInserter
template<typename T>
ModelPartForDictionaryElementInserter<T>::ModelPartForDictionaryElementInserter(T * d) :