System::SmartPtrInfo class
Contents
[
Hide
]SmartPtrInfo class
Service class to test and alter SmartPtr’s contents without knowing final type. Used for garbage collection and loop references detection, etc. Think of it as of ‘pointer to pointer’. We can’t use SmartPtr’s basetype as it doesn’t have any; instead, we use this ‘info’ class.
class SmartPtrInfo
Methods
Method | Description |
---|---|
getInternalPtr() const | Gets raw object referenced pointer points to. |
getObject() const | Gets object referenced pointer points to. |
getOwned() const | Gets object owned pointer. |
operator bool() const | Checks if info object points to non-null pointer. |
operator!() const | Checks if info object does not point to non-null pointer. |
operator->() const | Allows to call methods of Object pointed by the referenced pointer. |
operator<(const SmartPtrInfo&) const | Less-compares values of pointers referenced by two info objects. |
SmartPtrInfo() | Creates empty SmartPtrInfo object. |
explicit SmartPtrInfo(const SmartPtr<T>&) | Creates SmartPtrInfo object with information on specific smart pointer. |
See Also
- Namespace System
- Library Aspose.PDF for C++