ASN1C C/C++ Common Runtime
ASN1C v7.7.x
|
#include <OSRTContext.h>
Public Member Functions | |
OSRTCtxtPtr (OSRTContext *rf=0) | |
OSRTCtxtPtr (const OSRTCtxtPtr &o) | |
virtual | ~OSRTCtxtPtr () |
OSRTCtxtPtr & | operator= (const OSRTCtxtPtr &rf) |
OSRTCtxtPtr & | operator= (OSRTContext *rf) |
operator OSRTContext * () | |
operator const OSRTContext * () const | |
OSRTContext * | operator-> () |
const OSRTContext * | operator-> () const |
OSBOOL | operator== (const OSRTContext *o) const |
OSBOOL | isNull () const |
OSCTXT * | getCtxtPtr () |
Protected Attributes | |
OSRTContext * | mPointer |
Context reference counted pointer class. This class allows a context object to automatically be released when its reference count goes to zero. It is very similar to the standard C++ library auto_ptr smart pointer class but only works with an OSRTContext object.
|
inline |
This constructor set the internal context pointer to the given value and, if it is non-zero, increases the reference count by one.
rf | - Pointer to OSRTContext object |
References OSRTContext::_ref().
|
inline |
The copy constructor copies the pointer from the source pointer object and, if it is non-zero, increases the reference count by one.
o | - Reference to OSRTCtxtPtr object to be copied |
References OSRTContext::_ref().
|
inlinevirtual |
The destructor decrements the reference counter to the internal context pointer object. The context object will delete itself if its reference count goes to zero.
References OSRTContext::_unref().
|
inline |
This method returns the standard context pointer used in C function calls.
References OSRTContext::getPtr().
|
inline |
The isNull method returns TRUE if the underlying context pointer is NULL.
Referenced by ASN1CType::getCtxtPtr(), ASN1CType::getStatus(), ASN1CType::memAlloc(), ASN1CType::memAllocZ(), ASN1CType::memFreeAll(), ASN1CType::memFreePtr(), ASN1CType::memRealloc(), ASN1CType::memReset(), ASN1CType::printErrorInfo(), ASN1CType::resetError(), and ASN1TPDU::setContext().
|
inline |
The 'OSRTContext*' operator returns the context object pointer.
|
inline |
The '->' operator returns the context object pointer.
|
inline |
This assignment operator assigns this OSRTCtxtPtr to another. The reference count of the context object managed by this object is first decremented. Then the new pointer is assigned and that object's reference count is incremented.
rf | - Pointer to OSRTCtxtPtr smart-pointer object |
References OSRTContext::_ref(), OSRTContext::_unref(), and mPointer.
|
inline |
This assignment operator assigns does a direct assignment of an OSRTContext object to this OSRTCtxtPtr object.
References OSRTContext::_ref(), and OSRTContext::_unref().
|
inline |
The '==' operator compares two OSRTContext pointer values.
|
protected |
The mPointer member variable is a pointer to a reference-counted ASN.1 context wrapper class object.
Referenced by operator=().