|
FE 0.6.1
A header-only C++ library for writing frontends
|
Inherit from this class using CRTP, for some nice dynamic_cast-style wrappers. More...
#include <fe/cast.h>
Public Member Functions | |
| template<class T> | |
| T * | as () |
| static_cast with debug check. | |
| template<class T> | |
| T * | isa () |
| dynamic_cast. | |
| template<class T> | |
| const T * | as () const |
| const version. | |
| template<class T> | |
| const T * | isa () const |
| const version. | |
Inherit from this class using CRTP, for some nice dynamic_cast-style wrappers.
dynamic_cast.
If T isa fe::Nodeable, it will use node(), otherwise a dynamic_cast.