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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Fixed section indentation.)
Line 1: Line 1:
State:  draft          <br>
+
Type: specification  State: draft
Type:   specification  <br>
+
  
==Free Reference==
+
==Feature==
 +
A free reference, ensuring that the owning environment has always been entered when calling an object.
  
===Description===
+
==API==
A free reference. Ensuring that the owning environment has always been entered when calling an object.
+
<code>[cpp]
 
+
cppu/FreeReference.hxx
===API===
+
<pre>
+
cppu/FreeReference.hxx
+
  
 
   template<class T> FreeReference
 
   template<class T> FreeReference
Line 33: Line 30:
  
 
     bool operator != (FreeReference const & rOther) const
 
     bool operator != (FreeReference const & rOther) const
</pre>
+
</code>
  
===Dependencies===
+
==Dependencies==
 
* [[Uno/Cpp/Spec/Environment]]
 
* [[Uno/Cpp/Spec/Environment]]
 
* [[Uno/Cpp/Spec/Environment Stack]]
 
* [[Uno/Cpp/Spec/Environment Stack]]
 
;'''Note:''' The FreeReference may not yet be used in public / published APIs, as the implementation may change ABI incompatible.
 
  
  
 
[[Category:Uno:Cpp:Spec]]
 
[[Category:Uno:Cpp:Spec]]
[[Category:Uno:draft]]
+
[[Category:draft]]

Revision as of 19:42, 6 September 2006

Type: specification State: draft

Feature

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

API

[cpp] 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

Personal tools