#include <parametertype.h>
◆ FLAGS
Enumerator |
---|
NONE | |
INPUT | |
OUTPUT | |
EXPLICIT_INPUT_OUTPUT | |
◆ ParameterType()
◆ MAXON_ENUM_FLAGS_CLASS()
◆ GetType()
◆ GetTypeForData()
const DataType& GetTypeForData |
( |
| ) |
const |
Returns the DataType which is suitable to store a value for the parameter in a Data object. The exact parameter type is not always directly usable for a Data object. For example, the parameter type could be StringInterface* or BaseArray<Int>, but Data only works with String and Array<Int>. Therefore, a suitable DataType is derived from the parameter type as follows:
- At first, pointer or reference classes are removed from the type as often as possible.
- Then, if the resulting type is a BaseArray or Block type, replace it by the corresponding ArrayInterface type.
- ConstDataPtr, DataPtr or an ArrayInterface thereof is replaced by Data or ArrayInterface<Data>, respectively.
- Finally, if the resulting type is an interface type, use the reference class of that interface.
So StringInterface, StringInterface*, StringInterface**, String or String* are all mapped to String, and BaseArray<Int>, BaseArray<Int>* or Block<Int> are mapped to Array<Int>.
- Returns
- A DataType which can be used for a Data object to store values for the parameter.
◆ GetFlags()
◆ ToString()
◆ Get()
◆ ToData()
Result<Data> ToData |
( |
const Generic & |
value | ) |
const |
◆ MoveFromData()
◆ _type
◆ _typeForData
◆ _flags