Loading...
Searching...
No Matches
BinaryNinja::APIAble< T, TAPI_ > Struct Template Reference

Helper class to determine if a type is "API-able" aka has the following interface: More...

Detailed Description

template<typename T, typename TAPI_ = decltype(std::declval<T>().GetAPIObject())>
struct BinaryNinja::APIAble< T, TAPI_ >

Helper class to determine if a type is "API-able" aka has the following interface:

struct Foo { BNFoo GetAPIObject() const; static Foo FromAPIObject(const BNFoo* obj); static void FreeAPIObject(BNFoo* obj); };

If you get weird compiler errors around here, make sure you've implemented the above interface correctly (with the `const`s too!).

Public Types

typedef TAPI_ TAPI
 

Member Typedef Documentation

◆ TAPI

template<typename T , typename TAPI_ = decltype(std::declval<T>().GetAPIObject())>
TAPI_ BinaryNinja::APIAble< T, TAPI_ >::TAPI