Lines Matching refs:ValueType
41 template<typename ValueType>
42 void parseType (const char* src, ValueType* dst);
54 typedef typename OptName::ValueType ValueType;
55 typedef void (*ParseFunc) (const char* src, ValueType* dst);
65 const NamedValue<ValueType>* namedValues; //!< Named values or null.
66 const NamedValue<ValueType>* namedValuesEnd; //!< Named value list end.
74 , parse (parseType<ValueType>)
93 Option (const char* shortName_, const char* longName_, const char* description_, const NamedValue<ValueType>* namedValues_, const NamedValue<ValueType>* namedValuesEnd_, const char* defaultValue_ = DE_NULL)
106 Option (const char* shortName_, const char* longName_, const char* description_, const NamedValue<ValueType> (&namedValues_)[NumNamedValues], const char* defaultValue_ = DE_NULL)
121 typedef typename Option::ValueType ValueType;
125 template<typename ValueType>
126 inline void getTypeDefault (ValueType* dst)
128 *dst = ValueType();
137 template<class Option> inline bool isBooleanOpt (void) { return isBoolean<typename OptTraits<Option>::ValueType>(); }
152 typedef typename OptTraits<Name>::ValueType ValueType;
171 void set (typename TypedFieldTraits<Name>::ValueType* value);
174 void set (const typename TypedFieldTraits<Name>::ValueType& value);
180 const typename TypedFieldTraits<Name>::ValueType&
208 inline void TypedFieldMap::set (typename TypedFieldTraits<Name>::ValueType* value)
210 set(&typeid(Name), Entry(value, &TypedFieldValueTraits<typename TypedFieldTraits<Name>::ValueType>::destroy));
214 void TypedFieldMap::set (const typename TypedFieldTraits<Name>::ValueType& value)
216 typename TypedFieldTraits<Name>::ValueType* copy = new typename TypedFieldTraits<Name>::ValueType(value);
236 inline const typename TypedFieldTraits<Name>::ValueType& TypedFieldMap::get (void) const
238 return *static_cast<typename TypedFieldTraits<Name>::ValueType*>(get(&typeid(Name)).value);
320 typename OptTraits<OptType>::ValueType* value = new typename OptTraits<OptType>::ValueType();
331 *value = static_cast<const NamedValue<typename OptTraits<OptType>::ValueType>*>(match)->value;
345 typename OptTraits<OptType>::ValueType* value = new typename OptTraits<OptType>::ValueType();
348 getTypeDefault<typename OptTraits<OptType>::ValueType>(value);
361 const NamedValue<typename OptTraits<OptType>::ValueType>* typedVal = static_cast<const NamedValue<typename OptTraits<OptType>::ValueType> >(value);
368 const NamedValue<typename OptTraits<OptType>::ValueType>* typedVal = static_cast<const NamedValue<typename OptTraits<OptType>::ValueType> >(value);
409 const typename TypedFieldTraits<Option>::ValueType&
429 #define DE_DECLARE_COMMAND_LINE_OPT(NAME, TYPE) struct NAME { typedef TYPE ValueType; }