TrinityCore
Loading...
Searching...
No Matches
Trinity::Impl::ChatCommands::ArgInfo< T > Struct Template Reference

#include <ChatCommandArgs.h>

+ Inheritance diagram for Trinity::Impl::ChatCommands::ArgInfo< T >:

Static Public Member Functions

static ChatCommandResult TryConsume (T &val, ChatHandler const *handler, std::string_view args) noexcept
 
static SearchMap MakeSearchMap () noexcept
 
static ChatCommandResult TryConsume (T &val, ChatHandler const *handler, std::string_view args) noexcept
 
static ChatCommandResult TryConsume (T &tag, ChatHandler const *handler, std::string_view args) noexcept
 
- Static Public Member Functions inherited from Trinity::Impl::ChatCommands::EnumArgInfoBase
static void AddSearchMapEntry (SearchMap &map, int64 val, EnumText const &text) noexcept
 
static int64 const * Match (SearchMap const &map, std::string_view s) noexcept
 

Static Public Attributes

static SearchMap const _map = MakeSearchMap()
 

Additional Inherited Members

- Public Types inherited from Trinity::Impl::ChatCommands::EnumArgInfoBase
using SearchMap = std::vector< std::pair< std::string_view, Optional< int64 > > >
 

Detailed Description

template<typename T>
requires std::is_arithmetic_v<T>
struct Trinity::Impl::ChatCommands::ArgInfo< T >

Definition at line 56 of file ChatCommandArgs.h.

Member Function Documentation

◆ MakeSearchMap()

template<typename T >
static SearchMap Trinity::Impl::ChatCommands::ArgInfo< T >::MakeSearchMap ( )
inlinestaticnoexcept

Definition at line 150 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

◆ TryConsume() [1/3]

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

Definition at line 204 of file ChatCommandArgs.h.

◆ TryConsume() [2/3]

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

Definition at line 58 of file ChatCommandArgs.h.

+ Here is the call graph for this function:

◆ TryConsume() [3/3]

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

Definition at line 161 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 >::_map = MakeSearchMap()
inlinestatic

Definition at line 159 of file ChatCommandArgs.h.


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