Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ValidListenerData Struct Reference

some data that is stored when a listener is found More...

#include <ScriptModule.h>

Public Member Functions

 ValidListenerData (asIScriptFunction *funcptr, std::string *name, std::string *metadataend)
 
 ValidListenerData (asIScriptFunction *funcptr, std::string *name, std::string *metadataend, std::string *generictypename)
 
 ~ValidListenerData ()
 

Public Attributes

asIScriptFunction * FuncPtr
 
std::unique_ptr< std::string > ListenerName
 
std::unique_ptr< std::string > RestOfMeta
 
std::unique_ptr< std::string > GenericTypeName
 

Detailed Description

some data that is stored when a listener is found

Definition at line 33 of file ScriptModule.h.

Constructor & Destructor Documentation

◆ ValidListenerData() [1/2]

Leviathan::ValidListenerData::ValidListenerData ( asIScriptFunction *  funcptr,
std::string *  name,
std::string *  metadataend 
)

Definition at line 818 of file ScriptModule.cpp.

819  :
820  FuncPtr(funcptr),
821  ListenerName(name), RestOfMeta(metadataend)
822 {
823  // increase references //
824  FuncPtr->AddRef();
825 }
std::unique_ptr< std::string > RestOfMeta
Definition: ScriptModule.h:41
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:39
std::unique_ptr< std::string > ListenerName
Definition: ScriptModule.h:40

◆ ValidListenerData() [2/2]

Leviathan::ValidListenerData::ValidListenerData ( asIScriptFunction *  funcptr,
std::string *  name,
std::string *  metadataend,
std::string *  generictypename 
)

Definition at line 827 of file ScriptModule.cpp.

828  :
829  FuncPtr(funcptr),
830  ListenerName(name), RestOfMeta(metadataend), GenericTypeName(generictypename)
831 {
832  // increase references //
833  FuncPtr->AddRef();
834 }
std::unique_ptr< std::string > RestOfMeta
Definition: ScriptModule.h:41
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:39
std::unique_ptr< std::string > ListenerName
Definition: ScriptModule.h:40
std::unique_ptr< std::string > GenericTypeName
Definition: ScriptModule.h:42

◆ ~ValidListenerData()

Leviathan::ValidListenerData::~ValidListenerData ( )

Definition at line 836 of file ScriptModule.cpp.

837 {
838  // decrease reference //
839  FuncPtr->Release();
840 }
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:39

Member Data Documentation

◆ FuncPtr

asIScriptFunction* Leviathan::ValidListenerData::FuncPtr

Definition at line 39 of file ScriptModule.h.

◆ GenericTypeName

std::unique_ptr<std::string> Leviathan::ValidListenerData::GenericTypeName

Definition at line 42 of file ScriptModule.h.

◆ ListenerName

std::unique_ptr<std::string> Leviathan::ValidListenerData::ListenerName

Definition at line 40 of file ScriptModule.h.

◆ RestOfMeta

std::unique_ptr<std::string> Leviathan::ValidListenerData::RestOfMeta

Definition at line 41 of file ScriptModule.h.


The documentation for this struct was generated from the following files: