TrinityCore
OpcodeTable Class Reference

#include <Opcodes.h>

Public Member Functions

 OpcodeTable ()
 
 OpcodeTable (OpcodeTable const &)=delete
 
OpcodeTableoperator= (OpcodeTable const &)=delete
 
 ~OpcodeTable ()
 
void Initialize ()
 Correspondence between opcodes and their names. More...
 
ClientOpcodeHandler const * operator[] (OpcodeClient index) const
 
ServerOpcodeHandler const * operator[] (OpcodeServer index) const
 

Private Member Functions

bool ValidateClientOpcode (OpcodeClient opcode, char const *name) const
 
template<typename Handler , Handler HandlerFunction>
void ValidateAndSetClientOpcode (OpcodeClient opcode, char const *name, SessionStatus status, PacketProcessing processing)
 
void ValidateAndSetServerOpcode (OpcodeServer opcode, char const *name, SessionStatus status, ConnectionType conIdx)
 

Private Attributes

ClientOpcodeHandler_internalTableClient [NUM_OPCODE_HANDLERS]
 
ServerOpcodeHandler_internalTableServer [NUM_OPCODE_HANDLERS]
 

Detailed Description

Definition at line 2164 of file Opcodes.h.

Constructor & Destructor Documentation

◆ OpcodeTable() [1/2]

OpcodeTable::OpcodeTable ( )

Definition at line 51 of file Opcodes.cpp.

◆ OpcodeTable() [2/2]

OpcodeTable::OpcodeTable ( OpcodeTable const &  )
delete

◆ ~OpcodeTable()

OpcodeTable::~OpcodeTable ( )

Definition at line 57 of file Opcodes.cpp.

Member Function Documentation

◆ Initialize()

void OpcodeTable::Initialize ( )

Correspondence between opcodes and their names.

Definition at line 134 of file Opcodes.cpp.

+ Here is the caller graph for this function:

◆ operator=()

OpcodeTable & OpcodeTable::operator= ( OpcodeTable const &  )
delete

◆ operator[]() [1/2]

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

Definition at line 2176 of file Opcodes.h.

◆ operator[]() [2/2]

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

Definition at line 2181 of file Opcodes.h.

◆ ValidateAndSetClientOpcode()

template<typename Handler , Handler HandlerFunction>
void OpcodeTable::ValidateAndSetClientOpcode ( OpcodeClient  opcode,
char const *  name,
SessionStatus  status,
PacketProcessing  processing 
)
private

Definition at line 90 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 98 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 66 of file Opcodes.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _internalTableClient

ClientOpcodeHandler* OpcodeTable::_internalTableClient[NUM_OPCODE_HANDLERS]
private

Definition at line 2193 of file Opcodes.h.

◆ _internalTableServer

ServerOpcodeHandler* OpcodeTable::_internalTableServer[NUM_OPCODE_HANDLERS]
private

Definition at line 2194 of file Opcodes.h.


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