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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
(Renamed to FreeReference.)
Line 2: Line 2:
 
Type:    specification  <br>
 
Type:    specification  <br>
  
==Environment Aware Reference==
+
==Free Reference==
  
 
===Feature===
 
===Feature===
An environment aware reference. Ensuring that the owning environment has always been entered when calling an object.
+
A free reference. Ensuring that the owning environment has always been entered when calling an object.
  
 
===API===
 
===API===
 
<pre>
 
<pre>
  cppu/EnvAwareRef.hxx
+
  cppu/FreeReference.hxx
  
   template<class T> EnvAwareReference
+
   template<class T> FreeReference
     EnvAwareReference() {}
+
     FreeReference() {}
     EnvAwareReference(cssuno::Reference<T> const & xRef)
+
     FreeReference(cssuno::Reference<T> const & xRef)
     EnvAwareReference(EnvAwareReference<T> const & rOther)
+
     FreeReference(EnvAwareReference<T> const & rOther)
  
 
     cssuno::Reference<T> get() const throw (cssuno::RuntimeException)
 
     cssuno::Reference<T> get() const throw (cssuno::RuntimeException)
Line 26: Line 26:
 
     void clear()
 
     void clear()
  
     EnvAwareReference<T> & operator = (EnvAwareReference<T> const & rOther)
+
     FreeReference<T> & operator = (FreeReference<T> const & rOther)
  
 
     void set(cssuno::Reference<T> const & xRef)
 
     void set(cssuno::Reference<T> const & xRef)
  
     bool operator == (EnvAwareReference const & rOther) const
+
     bool operator == (FreeReference const & rOther) const
  
     bool operator != (EnvAwareReference const & rOther) const
+
     bool operator != (FreeReference const & rOther) const
 
</pre>
 
</pre>
  

Revision as of 13:03, 30 June 2006

State: draft
Type: specification

Free Reference

Feature

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

API

 cppu/FreeReference.hxx

  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

Dependencies

  • C++ uno::Environment
  • Stacked Environments
Personal tools