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

From Apache OpenOffice Wiki
< Uno‎ | Cpp‎ | Spec
Jump to: navigation, search
m (Added category.)
Line 1: Line 1:
author:  [[User:Kr|Kr]] <br>
 
 
version: {{REVISIONID}} <br>
 
version: {{REVISIONID}} <br>
 
state:  draft          <br>
 
state:  draft          <br>
created: 01/10/2006    <br>
 
 
type:    specification  <br>
 
type:    specification  <br>
type:    specification
 
  
== C++ UNO ==
+
== Environment Aware Reference ==
=== Environment Aware Reference ===
+
  
 
; Feature
 
; Feature
Line 34: Line 30:
 
:* C++ uno::Environment
 
:* C++ uno::Environment
 
:* Stacked Environments
 
:* Stacked Environments
 +
 +
[[Category:Uno:Cpp:Spec]]

Revision as of 15:34, 20 April 2006

version: 8694
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.
Rationale 
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
Compatibility Issues
None.
Dependencies
  • C++ uno::Environment
  • Stacked Environments
Personal tools