Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

OSContext Class Reference

Reference counted context class. More...

#include <rtxCppContext.h>

List of all members.

Public Member Functions

 OSContext ()
 The default constructor initializes the mCtxt member variable and sets the reference count variable (mCount) to zero.

 ~OSContext ()
 The destructor frees all memory held by the context.

OSCTXTgetPtr ()
 The getPtr method returns a pointer to the mCtxt member variable.

OSUINT32 getRefCount ()
 The getRefCount method returns the current reference count.

void _ref ()
 The _ref method increases the reference count by one.

void _unref ()
 The _unref method decreases the reference count by one.


Protected Attributes

OSCTXT mCtxt
 The mCtxt member variable is a standard C runtime context variable used in most C runtime function calls.

OSUINT32 mCount
 The mCount member variable holds the reference count of this context.


Detailed Description

Reference counted context class.

This keeps track of all encode/decode function variables between function invocations. It is reference counted to allow a message buffer and type class to share access to it.

Definition at line 38 of file rtxCppContext.h.


Member Function Documentation

OSCTXT* OSContext::getPtr  )  [inline]
 

The getPtr method returns a pointer to the mCtxt member variable.

A user can use this function to get the the context pointer variable for use in a C runtime function call.

Definition at line 70 of file rtxCppContext.h.


The documentation for this class was generated from the following file:

This file was last modified on 1 Jun 2004.
XBinder, Version 1.0.0