Difference between revisions of "Uno/Cpp/Spec/FreeReference"

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
(Renamed to FreeReference.)
m (Dependencies: Added links.)
Line 36: Line 36:
* C++ uno::Environment
* [[Uno/Cpp/Spec/Environment]]
* Stacked Environments
* [[Uno/Cpp/Spec/Environment Stack]]

Revision as of 13:05, 30 June 2006

State: draft
Type: specification

Free Reference


A free reference. Ensuring that the owning environment has always been entered when calling an object.



  template<class T> FreeReference
    FreeReference() {}
    FreeReference(cssuno::Reference<T> const & xRef)
    FreeReference(EnvAwareReference<T> const & rOther)

    cssuno::Reference<T> get() const throw (cssuno::RuntimeException)

    operator cssuno::Reference<T> () const throw (cssuno::RuntimeException)

    T * operator -> () const throw (cssuno::RuntimeException)

    bool is() const throw (cssuno::RuntimeException)

    void clear()

    FreeReference<T> & operator = (FreeReference<T> const & rOther)

    void set(cssuno::Reference<T> const & xRef)

    bool operator == (FreeReference const & rOther) const

    bool operator != (FreeReference const & rOther) const


Personal tools