#include <STK_Proxy.h>
Inherits STK::IProxy.
Public Member Functions | |
| Proxy (TYPE &x) | |
| Proxy & | operator= (const TYPE &x) |
| virtual | ~Proxy () |
| Proxy & | operator= (const Proxy< TYPE > &x) |
| Proxy & | operator= (const ConstProxy< TYPE > &x) |
| operator TYPE & () | |
| operator TYPE const & () const | |
Protected Attributes | |
| TYPE & | x_ |
| A reference on the object wrapped. | |
This class allow:
dynamic_cast Definition at line 107 of file STK_Proxy.h.
| STK::Proxy< TYPE >::Proxy | ( | TYPE & | x | ) | [inline] |
Default Ctor : create a reference of the Real x.
| x | the object to wrap |
Definition at line 116 of file STK_Proxy.h.
00116 : x_(x) 00117 { ;}
| virtual STK::Proxy< TYPE >::~Proxy | ( | ) | [inline, virtual] |
| Proxy& STK::Proxy< TYPE >::operator= | ( | const TYPE & | x | ) | [inline] |
overwrite with a TYPE.
| x | the value to wrapp |
Definition at line 122 of file STK_Proxy.h.
References STK::Proxy< TYPE >::x_.
00123 { 00124 x_ = x; 00125 return *this; 00126 }
| Proxy& STK::Proxy< TYPE >::operator= | ( | const Proxy< TYPE > & | x | ) | [inline] |
overwrite with a Proxy<TYPE>.
| x | a wrapped value to copy |
Definition at line 135 of file STK_Proxy.h.
References STK::Proxy< TYPE >::x_.
00136 { 00137 x_ = x; 00138 return *this; 00139 }
| Proxy& STK::Proxy< TYPE >::operator= | ( | const ConstProxy< TYPE > & | x | ) | [inline] |
overwrite with a ConstProxy<TYPE>.
| x | a constant wrapped value to set |
Definition at line 144 of file STK_Proxy.h.
References STK::Proxy< TYPE >::x_.
00145 { 00146 x_ = x; 00147 return *this; 00148 }
| STK::Proxy< TYPE >::operator TYPE & | ( | ) | [inline] |
Conversion operator to TYPE.
Definition at line 152 of file STK_Proxy.h.
References STK::Proxy< TYPE >::x_.
00153 { return x_;}
| STK::Proxy< TYPE >::operator TYPE const & | ( | ) | const [inline] |
Constant Conversion operator to TYPE.
Definition at line 157 of file STK_Proxy.h.
References STK::Proxy< TYPE >::x_.
00158 { return x_;}
TYPE& STK::Proxy< TYPE >::x_ [protected] |
Definition at line 110 of file STK_Proxy.h.
Referenced by STK::Proxy< TYPE >::operator TYPE &(), STK::Proxy< TYPE >::operator TYPE const &(), and STK::Proxy< TYPE >::operator=().
1.5.8