LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
|
Template reference class for reference type. More...
#include <ref.hxx>
Public Member Functions | |
Reference () | |
Constructor... More... | |
Reference (reference_type *pBody, __sal_NoAcquire) | |
Constructor... More... | |
Reference (reference_type *pBody) | |
Constructor... More... | |
Reference (const Reference< reference_type > &handle) | |
Copy constructor... More... | |
~Reference () COVERITY_NOEXCEPT_FALSE | |
Destructor... More... | |
Reference< reference_type > & | set (reference_type *pBody) |
Set... More... | |
Reference< reference_type > & | operator= (const Reference< reference_type > &handle) |
Assignment. More... | |
Reference< reference_type > & | operator= (reference_type *pBody) |
Assignment... More... | |
Reference< reference_type > & | clear () |
Unbind the body from this handle. More... | |
reference_type * | get () const |
Get the body. More... | |
reference_type * | operator-> () const |
Probably most common used: handle->someBodyOp(). More... | |
reference_type & | operator* () const |
Allows (*handle).someBodyOp(). More... | |
bool | is () const |
Returns True if the handle does point to a valid body. More... | |
bool | operator== (const reference_type *pBody) const |
Returns True if this points to pBody. More... | |
bool | operator== (const Reference< reference_type > &handle) const |
Returns True if handle points to the same body. More... | |
bool | operator!= (const Reference< reference_type > &handle) const |
Needed to place References into STL collection. More... | |
bool | operator< (const Reference< reference_type > &handle) const |
Needed to place References into STL collection. More... | |
bool | operator> (const Reference< reference_type > &handle) const |
Needed to place References into STL collection. More... | |
Template reference class for reference type.
|
inline |
Constructor...
|
inline |
Constructor...
|
inline |
Constructor...
|
inline |
Copy constructor...
|
inline |
Destructor...
|
inline |
Unbind the body from this handle.
Note that for a handle representing a large body, "handle.clear().set(new body());" might perform a little bit better than "handle.set(new body());", since in the second case two large objects exist in memory (the old body and the new body).
|
inline |
Get the body.
Can be used instead of operator->(). I.e. handle->someBodyOp() and handle.get()->someBodyOp() are the same.
|
inline |
Returns True if the handle does point to a valid body.
|
inline |
Needed to place References into STL collection.
|
inline |
Allows (*handle).someBodyOp().
|
inline |
Probably most common used: handle->someBodyOp().
|
inline |
Needed to place References into STL collection.
|
inline |
Assignment.
Unbinds this instance from its body (if bound) and bind it to the body represented by the handle.
|
inline |
Assignment...
|
inline |
Returns True if this points to pBody.
|
inline |
Returns True if handle points to the same body.
|
inline |
Needed to place References into STL collection.
|
inline |
Set...
Similar to assignment.