ACE_CORBA_Ref(3)

ACE_CORBA_Ref3

A wrapper for helping with orbix object references.

Usage

#include <ace/CORBA_Ref.h>
template<class CORBA_REF>
class ACE_CORBA_Ref
{
  public:
    ACE_CORBA_Ref (void);
    ACE_CORBA_Ref (CORBA_REF *ref);
    CORBA_REF *operator= (CORBA_REF *ref);
    operator CORBA_REF *(void) const;
    CORBA_REF *operator-> (void) const;
    int operator== (CORBA_REF *) const;
    int operator!= (CORBA_REF *) const;
    ~ACE_CORBA_Ref (void);
  private:
    CORBA_REF *ref_;
};

Overview

A wrapper for helping with Orbix object references.

Public members

ACE_CORBA_Ref (void);

Null construction.

ACE_CORBA_Ref (CORBA_REF *ref);

Contruction with an orbix ref. performs a CORBA_REF::_duplicate.

CORBA_REF *operator= (CORBA_REF *ref);

Assignment performs a CORBA_REF::_duplicate.

operator CORBA_REF *(void) const;

Type operator

CORBA_REF *operator-> (void) const;

Smart pointer to forward all CORBA_REF calls to the underlying Orbix reference.

int operator== (CORBA_REF *) const;

Pointer comparison.

int operator!= (CORBA_REF *) const;

Pointer comparison.

~ACE_CORBA_Ref (void);

Destruction: calls CORBA_REF::_release.

Private members

CORBA_REF *ref_;

Library

ace