|
STK++ 1.0
|
The ConstProxy class allow to surdefine operators and methods for every kind of constant class and type without using dynamic_cast.
More...
#include <STK_Proxy.h>

Public Member Functions | |
| ConstProxy (TYPE const &x) | |
| Default constructor : create a reference of the value x. | |
| virtual | ~ConstProxy () |
| Virtual destructor. | |
| operator TYPE const & () const | |
| Constant conversion operator to TYPE. | |
Protected Attributes | |
| TYPE const & | x_ |
| A constant reference on the object wrapped. | |
The ConstProxy class allow to surdefine operators and methods for every kind of constant class and type without using dynamic_cast.
This class allow:
dynamic_cast Definition at line 63 of file STK_Proxy.h.
| STK::ConstProxy< TYPE >::ConstProxy | ( | TYPE const & | x | ) | [inline] |
Default constructor : create a reference of the value x.
| x | the value to wrap |
Definition at line 72 of file STK_Proxy.h.
: x_(x) { ;}
| virtual STK::ConstProxy< TYPE >::~ConstProxy | ( | ) | [inline, virtual] |
| STK::ConstProxy< TYPE >::operator TYPE const & | ( | ) | const [inline] |
Constant conversion operator to TYPE.
Definition at line 81 of file STK_Proxy.h.
References STK::ConstProxy< TYPE >::x_.
{ return x_;}
TYPE const& STK::ConstProxy< TYPE >::x_ [protected] |
A constant reference on the object wrapped.
Definition at line 66 of file STK_Proxy.h.
Referenced by STK::ConstProxy< TYPE >::operator TYPE const &().