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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Added category.)
m (Changed layout.)
Line 1: Line 1:
version: {{REVISIONID}} <br>
+
State:  draft          <br>
state:  draft          <br>
+
Type:    specification  <br>
type:    specification  <br>
+
  
== Environment Aware Reference ==
+
==Environment Aware Reference==
  
; Feature
+
===Feature===
: An environment aware reference. Ensuring that the owning environment has always been entered when calling an object.
+
An environment aware reference. Ensuring that the owning environment has always been entered when calling an object.
  
; Rationale :
+
===API===
 +
<pre>
 +
template<class T> EnvAwareReference
 +
  EnvAwareReference() {}
 +
  EnvAwareReference(cssuno::Reference<T> const & xRef)
 +
  EnvAwareReference(EnvAwareReference<T> const & rOther)
  
; API
+
  cssuno::Reference<T> get() const throw (cssuno::RuntimeException)
: <code>template<class T> EnvAwareReference</code>
+
 
: <code>EnvAwareReference() {}</code>
+
  operator cssuno::Reference<T> () const throw (cssuno::RuntimeException)
: <code>EnvAwareReference(cssuno::Reference<T> const & xRef)</code>
+
 
: <code>EnvAwareReference(EnvAwareReference<T> const & rOther)</code>
+
  T * operator -> () const throw (cssuno::RuntimeException)
: <code>cssuno::Reference<T> get() const throw (cssuno::RuntimeException)</code>
+
 
: <code>operator cssuno::Reference<T> () const throw (cssuno::RuntimeException)</code>
+
  bool is() const throw (cssuno::RuntimeException)
: <code>T * operator -> () const throw (cssuno::RuntimeException)</code>
+
 
: <code>bool is() const throw (cssuno::RuntimeException)</code>
+
  void clear()
: <code>void clear()</code>
+
 
: <code>EnvAwareReference<T> & operator = (EnvAwareReference<T> const & rOther)</code>
+
  EnvAwareReference<T> & operator = (EnvAwareReference<T> const & rOther)
: <code>void set(cssuno::Reference<T> const & xRef)</code>
+
 
: <code>bool operator == (EnvAwareReference const & rOther) const</code>
+
  void set(cssuno::Reference<T> const & xRef)
: <code>bool operator != (EnvAwareReference const & rOther) const</code>
+
 
 +
  bool operator == (EnvAwareReference const & rOther) const
 +
 
 +
  bool operator != (EnvAwareReference const & rOther) const
 +
</pre>
 
      
 
      
; Compatibility Issues: None.
+
===Dependencies===
 +
* C++ uno::Environment
 +
* Stacked Environments
  
; Dependencies:
 
:* C++ uno::Environment
 
:* Stacked Environments
 
  
 
[[Category:Uno:Cpp:Spec]]
 
[[Category:Uno:Cpp:Spec]]
 +
[[Category:Uno:draft]]

Revision as of 12:53, 30 June 2006

State: draft
Type: specification

Environment Aware Reference

Feature

An environment aware reference. Ensuring that the owning environment has always been entered when calling an object.

API

 template<class T> EnvAwareReference
   EnvAwareReference() {}
   EnvAwareReference(cssuno::Reference<T> const & xRef)
   EnvAwareReference(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()

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

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

   bool operator == (EnvAwareReference const & rOther) const

   bool operator != (EnvAwareReference const & rOther) const

Dependencies

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