CommonLibSSE (Parapets fork)
SKSE::Impl::RegistrationMapBase Class Reference

#include <RegistrationMap.h>

Inheritance diagram for SKSE::Impl::RegistrationMapBase:
SKSE::Impl::RegistrationMap< std::enable_if_t< std::conjunction_v< RE::BSScript::is_return_convertible< Args >... > >, Args... > SKSE::Impl::RegistrationMap< void >

Public Member Functions

 RegistrationMapBase ()
 
 RegistrationMapBase (const RegistrationMapBase &a_rhs)
 
 RegistrationMapBase (RegistrationMapBase &&a_rhs)
 
 ~RegistrationMapBase ()
 
RegistrationMapBaseoperator= (const RegistrationMapBase &a_rhs)
 
RegistrationMapBaseoperator= (RegistrationMapBase &&a_rhs)
 
bool Register (const RE::TESForm *a_form, RE::BSFixedString a_callback)
 
bool Register (const RE::BGSBaseAlias *a_alias, RE::BSFixedString a_callback)
 
bool Unregister (const RE::TESForm *a_form)
 
bool Unregister (const RE::BGSBaseAlias *a_alias)
 
void Clear ()
 
bool Save (SerializationInterface *a_intfc, std::uint32_t a_type, std::uint32_t a_version)
 
bool Save (SerializationInterface *a_intfc)
 
bool Load (SerializationInterface *a_intfc)
 

Protected Types

using Lock = std::recursive_mutex
 
using Locker = std::lock_guard< Lock >
 
using EventName = std::string
 

Protected Member Functions

bool Register (const void *a_object, RE::BSFixedString a_callback, RE::VMTypeID a_typeID)
 
bool Unregister (const void *a_object, RE::VMTypeID a_typeID)
 

Protected Attributes

std::map< RE::VMHandle, EventName_regs
 
Lock _lock
 

Member Typedef Documentation

◆ EventName

using SKSE::Impl::RegistrationMapBase::EventName = std::string
protected

◆ Lock

using SKSE::Impl::RegistrationMapBase::Lock = std::recursive_mutex
protected

◆ Locker

using SKSE::Impl::RegistrationMapBase::Locker = std::lock_guard<Lock>
protected

Constructor & Destructor Documentation

◆ RegistrationMapBase() [1/3]

SKSE::Impl::RegistrationMapBase::RegistrationMapBase ( )

◆ RegistrationMapBase() [2/3]

SKSE::Impl::RegistrationMapBase::RegistrationMapBase ( const RegistrationMapBase a_rhs)

◆ RegistrationMapBase() [3/3]

SKSE::Impl::RegistrationMapBase::RegistrationMapBase ( RegistrationMapBase &&  a_rhs)

◆ ~RegistrationMapBase()

SKSE::Impl::RegistrationMapBase::~RegistrationMapBase ( )

Member Function Documentation

◆ Clear()

void SKSE::Impl::RegistrationMapBase::Clear ( )

◆ Load()

bool SKSE::Impl::RegistrationMapBase::Load ( SerializationInterface a_intfc)

◆ operator=() [1/2]

RegistrationMapBase& SKSE::Impl::RegistrationMapBase::operator= ( const RegistrationMapBase a_rhs)

◆ operator=() [2/2]

RegistrationMapBase& SKSE::Impl::RegistrationMapBase::operator= ( RegistrationMapBase &&  a_rhs)

◆ Register() [1/3]

bool SKSE::Impl::RegistrationMapBase::Register ( const RE::BGSBaseAlias a_alias,
RE::BSFixedString  a_callback 
)

◆ Register() [2/3]

bool SKSE::Impl::RegistrationMapBase::Register ( const RE::TESForm a_form,
RE::BSFixedString  a_callback 
)

◆ Register() [3/3]

bool SKSE::Impl::RegistrationMapBase::Register ( const void *  a_object,
RE::BSFixedString  a_callback,
RE::VMTypeID  a_typeID 
)
protected

◆ Save() [1/2]

bool SKSE::Impl::RegistrationMapBase::Save ( SerializationInterface a_intfc)

◆ Save() [2/2]

bool SKSE::Impl::RegistrationMapBase::Save ( SerializationInterface a_intfc,
std::uint32_t  a_type,
std::uint32_t  a_version 
)

◆ Unregister() [1/3]

bool SKSE::Impl::RegistrationMapBase::Unregister ( const RE::BGSBaseAlias a_alias)

◆ Unregister() [2/3]

bool SKSE::Impl::RegistrationMapBase::Unregister ( const RE::TESForm a_form)

◆ Unregister() [3/3]

bool SKSE::Impl::RegistrationMapBase::Unregister ( const void *  a_object,
RE::VMTypeID  a_typeID 
)
protected

Member Data Documentation

◆ _lock

Lock SKSE::Impl::RegistrationMapBase::_lock
mutableprotected

◆ _regs

std::map<RE::VMHandle, EventName> SKSE::Impl::RegistrationMapBase::_regs
protected

The documentation for this class was generated from the following file: