template<typename Interface, typename Data>
BWAPI::InterfaceDataWrapper struct

Public types

struct Hash
using IdT = std::decay_t<decltype(Data::id)>

Constructors, destructors, conversion operators

InterfaceDataWrapper(Data const& ptr) constexpr
InterfaceDataWrapper(std::nullptr_t) constexpr
operator IdT() const explicit constexpr
operator int() const explicit constexpr

Public functions

auto getData() const -> const auto& constexpr
auto getGame() const -> Game& constexpr
auto getID() const -> IdT constexpr
Retrieves a unique identifier for this interface.
auto operator!=(InterfaceDataWrapper const& other) const -> bool constexpr
auto operator!=(std::nullptr_t) const -> bool constexpr
auto operator<(InterfaceDataWrapper const& other) const -> bool constexpr
auto operator<=(InterfaceDataWrapper const& other) const -> bool constexpr
auto operator==(InterfaceDataWrapper const& other) const -> bool constexpr
auto operator==(std::nullptr_t) const -> bool constexpr
auto operator>(InterfaceDataWrapper const& other) const -> bool constexpr
auto operator>=(InterfaceDataWrapper const& other) const -> bool constexpr

Public variables

const Data* dataptr

Function documentation

template<typename Interface, typename Data>
IdT BWAPI::InterfaceDataWrapper<Interface, Data>::getID() const constexpr

Retrieves a unique identifier for this interface.

Returns An integer containing the interface's identifier. -1 if the interface is null/None.