Reference

ACE_CORBA_Ref(3)

A wrapper for helping with Orbix object references.

NAME

ACE_CORBA_Ref - A wrapper for helping with Orbix object references.

SYNOPSIS

#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_;
};

DESCRIPTION

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_;

AUTHOR

Irfan Pyarali ([email protected]). Tim Harrison ([email protected])

LIBRARY

ace