| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GiGaUtil::FastCast< FROM, TO > Struct Template Reference

Helpful utility to perfrom a fast cast. More...

#include <GiGaUtil.h>

List of all members.


Public Member Functions

TO * operator() (FROM *from) const
 the only one essential method

Detailed Description

template<class FROM, class TO>
struct GiGaUtil::FastCast< FROM, TO >

Helpful utility to perfrom a fast cast.

Author:
Vanya Belyaev
Date:
23/07/2001

Definition at line 135 of file GiGaUtil.h.


Member Function Documentation

template<class FROM, class TO>
TO* GiGaUtil::FastCast< FROM, TO >::operator() ( FROM *  from  )  const [inline]

the only one essential method

Parameters:
from object to be cast
Returns:
the result of dynamic cast

Definition at line 142 of file GiGaUtil.h.

00143     {
00144       if ( 0 == from ) { return  (TO*) 0 ; }
00145 #ifdef GIGA_FASTCAST
00146       return  static_cast<TO*>  ( from ) ;
00147 #else
00148       return  dynamic_cast<TO*> ( from ) ;
00149 #endif 
00150     };


The documentation for this struct was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:01:19 2011 for GiGa by doxygen 1.4.7