TrinityCore
Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > > Struct Template Reference

#include <ChatCommandArgs.h>

Public Types

using SearchMap = std::map< std::string_view, Optional< T >, StringCompareLessI_T >
 

Static Public Member Functions

static SearchMap MakeSearchMap ()
 
static T const * Match (std::string_view s)
 
static ChatCommandResult TryConsume (T &val, ChatHandler const *handler, std::string_view args)
 

Static Public Attributes

static SearchMap const _map = MakeSearchMap()
 

Detailed Description

template<typename T>
struct Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >

Definition at line 128 of file ChatCommandArgs.h.

Member Typedef Documentation

◆ SearchMap

template<typename T >
using Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::SearchMap = std::map<std::string_view, Optional<T>, StringCompareLessI_T>

Definition at line 130 of file ChatCommandArgs.h.

Member Function Documentation

◆ MakeSearchMap()

template<typename T >
static SearchMap Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::MakeSearchMap ( )
inlinestatic

Definition at line 131 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

◆ Match()

template<typename T >
static T const * Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::Match ( std::string_view  s)
inlinestatic

Definition at line 157 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

◆ TryConsume()

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

Definition at line 177 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _map

template<typename T >
SearchMap const Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::_map = MakeSearchMap()
inlinestatic

Definition at line 155 of file ChatCommandArgs.h.


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