System::ObjectExt::Unbox method
Contents
[
Hide
]ObjectExt::Unbox(const SmartPtr<Object>&) method
Unboxes value types after converting to Object. Implementation for enum types.
template<typename T> static std::enable_if<std::is_enum<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
Parameter | Description |
---|---|
T | Enum type. |
Parameter | Type | Description |
---|---|---|
obj | const SmartPtr<Object>& | Object to unbox. |
ReturnValue
Enum value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.PDF for C++
ObjectExt::Unbox(const SmartPtr<Object>&) method
Unboxes value types after converting to Object. Implementation for non-enum & non-nullable types.
template<class T> static std::enable_if<!std::is_enum<T>::value &&detail::has_operator_equal<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
Parameter | Description |
---|---|
T | Value type. |
Parameter | Type | Description |
---|---|---|
obj | const SmartPtr<Object>& | Object to unbox. |
ReturnValue
Unboxed value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.PDF for C++
ObjectExt::Unbox(const SmartPtr<Object>&) method
Unboxes value types after converting to Object. Implementation for non-enum & non-nullable types.
template<class T> static std::enable_if<!std::is_enum<T>::value &&!detail::has_operator_equal<T>::value, T>::type System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
Parameter | Description |
---|---|
T | Value type. |
Parameter | Type | Description |
---|---|---|
obj | const SmartPtr<Object>& | Object to unbox. |
ReturnValue
Unboxed value.
See Also
- Class SmartPtr
- Class Object
- Class ObjectExt
- Namespace System
- Library Aspose.PDF for C++
ObjectExt::Unbox(const SmartPtr<Object>&) method
Unboxes string values.
String System::ObjectExt::Unbox(const SmartPtr<Object> &obj)
Parameter | Type | Description |
---|---|---|
obj | const SmartPtr<Object>& | Object to unbox |
ReturnValue
String representation of boxed string, can be null if boxed string was null.
See Also
ObjectExt::Unbox(E) method
Unboxes enum types to integer.
template<class T,class E> static std::enable_if<std::is_enum<E>::value &&std::numeric_limits<T>::is_integer, T>::type System::ObjectExt::Unbox(E e)
Parameter | Description |
---|---|
T | Destination integer type. |
E | Source enum type. |
Parameter | Type | Description |
---|---|---|
e | E | Value to unbox. |
ReturnValue
Integer representation of enum.
See Also
- Class ObjectExt
- Namespace System
- Library Aspose.PDF for C++
ObjectExt::Unbox(E) method
Converts enum types.
template<class T,class E> static std::enable_if<std::is_enum<E>::value &&std::is_enum<T>::value, T>::type System::ObjectExt::Unbox(E e)
Parameter | Description |
---|---|
T | Destination enum type. |
E | Source enum type. |
Parameter | Type | Description |
---|---|---|
e | E | Value to unbox. |
ReturnValue
Converted enum value.
See Also
- Class ObjectExt
- Namespace System
- Library Aspose.PDF for C++