STK::ConstProxy< TYPE > Class Template Reference
[Subproject STKernel::Base]

#include <STK_Proxy.h>

Inherits STK::IProxy.

List of all members.

Public Member Functions

 ConstProxy (const TYPE &x)
virtual ~ConstProxy ()
 operator TYPE const & () const

Protected Attributes

const TYPE & x_
 A constant reference on the object wrapped.


Detailed Description

template<class TYPE>
class STK::ConstProxy< TYPE >

The ConstProxy class allow to surdefine operators and methods for every kind of constant class without using dynamic_cast.

This class allow:

Definition at line 74 of file STK_Proxy.h.


Constructor & Destructor Documentation

template<class TYPE>
STK::ConstProxy< TYPE >::ConstProxy ( const TYPE &  x  )  [inline]

Default Ctor : create a reference of the value x.

Parameters:
x the value to wrap

Definition at line 83 of file STK_Proxy.h.

00083                                       : x_(x)
00084      { ;}

template<class TYPE>
virtual STK::ConstProxy< TYPE >::~ConstProxy (  )  [inline, virtual]

Virtual Dtor.

Definition at line 88 of file STK_Proxy.h.

00088 {}


Member Function Documentation

template<class TYPE>
STK::ConstProxy< TYPE >::operator TYPE const & (  )  const [inline]

Constant conversion operator to TYPE.

Definition at line 92 of file STK_Proxy.h.

References STK::ConstProxy< TYPE >::x_.

00093      { return x_;}


Member Data Documentation

template<class TYPE>
const TYPE& STK::ConstProxy< TYPE >::x_ [protected]

Definition at line 77 of file STK_Proxy.h.

Referenced by STK::ConstProxy< TYPE >::operator TYPE const &().


The documentation for this class was generated from the following file:

Generated on Fri Sep 25 10:31:01 2009 for STK++ by  doxygen 1.5.8