10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ref Class<br />

operator=()<br />

ptr()<br />

Parameters<br />

ref<br />

The Ref object of the object to be compared.<br />

Assigns the ref or the object to a ref. For the first case, the refs are assigned and for<br />

the second case, the ref is constructed from the object and then assigned.<br />

Syntax<br />

There are variants of syntax:<br />

Ref& operator=(const Ref &src);<br />

Ref& operator=(const T *obj);<br />

Parameters<br />

src<br />

The source Ref object to be assigned.<br />

obj<br />

The source object pointer whose Ref object is to be assigned.<br />

This operator dereferences the Ref and pins/fetches the object if necessary. This<br />

might result in prefetching a graph of objects if prefetch attributes of the Ref are set.<br />

Syntax<br />

There are variants of syntax:<br />

T * ptr();<br />

const T * ptr() const;<br />

8-136 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!