TrinityCore
Loading...
Searching...
No Matches
OpcodeTable Class Reference

#include <Opcodes.h>

Public Member Functions

 OpcodeTable ()
 
 ~OpcodeTable ()
 
void Initialize ()
 Correspondence between opcodes and their names.
 
bool IsValid (OpcodeClient index) const
 
bool IsValid (OpcodeServer index) const
 
ClientOpcodeHandler const * operator[] (OpcodeClient index) const
 
ServerOpcodeHandler const * operator[] (OpcodeServer index) const
 

Private Member Functions

bool ValidateClientOpcode (OpcodeClient opcode, char const *name) const
 
void ValidateAndSetClientOpcode (OpcodeClient opcode, char const *name, SessionStatus status, ClientOpcodeHandler::HandlerFunction call, PacketProcessing processing)
 
bool ValidateServerOpcode (OpcodeServer opcode, char const *name, ConnectionType conIdx) const
 
void ValidateAndSetServerOpcode (OpcodeServer opcode, char const *name, SessionStatus status, ConnectionType conIdx)
 
void InitializeClientOpcodes ()
 
void InitializeServerOpcodes ()
 

Private Attributes

std::array< std::unique_ptr< ClientOpcodeHandler >, NUM_CMSG_OPCODES_internalTableClient
 
std::array< std::unique_ptr< ServerOpcodeHandler >, NUM_SMSG_OPCODES_internalTableServer
 

Detailed Description

Definition at line 2606 of file Opcodes.h.

Constructor & Destructor Documentation

◆ OpcodeTable()

OpcodeTable::OpcodeTable ( )
default

◆ ~OpcodeTable()

OpcodeTable::~OpcodeTable ( )
default

Member Function Documentation

◆ Initialize()

void OpcodeTable::Initialize ( )

Correspondence between opcodes and their names.

Definition at line 136 of file Opcodes.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeClientOpcodes()

void OpcodeTable::InitializeClientOpcodes ( )
private

Definition at line 142 of file Opcodes.cpp.

+ Here is the caller graph for this function:

◆ InitializeServerOpcodes()

void OpcodeTable::InitializeServerOpcodes ( )
private

Definition at line 1160 of file Opcodes.cpp.

+ Here is the caller graph for this function:

◆ IsValid() [1/2]

bool OpcodeTable::IsValid ( OpcodeClient  index) const
inline

Definition at line 2614 of file Opcodes.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsValid() [2/2]

bool OpcodeTable::IsValid ( OpcodeServer  index) const
inline

Definition at line 2620 of file Opcodes.h.

+ Here is the call graph for this function:

◆ operator[]() [1/2]

ClientOpcodeHandler const * OpcodeTable::operator[] ( OpcodeClient  index) const
inline

Definition at line 2626 of file Opcodes.h.

+ Here is the call graph for this function:

◆ operator[]() [2/2]

ServerOpcodeHandler const * OpcodeTable::operator[] ( OpcodeServer  index) const
inline

Definition at line 2631 of file Opcodes.h.

+ Here is the call graph for this function:

◆ ValidateAndSetClientOpcode()

void OpcodeTable::ValidateAndSetClientOpcode ( OpcodeClient  opcode,
char const *  name,
SessionStatus  status,
ClientOpcodeHandler::HandlerFunction  call,
PacketProcessing  processing 
)
private

Definition at line 78 of file Opcodes.cpp.

+ Here is the call graph for this function:

◆ ValidateAndSetServerOpcode()

void OpcodeTable::ValidateAndSetServerOpcode ( OpcodeServer  opcode,
char const *  name,
SessionStatus  status,
ConnectionType  conIdx 
)
private

Definition at line 127 of file Opcodes.cpp.

+ Here is the call graph for this function:

◆ ValidateClientOpcode()

bool OpcodeTable::ValidateClientOpcode ( OpcodeClient  opcode,
char const *  name 
) const
private

Definition at line 54 of file Opcodes.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ValidateServerOpcode()

bool OpcodeTable::ValidateServerOpcode ( OpcodeServer  opcode,
char const *  name,
ConnectionType  conIdx 
) const
private

Definition at line 91 of file Opcodes.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _internalTableClient

std::array<std::unique_ptr<ClientOpcodeHandler>, NUM_CMSG_OPCODES> OpcodeTable::_internalTableClient
private

Definition at line 2646 of file Opcodes.h.

◆ _internalTableServer

std::array<std::unique_ptr<ServerOpcodeHandler>, NUM_SMSG_OPCODES> OpcodeTable::_internalTableServer
private

Definition at line 2647 of file Opcodes.h.


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