## 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 ref-_duplicate().

    CORBA_REF *operator= (CORBA_REF *ref);

Assignment performs a 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 ref_-_release

## PRIVATE MEMBERS

    CORBA_REF *ref_;

## AUTHOR

Irfan Pyarali (irfan@wuerl.wustl.edu). Tim Harrison (harrison@cs.wustl.edu)

## LIBRARY

ace