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 58 of file ScriptModule.h.

Constructor & Destructor Documentation

◆ ValidListenerData() [1/2]

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

Definition at line 817 of file ScriptModule.cpp.

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

◆ ValidListenerData() [2/2]

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

Definition at line 826 of file ScriptModule.cpp.

827  :
828  FuncPtr(funcptr),
829  ListenerName(name), RestOfMeta(metadataend), GenericTypeName(generictypename)
830 {
831  // increase references //
832  FuncPtr->AddRef();
833 }
std::unique_ptr< std::string > RestOfMeta
Definition: ScriptModule.h:66
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:64
std::unique_ptr< std::string > ListenerName
Definition: ScriptModule.h:65
std::unique_ptr< std::string > GenericTypeName
Definition: ScriptModule.h:67

◆ ~ValidListenerData()

Leviathan::ValidListenerData::~ValidListenerData ( )

Definition at line 835 of file ScriptModule.cpp.

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

Member Data Documentation

◆ FuncPtr

asIScriptFunction* Leviathan::ValidListenerData::FuncPtr

Definition at line 64 of file ScriptModule.h.

◆ GenericTypeName

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

Definition at line 67 of file ScriptModule.h.

◆ ListenerName

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

Definition at line 65 of file ScriptModule.h.

◆ RestOfMeta

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

Definition at line 66 of file ScriptModule.h.


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