TrinityCore
Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > > Struct Template Reference

#include <ChatCommandArgs.h>

Public Types

using V = std::variant< Ts... >
 

Static Public Member Functions

template<size_t I>
static ChatCommandResult TryAtIndex (Trinity::ChatCommands::Variant< Ts... > &val, ChatHandler const *handler, std::string_view args)
 
static ChatCommandResult TryConsume (Trinity::ChatCommands::Variant< Ts... > &val, ChatHandler const *handler, std::string_view args)
 

Static Public Attributes

static constexpr size_t N = std::variant_size_v<V>
 

Detailed Description

template<typename... Ts>
struct Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >

Definition at line 255 of file ChatCommandArgs.h.

Member Typedef Documentation

◆ V

template<typename... Ts>
using Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::V = std::variant<Ts...>

Definition at line 257 of file ChatCommandArgs.h.

Member Function Documentation

◆ TryAtIndex()

template<typename... Ts>
template<size_t I>
static ChatCommandResult Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryAtIndex ( Trinity::ChatCommands::Variant< Ts... > &  val,
ChatHandler const *  handler,
std::string_view  args 
)
inlinestatic

Definition at line 261 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

◆ TryConsume()

template<typename... Ts>
static ChatCommandResult Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryConsume ( Trinity::ChatCommands::Variant< Ts... > &  val,
ChatHandler const *  handler,
std::string_view  args 
)
inlinestatic

Definition at line 285 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ N

template<typename... Ts>
constexpr size_t Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::N = std::variant_size_v<V>
staticconstexpr

Definition at line 258 of file ChatCommandArgs.h.


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