| 
    HDK
    
   | 
 
The class template for typed subclasses of Value. More...
#include <Value.h>
 Inheritance diagram for TypedValue< T >:Public Member Functions | |
| TypedValue () | |
| TypedValue (const T &value) | |
| virtual | ~TypedValue () | 
| ValuePtr | copy () const override | 
| Create a deep copy of the value.  More... | |
| void | setData (const T &value) | 
| Set stored data object.  More... | |
| void | setData (const TypedValue< T > &value) | 
| Set stored data object.  More... | |
| const T & | getData () const | 
| Return stored data object.  More... | |
| const string & | getTypeString () const override | 
| Return type string.  More... | |
| string | getValueString () const override | 
| Return value string.  More... | |
  Public Member Functions inherited from Value | |
| Value () | |
| virtual | ~Value () | 
| template<class T > | |
| bool | isA () const | 
| Return true if this value is of the given type.  More... | |
| template<class T > | |
| const T & | asA () const | 
Static Public Member Functions | |
| static ValuePtr | createFromString (const string &value) | 
  Static Public Member Functions inherited from Value | |
| template<class T > | |
| static ValuePtr | createValue (const T &data) | 
| Create a new value from an object of any valid MaterialX type.  More... | |
| static ValuePtr | createValue (const char *data) | 
| static ValuePtr | createValueFromStrings (const string &value, const string &type, ConstTypeDefPtr typeDef=nullptr) | 
| static void | setFloatFormat (FloatFormat format) | 
| static void | setFloatPrecision (int precision) | 
| Set float precision for converting values to strings.  More... | |
| static FloatFormat | getFloatFormat () | 
| Return the current float format.  More... | |
| static int | getFloatPrecision () | 
| Return the current float precision.  More... | |
Static Public Attributes | |
| static const string | TYPE | 
Additional Inherited Members | |
  Public Types inherited from Value | |
| enum | FloatFormat { FloatFormatDefault = 0, FloatFormatFixed = 1, FloatFormatScientific = 2 } | 
| Float formats to use when converting values to strings.  More... | |
  Protected Types inherited from Value | |
| using | CreatorFunction = ValuePtr(*)(const string &) | 
| Return true if this value is of the given type.  More... | |
| using | CreatorMap = std::unordered_map< string, CreatorFunction > | 
| Return true if this value is of the given type.  More... | |
The class template for typed subclasses of Value.
      
  | 
  inline | 
      
  | 
  inlineexplicit | 
      
  | 
  inlinevirtual | 
      
  | 
  inlineoverridevirtual | 
      
  | 
  static | 
Create a new value of this type from a value string.
      
  | 
  inline | 
      
  | 
  overridevirtual | 
Return type string.
Implements Value.
      
  | 
  overridevirtual | 
Return value string.
Implements Value.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  static |