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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Changed layout.)
m (API: Added header names.)
Line 9: Line 9:
 
===API===
 
===API===
 
<pre>
 
<pre>
  template<class T> EnvAwareReference
+
  cppu/EnvAwareRef.hxx
  EnvAwareReference() {}
+
  EnvAwareReference(cssuno::Reference<T> const & xRef)
+
  EnvAwareReference(EnvAwareReference<T> const & rOther)
+
  
  cssuno::Reference<T> get() const throw (cssuno::RuntimeException)
+
  template<class T> EnvAwareReference
 +
    EnvAwareReference() {}
 +
    EnvAwareReference(cssuno::Reference<T> const & xRef)
 +
    EnvAwareReference(EnvAwareReference<T> const & rOther)
  
  operator cssuno::Reference<T> () const throw (cssuno::RuntimeException)
+
    cssuno::Reference<T> get() const throw (cssuno::RuntimeException)
  
  T * operator -> () const throw (cssuno::RuntimeException)
+
    operator cssuno::Reference<T> () const throw (cssuno::RuntimeException)
  
  bool is() const throw (cssuno::RuntimeException)
+
    T * operator -> () const throw (cssuno::RuntimeException)
  
  void clear()
+
    bool is() const throw (cssuno::RuntimeException)
  
  EnvAwareReference<T> & operator = (EnvAwareReference<T> const & rOther)
+
    void clear()
  
  void set(cssuno::Reference<T> const & xRef)
+
    EnvAwareReference<T> & operator = (EnvAwareReference<T> const & rOther)
  
  bool operator == (EnvAwareReference const & rOther) const
+
    void set(cssuno::Reference<T> const & xRef)
  
  bool operator != (EnvAwareReference const & rOther) const
+
    bool operator == (EnvAwareReference const & rOther) const
 +
 
 +
    bool operator != (EnvAwareReference const & rOther) const
 
</pre>
 
</pre>
   
+
 
 
===Dependencies===
 
===Dependencies===
 
* C++ uno::Environment
 
* C++ uno::Environment

Revision as of 12:56, 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

 cppu/EnvAwareRef.hxx

  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