---
name: "ACE_CORBA_Ref"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_CORBA_Ref"
---

# 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 (irfan@wuerl.wustl.edu). Tim Harrison (harrison@cs.wustl.edu)

## LIBRARY

ace
