#include <GiGaUtil.h>
Public Member Functions | |
TO * | operator() (FROM *from) const |
the only one essential method |
Definition at line 135 of file GiGaUtil.h.
TO* GiGaUtil::FastCast< FROM, TO >::operator() | ( | FROM * | from | ) | const [inline] |
the only one essential method
from | object to be 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 };