Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

Smart class that automatically increases the number of limited callers of the given VirtualBoxBase object when an instance is constructed and decreases it back when the created instance goes out of scope (i.e. gets destroyed).

A typical usage pattern to declare a limited method of some object (i.e. a method that is valid even if the object doesn't provide its full functionality) is: STDMETHODIMP Component::Bar() { AutoLimitedCaller autoCaller (this); CheckComRCReturnRC (autoCaller.rc()); ...

Using this class is equivalent to using the AutoCallerBase template with the aLimited argument set to |true|, but this class is preferred because provides better self-descriptiveness.

See AutoCallerBase for more information about auto caller functionality.

Definition at line 840 of file VirtualBoxBase.h.


Generated by  Doxygen 1.6.0   Back to index