virtual ~SGRawValueFunctions () {}
virtual T getValue () const {
if (_getter) return (*_getter)();
- else return DefaultValue;
+ else return SGRawValue<T>::DefaultValue;
}
virtual bool setValue (T value) {
if (_setter) { (*_setter)(value); return true; }
virtual ~SGRawValueFunctionsIndexed () {}
virtual T getValue () const {
if (_getter) return (*_getter)(_index);
- else return DefaultValue;
+ else return SGRawValue<T>::DefaultValue;
}
virtual bool setValue (T value) {
if (_setter) { (*_setter)(_index, value); return true; }
virtual ~SGRawValueMethods () {}
virtual T getValue () const {
if (_getter) { return (_obj.*_getter)(); }
- else { return DefaultValue; }
+ else { return SGRawValue<T>::DefaultValue; }
}
virtual bool setValue (T value) {
if (_setter) { (_obj.*_setter)(value); return true; }
virtual ~SGRawValueMethodsIndexed () {}
virtual T getValue () const {
if (_getter) { return (_obj.*_getter)(_index); }
- else { return DefaultValue; }
+ else { return SGRawValue<T>::DefaultValue; }
}
virtual bool setValue (T value) {
if (_setter) { (_obj.*_setter)(_index, value); return true; }