![]() |
TrinityCore
|
Namespaces | |
| namespace | Asio |
| namespace | Banner |
| namespace | ChatCommands |
| namespace | Containers |
| namespace | Crypto |
| namespace | Encoding |
| namespace | Helpers |
| namespace | Honor |
| namespace | Hyperlinks |
| namespace | Impl |
| namespace | Locale |
| namespace | Net |
| namespace | Predicates |
| namespace | Service |
| namespace | SpellScripts |
| namespace | Timezone |
| namespace | XP |
Concepts | |
| concept | invocable_r |
Typedefs | |
| using | regex = TC_REGEX_NAMESPACE ::regex |
| using | wregex = TC_REGEX_NAMESPACE ::wregex |
| template<typename... Args> | |
| using | FormatString = fmt::format_string< Args... > |
| using | FormatStringView = fmt::string_view |
| using | FormatArgs = fmt::format_args |
| template<template< typename... > typename Check, typename... Ts> | |
| using | find_type_if_t = typename find_type_if< Check, Ts... >::type |
Enumerations | |
| enum class | WorldObjectSearcherContinuation { Continue , Return } |
Functions | |
| void | Assert (char const *file, int line, char const *function, std::string debugInfo, char const *message) |
| void | Assert (char const *file, int line, char const *function, std::string debugInfo, char const *message, char const *format,...) |
| void | Fatal (char const *file, int line, char const *function, char const *message,...) |
| void | Error (char const *file, int line, char const *function, char const *message) |
| void | Warning (char const *file, int line, char const *function, char const *message) |
| void | Abort (char const *file, int line, char const *function) |
| void | Abort (char const *file, int line, char const *function, char const *message,...) |
| void | AbortHandler (int sigval) |
| template<typename T > | |
| void | hash_combine (std::size_t &seed, T const &val) |
| std::uint32_t | HashFnv1a (std::string_view data) |
| int32 | StartProcess (std::string executable, std::vector< std::string > args, std::string logger, std::string input_file, bool secure) |
| std::shared_ptr< AsyncProcessResult > | StartAsyncProcess (std::string executable, std::vector< std::string > args, std::string logger, std::string input_file, bool secure) |
| std::string | SearchExecutableInPath (std::string const &filename) |
| template<typename Result , typename... Params> | |
| Optional< Result > | StringTo (std::string_view str, Params &&... params) |
| template<typename Type , typename... Params> | |
| std::string | ToString (Type &&val, Params &&... params) |
| template<typename... Args> | |
| constexpr auto | MakeFormatArgs (Args &&... args) |
| template<typename... Args> | |
| std::string | StringFormat (FormatString< Args... > fmt, Args &&... args) |
| Default TC string format function. | |
| template<typename OutputIt , typename... Args> | |
| OutputIt | StringFormatTo (OutputIt out, FormatString< Args... > fmt, Args &&... args) |
| std::string | StringVFormat (FormatStringView fmt, FormatArgs args) |
| template<typename OutputIt > | |
| OutputIt | StringVFormatTo (OutputIt out, FormatStringView fmt, FormatArgs args) |
| bool | IsFormatEmptyOrNull (char const *fmt) |
| Returns true if the given char pointer is null. | |
| bool | IsFormatEmptyOrNull (std::string const &fmt) |
| Returns true if the given std::string is empty. | |
| constexpr bool | IsFormatEmptyOrNull (std::string_view fmt) |
| Returns true if the given std::string is empty. | |
| constexpr bool | IsFormatEmptyOrNull (fmt::string_view fmt) |
| template<class T , class Tuple > | |
| T * | new_from_tuple (Tuple &&args) |
| template<typename T1 , typename T2 > | |
| bool | operator== (unique_trackable_ptr< T1 > const &left, unique_trackable_ptr< T2 > const &right) |
| template<typename T1 , typename T2 > | |
| std::strong_ordering | operator<=> (unique_trackable_ptr< T1 > const &left, unique_trackable_ptr< T2 > const &right) |
| template<typename T1 > | |
| bool | operator== (unique_trackable_ptr< T1 > const &left, std::nullptr_t) |
| template<typename T1 > | |
| std::strong_ordering | operator<=> (unique_trackable_ptr< T1 > const &left, std::nullptr_t) |
| template<typename T , typename... Args> | |
| std::enable_if_t<!std::is_array_v< T >, unique_trackable_ptr< T > > | make_unique_trackable (Args &&... args) |
| template<typename T > | |
| std::enable_if_t< std::is_unbounded_array_v< T >, unique_trackable_ptr< T > > | make_unique_trackable (std::size_t N) |
| template<typename T > | |
| std::enable_if_t< std::is_unbounded_array_v< T >, unique_trackable_ptr< T > > | make_unique_trackable (std::size_t N, std::remove_extent_t< T > const &val) |
| template<typename T > | |
| std::enable_if_t< std::is_bounded_array_v< T >, unique_trackable_ptr< T > > | make_unique_trackable () |
| template<typename T > | |
| std::enable_if_t< std::is_bounded_array_v< T >, unique_trackable_ptr< T > > | make_unique_trackable (std::remove_extent_t< T > const &val) |
| template<class To , class From > | |
| unique_weak_ptr< To > | static_pointer_cast (unique_weak_ptr< From > const &other) |
| template<class To , class From > | |
| unique_weak_ptr< To > | const_pointer_cast (unique_weak_ptr< From > const &other) |
| template<class To , class From > | |
| unique_weak_ptr< To > | reinterpret_pointer_cast (unique_weak_ptr< From > const &other) |
| template<class To , class From > | |
| unique_weak_ptr< To > | dynamic_pointer_cast (unique_weak_ptr< From > const &other) |
| template<typename T1 , typename T2 > | |
| bool | operator== (unique_strong_ref_ptr< T1 > const &left, unique_strong_ref_ptr< T2 > const &right) |
| template<typename T1 , typename T2 > | |
| std::strong_ordering | operator<=> (unique_strong_ref_ptr< T1 > const &left, unique_strong_ref_ptr< T2 > const &right) |
| template<typename T1 > | |
| bool | operator== (unique_strong_ref_ptr< T1 > const &left, std::nullptr_t) |
| template<typename T1 > | |
| std::strong_ordering | operator<=> (unique_strong_ref_ptr< T1 > const &left, std::nullptr_t) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | static_pointer_cast (unique_strong_ref_ptr< From > const &other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | static_pointer_cast (unique_strong_ref_ptr< From > &&other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | const_pointer_cast (unique_strong_ref_ptr< From > const &other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | const_pointer_cast (unique_strong_ref_ptr< From > &&other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | reinterpret_pointer_cast (unique_strong_ref_ptr< From > const &other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | reinterpret_pointer_cast (unique_strong_ref_ptr< From > &&other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | dynamic_pointer_cast (unique_strong_ref_ptr< From > const &other) |
| template<class To , class From > | |
| unique_strong_ref_ptr< To > | dynamic_pointer_cast (unique_strong_ref_ptr< From > &&other) |
| TC_COMMON_API void | VerifyOsVersion () |
| TC_COMMON_API std::vector< std::string_view > | Tokenize (std::string_view str, char sep, bool keepEmpty) |
| std::vector< std::string_view > | Tokenize (std::string &&, char, bool)=delete |
| std::vector< std::string_view > | Tokenize (std::string const &&, char, bool)=delete |
| std::vector< std::string_view > | Tokenize (char const *str, char sep, bool keepEmpty) |
| template<typename T > | |
| std::string | GetTypeName () |
| template<typename T > | |
| std::string | GetTypeName (T &&v) |
| template<class SPECIFIC_TYPE , class KEY_TYPE , class H , class T > | |
| bool | Insert (ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE , class KEY_TYPE , class H , class T > | |
| SPECIFIC_TYPE * | Find (ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > const &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE , class KEY_TYPE , class H , class T > | |
| bool | Remove (ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > &elements, KEY_TYPE const &handle, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE , class KEY_TYPE , class H , class T > | |
| bool | Size (ContainerUnorderedMap< TypeList< H, T >, KEY_TYPE > const &elements, std::size_t *size, SPECIFIC_TYPE *obj) |
| template<class SPECIFIC_TYPE , class H , class T > | |
| size_t | Count (ContainerMapList< TypeList< H, T > > const &elements, SPECIFIC_TYPE *fake) |
| template<class SPECIFIC_TYPE , class H , class T > | |
| SPECIFIC_TYPE * | Insert (ContainerMapList< TypeList< H, T > > &elements, SPECIFIC_TYPE *obj) |
| template<class RET_TYPE , int CENTER_VAL> | |
| RET_TYPE | Compute (float x, float y, float center_offset, float size) |
| GridCoord | ComputeGridCoord (float x, float y) |
| GridCoord | ComputeGridCoordSimple (float x, float y) |
| CellCoord | ComputeCellCoord (float x, float y) |
| CellCoord | ComputeCellCoord (float x, float y, float &x_off, float &y_off) |
| void | NormalizeMapCoord (float &c) |
| bool | IsValidMapCoord (float c) |
| bool | IsValidMapCoord (float x, float y) |
| bool | IsValidMapCoord (float x, float y, float z) |
| bool | IsValidMapCoord (float x, float y, float z, float o) |
Variables | |
| template<typename T , typename... Us> | |
| constexpr bool | has_type_v = has_type<T, Us...>::value |
| template<typename... Ts> | |
| constexpr bool | is_tuple_v = is_tuple<Ts...>::value |
| template<typename T > | |
| constexpr bool | dependant_false_v = dependant_false<T>::value |
| using Trinity::find_type_if_t = typedef typename find_type_if<Check, Ts...>::type |
| using Trinity::FormatArgs = typedef fmt::format_args |
Definition at line 32 of file StringFormat.h.
| using Trinity::FormatString = typedef fmt::format_string<Args...> |
Definition at line 28 of file StringFormat.h.
| using Trinity::FormatStringView = typedef fmt::string_view |
Definition at line 30 of file StringFormat.h.
| using Trinity::regex = typedef TC_REGEX_NAMESPACE :: regex |
| using Trinity::wregex = typedef TC_REGEX_NAMESPACE :: wregex |
|
strong |
| Enumerator | |
|---|---|
| Continue | |
| Return | |
Definition at line 203 of file GridNotifiers.h.
| TC_COMMON_API void Trinity::Abort | ( | char const * | file, |
| int | line, | ||
| char const * | function | ||
| ) |
Definition at line 122 of file Errors.cpp.
References Crash, and StringFormat().
| TC_COMMON_API void Trinity::Abort | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message, | ||
| ... | |||
| ) |
Definition at line 130 of file Errors.cpp.
References Crash, and StringFormat().
| TC_COMMON_API void Trinity::AbortHandler | ( | int | sigval | ) |
Definition at line 144 of file Errors.cpp.
References Crash, and StringFormat().
Referenced by main().
| TC_COMMON_API void Trinity::Assert | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| std::string | debugInfo, | ||
| char const * | message | ||
| ) |
Definition at line 71 of file Errors.cpp.
References Crash, and StringFormat().
| TC_COMMON_API void Trinity::Assert | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| std::string | debugInfo, | ||
| char const * | message, | ||
| char const * | format, | ||
| ... | |||
| ) |
Definition at line 79 of file Errors.cpp.
References Crash, and StringFormat().
|
inline |
|
inline |
Definition at line 193 of file GridDefines.h.
References CENTER_GRID_CELL_OFFSET, ComputeCellCoord(), and SIZE_OF_GRID_CELL.
Referenced by Map::ActiveObjectsNearGrid(), ObjectMgr::AddCreatureToGrid(), ObjectMgr::AddGameobjectToGrid(), Map::AddPlayerToMap(), Map::AddToMap(), Map::AddToMap(), Cell::CalculateCellArea(), ComputeCellCoord(), ComputeCellCoord(), Corpse::Create(), misc_commandscript::HandleGPSCommand(), Corpse::LoadCorpseFromDB(), ObjectMgr::RemoveCreatureFromGrid(), ObjectMgr::RemoveGameobjectFromGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), Cell::VisitAllObjects(), Cell::VisitAllObjects(), Cell::VisitGridObjects(), Cell::VisitGridObjects(), Cell::VisitWorldObjects(), and Cell::VisitWorldObjects().
|
inline |
Definition at line 198 of file GridDefines.h.
References CENTER_GRID_CELL_ID, CENTER_GRID_CELL_OFFSET, ComputeCellCoord(), and SIZE_OF_GRID_CELL.
|
inline |
Definition at line 181 of file GridDefines.h.
References CENTER_GRID_OFFSET, ComputeGridCoord(), and SIZE_OF_GRIDS.
Referenced by Map::AddToActive(), ComputeGridCoord(), MapManager::ExistMapAndVMap(), misc_commandscript::HandleGPSCommand(), misc_commandscript::HandleRespawnCommand(), Map::IsGridLoaded(), Map::IsRemovalGrid(), Map::LoadRespawnTimes(), Map::RemoveFromActive(), Creature::SaveRespawnTime(), and GameObject::SaveRespawnTime().
|
inline |
Definition at line 186 of file GridDefines.h.
References CENTER_GRID_ID, ComputeGridCoordSimple(), MAX_NUMBER_OF_GRIDS, and SIZE_OF_GRIDS.
Referenced by ComputeGridCoordSimple(), and GridMap::getMinHeight().
| unique_strong_ref_ptr< To > Trinity::const_pointer_cast | ( | unique_strong_ref_ptr< From > && | other | ) |
Definition at line 464 of file UniqueTrackablePtr.h.
| unique_strong_ref_ptr< To > Trinity::const_pointer_cast | ( | unique_strong_ref_ptr< From > const & | other | ) |
Definition at line 458 of file UniqueTrackablePtr.h.
| unique_weak_ptr< To > Trinity::const_pointer_cast | ( | unique_weak_ptr< From > const & | other | ) |
Definition at line 396 of file UniqueTrackablePtr.h.
|
inline |
Definition at line 114 of file TypeContainerFunctions.h.
References Count().
Referenced by TypeMapContainer< OBJECT_TYPES >::Count(), and Count().
| unique_strong_ref_ptr< To > Trinity::dynamic_pointer_cast | ( | unique_strong_ref_ptr< From > && | other | ) |
Definition at line 488 of file UniqueTrackablePtr.h.
| unique_strong_ref_ptr< To > Trinity::dynamic_pointer_cast | ( | unique_strong_ref_ptr< From > const & | other | ) |
Definition at line 482 of file UniqueTrackablePtr.h.
| unique_weak_ptr< To > Trinity::dynamic_pointer_cast | ( | unique_weak_ptr< From > const & | other | ) |
Definition at line 412 of file UniqueTrackablePtr.h.
| TC_COMMON_API void TC_COMMON_API void TC_COMMON_API void Trinity::Error | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message | ||
| ) |
Definition at line 108 of file Errors.cpp.
References Crash, and StringFormat().
| TC_COMMON_API void TC_COMMON_API void Trinity::Fatal | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message, | ||
| ... | |||
| ) |
Definition at line 93 of file Errors.cpp.
References Crash, and StringFormat().
|
inline |
Definition at line 62 of file TypeContainerFunctions.h.
References Find().
Referenced by Find(), and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Find().
| std::string Trinity::GetTypeName | ( | ) |
Definition at line 577 of file Util.h.
References Trinity::Impl::GetTypeName().
Referenced by gobject_commandscript::HandleGameObjectInfoCommand(), and npc_commandscript::HandleNpcInfoCommand().
| std::string Trinity::GetTypeName | ( | T && | v | ) |
Definition at line 579 of file Util.h.
References Trinity::Impl::GetTypeName().
|
inline |
Definition at line 28 of file Hash.h.
Referenced by std::hash< std::pair< K, V > >::operator()().
|
inline |
|
inline |
Definition at line 129 of file TypeContainerFunctions.h.
References Insert().
|
inline |
Definition at line 37 of file TypeContainerFunctions.h.
References ASSERT, and Insert().
Referenced by Insert(), Insert(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Insert(), TypeMapContainer< OBJECT_TYPES >::insert(), Trinity::CreatureSearcherBase< Check, Result >::Visit(), Trinity::GameObjectSearcherBase< Check, Result >::Visit(), Trinity::WorldObjectSearcherBase< Check, Result >::Visit(), Trinity::PlayerSearcherBase< Check, Result >::Visit(), and Trinity::UnitSearcherBase< Check, Result >::VisitImpl().
|
inline |
Returns true if the given char pointer is null.
Definition at line 90 of file StringFormat.h.
Referenced by DatabaseWorkerPool< T >::DirectExecute(), DatabaseWorkerPool< T >::DirectPExecute(), DatabaseWorkerPool< T >::Execute(), DatabaseWorkerPool< T >::PExecute(), DatabaseWorkerPool< T >::PQuery(), and DatabaseWorkerPool< T >::PQuery().
|
inlineconstexpr |
Definition at line 107 of file StringFormat.h.
|
inline |
Returns true if the given std::string is empty.
Definition at line 96 of file StringFormat.h.
|
inlineconstexpr |
Returns true if the given std::string is empty.
Definition at line 102 of file StringFormat.h.
|
inline |
Definition at line 218 of file GridDefines.h.
References IsValidMapCoord(), and MAP_HALFSIZE.
Referenced by PathGenerator::CalculatePath(), WorldSession::HandleMovementOpcode(), Position::IsPositionValid(), IsValidMapCoord(), IsValidMapCoord(), IsValidMapCoord(), IsValidMapCoord(), MapManager::IsValidMapCoord(), MapManager::IsValidMapCoord(), MapManager::IsValidMapCoord(), Player::LoadFromDB(), Creature::LoadFromDB(), ObjectMgr::LoadPointsOfInterest(), ObjectMgr::LoadScripts(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), and Unit::UpdatePosition().
|
inline |
Definition at line 223 of file GridDefines.h.
References IsValidMapCoord().
|
inline |
Definition at line 228 of file GridDefines.h.
References IsValidMapCoord().
|
inline |
Definition at line 233 of file GridDefines.h.
References IsValidMapCoord().
| std::enable_if_t< std::is_bounded_array_v< T >, unique_trackable_ptr< T > > Trinity::make_unique_trackable | ( | ) |
Definition at line 370 of file UniqueTrackablePtr.h.
| std::enable_if_t<!std::is_array_v< T >, unique_trackable_ptr< T > > Trinity::make_unique_trackable | ( | Args &&... | args | ) |
Definition at line 346 of file UniqueTrackablePtr.h.
| std::enable_if_t< std::is_bounded_array_v< T >, unique_trackable_ptr< T > > Trinity::make_unique_trackable | ( | std::remove_extent_t< T > const & | val | ) |
Definition at line 378 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::_ptr.
| std::enable_if_t< std::is_unbounded_array_v< T >, unique_trackable_ptr< T > > Trinity::make_unique_trackable | ( | std::size_t | N | ) |
Definition at line 354 of file UniqueTrackablePtr.h.
| std::enable_if_t< std::is_unbounded_array_v< T >, unique_trackable_ptr< T > > Trinity::make_unique_trackable | ( | std::size_t | N, |
| std::remove_extent_t< T > const & | val | ||
| ) |
Definition at line 362 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::_ptr.
|
constexpr |
Definition at line 35 of file StringFormat.h.
Referenced by Log::OutCommand(), and Log::OutMessage().
| T * Trinity::new_from_tuple | ( | Tuple && | args | ) |
|
inline |
Definition at line 210 of file GridDefines.h.
References MAP_HALFSIZE, and NormalizeMapCoord().
Referenced by EscortAI::AddWaypoint(), WorldObject::GetNearPoint2D(), WorldObject::GetRandomPoint(), WaypointMgr::Load(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), NormalizeMapCoord(), and WaypointMgr::ReloadPath().
| std::strong_ordering Trinity::operator<=> | ( | unique_strong_ref_ptr< T1 > const & | left, |
| std::nullptr_t | |||
| ) |
Definition at line 440 of file UniqueTrackablePtr.h.
References Trinity::unique_strong_ref_ptr< T >::get().
| std::strong_ordering Trinity::operator<=> | ( | unique_strong_ref_ptr< T1 > const & | left, |
| unique_strong_ref_ptr< T2 > const & | right | ||
| ) |
Definition at line 428 of file UniqueTrackablePtr.h.
References Trinity::unique_strong_ref_ptr< T >::get().
| std::strong_ordering Trinity::operator<=> | ( | unique_trackable_ptr< T1 > const & | left, |
| std::nullptr_t | |||
| ) |
Definition at line 340 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::get().
| std::strong_ordering Trinity::operator<=> | ( | unique_trackable_ptr< T1 > const & | left, |
| unique_trackable_ptr< T2 > const & | right | ||
| ) |
Definition at line 328 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::get().
| bool Trinity::operator== | ( | unique_strong_ref_ptr< T1 > const & | left, |
| std::nullptr_t | |||
| ) |
Definition at line 434 of file UniqueTrackablePtr.h.
References Trinity::unique_strong_ref_ptr< T >::get().
| bool Trinity::operator== | ( | unique_strong_ref_ptr< T1 > const & | left, |
| unique_strong_ref_ptr< T2 > const & | right | ||
| ) |
Definition at line 422 of file UniqueTrackablePtr.h.
References Trinity::unique_strong_ref_ptr< T >::get().
| bool Trinity::operator== | ( | unique_trackable_ptr< T1 > const & | left, |
| std::nullptr_t | |||
| ) |
Definition at line 334 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::get().
| bool Trinity::operator== | ( | unique_trackable_ptr< T1 > const & | left, |
| unique_trackable_ptr< T2 > const & | right | ||
| ) |
Definition at line 322 of file UniqueTrackablePtr.h.
References Trinity::unique_trackable_ptr< T >::get().
| unique_strong_ref_ptr< To > Trinity::reinterpret_pointer_cast | ( | unique_strong_ref_ptr< From > && | other | ) |
Definition at line 476 of file UniqueTrackablePtr.h.
| unique_strong_ref_ptr< To > Trinity::reinterpret_pointer_cast | ( | unique_strong_ref_ptr< From > const & | other | ) |
Definition at line 470 of file UniqueTrackablePtr.h.
| unique_weak_ptr< To > Trinity::reinterpret_pointer_cast | ( | unique_weak_ptr< From > const & | other | ) |
Definition at line 404 of file UniqueTrackablePtr.h.
|
inline |
Definition at line 81 of file TypeContainerFunctions.h.
References Remove().
Referenced by Remove(), and TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Remove().
| TC_COMMON_API std::string Trinity::SearchExecutableInPath | ( | std::string const & | filename | ) |
Searches for the given executable in the PATH variable and returns a non-empty string when it was found.
Definition at line 222 of file StartProcess.cpp.
Referenced by DBUpdaterUtil::CheckExecutable().
|
inline |
Definition at line 97 of file TypeContainerFunctions.h.
References Size().
Referenced by TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Size(), and Size().
| TC_COMMON_API std::shared_ptr< AsyncProcessResult > Trinity::StartAsyncProcess | ( | std::string | executable, |
| std::vector< std::string > | args, | ||
| std::string | logger, | ||
| std::string | input_file = "", |
||
| bool | secure = false |
||
| ) |
Starts a process asynchronously with the given arguments and parameters and returns an AsyncProcessResult immediately which is set, when the process exits. When an input path is given, the file will be routed to the processes stdin. When the process is marked as secure no arguments are leaked to logs. Note that most executables expect it's name as the first argument.
Definition at line 212 of file StartProcess.cpp.
| TC_COMMON_API int32 Trinity::StartProcess | ( | std::string | executable, |
| std::vector< std::string > | args, | ||
| std::string | logger, | ||
| std::string | input_file = "", |
||
| bool | secure = false |
||
| ) |
Starts a process with the given arguments and parameters and will block until the process is finished. When an input path is given, the file will be routed to the processes stdin. When the process is marked as secure no arguments are leaked to logs. Note that most executables expect it's name as the first argument.
Definition at line 203 of file StartProcess.cpp.
References Trinity::AsyncProcessResultImplementation::StartProcess().
Referenced by DBUpdater< T >::ApplyFile().
| unique_strong_ref_ptr< To > Trinity::static_pointer_cast | ( | unique_strong_ref_ptr< From > && | other | ) |
Definition at line 452 of file UniqueTrackablePtr.h.
| unique_strong_ref_ptr< To > Trinity::static_pointer_cast | ( | unique_strong_ref_ptr< From > const & | other | ) |
Definition at line 446 of file UniqueTrackablePtr.h.
| unique_weak_ptr< To > Trinity::static_pointer_cast | ( | unique_weak_ptr< From > const & | other | ) |
Definition at line 388 of file UniqueTrackablePtr.h.
|
inline |
Default TC string format function.
Definition at line 39 of file StringFormat.h.
Referenced by npc_commandscript::_IterateNotNormalLootMap(), Abort(), Abort(), AbortHandler(), AppenderFile::AppenderFile(), DBUpdater< T >::ApplyFile(), Assert(), Assert(), SecretMgr::AttemptTransition(), AuctionEntry::BuildAuctionInvoiceMailBody(), AuctionEntry::BuildAuctionMailSubject(), AuctionEntry::BuildAuctionSoldMailBody(), AuctionEntry::BuildAuctionWonMailBody(), CalendarEvent::BuildCalendarMailSubject(), MMAP::TileBuilder::buildMoveMapTile(), MMAP::MapBuilder::buildNavMesh(), ByteBufferInvalidValueException::ByteBufferInvalidValueException(), DatabaseWorkerPool< T >::DirectPExecute(), MMAP::MapBuilder::discoverTiles(), Error(), Map::ExistMap(), Doodad::Extract(), ExtractDBCFiles(), ExtractMapsFromMpq(), Doodad::ExtractSet(), ExtractSingleWmo(), Fatal(), MMAP::IntermediateValues::generateObjFile(), Trinity::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(), ScriptInfo::GetDebugInfo(), MovementGenerator::GetDebugInfo(), WDTFile::GetMap(), WorldSession::GetPlayerInfo(), GetScriptCommandName(), Log::GetTimestampStr(), LogMessage::getTimeStr(), WorldSession::HandleCalendarEventInvite(), character_commandscript::HandleCharacterChangeAccountCommand(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), server_commandscript::HandleServerDebugCommand(), AppenderConsole::InitColors(), PlayerDump::InitializeTables(), DBCDatabaseLoader::Load(), PlayerDumpReader::LoadDump(), Map::LoadMap(), MMAP::MMapManager::loadMap(), MMAP::TerrainBuilder::loadMap(), MMAP::MMapManager::loadMapData(), WardenCheckMgr::LoadWardenChecks(), MPQArchive::MPQArchive(), npc_chromie_start::npc_chromie_startAI::OnGossipSelect(), TransactionBase::PAppend(), ParsMapFiles(), DatabaseWorkerPool< T >::PExecute(), DatabaseWorkerPool< T >::PQuery(), DatabaseWorkerPool< T >::PQuery(), ReadBuild(), MPQ::ResolveArchiveFileList(), secsToTimeString(), MMAP::TileBuilder::shouldSkipTile(), Trinity::Banner::Show(), TimeToTimestampStr(), ObjectGuid::ToHexString(), _SpellScript::EffectNameCheck::ToString(), _SpellScript::EffectAuraNameCheck::ToString(), ObjectGuid::ToString(), PreparedStatementData::ToString(), PreparedStatementData::ToString(), Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryAtIndex(), Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryConsume(), Trinity::Impl::ChatCommands::MultiConsumer< Tuple, Optional< NestedNextType >, offset >::TryConsumeTo(), DBUpdater< T >::Update(), Appender::write(), and MMAP::IntermediateValues::writeIV().
|
inline |
Definition at line 52 of file StringFormat.h.
Referenced by Trinity::Impl::ByteArrayToHexStr(), and AuthSession::RealmListCallback().
| Optional< Result > Trinity::StringTo | ( | std::string_view | str, |
| Params &&... | params | ||
| ) |
Definition at line 265 of file StringConvert.h.
References params.
|
inline |
Definition at line 64 of file StringFormat.h.
Referenced by Log::OutCommandImpl(), and Log::OutMessageImpl().
|
inline |
Definition at line 77 of file StringFormat.h.
|
inline |
Definition at line 51 of file Util.h.
References Tokenize().
|
delete |
|
delete |
| std::vector< std::string_view > Trinity::Tokenize | ( | std::string_view | str, |
| char | sep, | ||
| bool | keepEmpty | ||
| ) |
Definition at line 56 of file Util.cpp.
Referenced by Object::_LoadIntoDataField(), Player::_LoadItem(), Player::BuildEnumData(), Channel::Channel(), Log::CreateAppenderFromConfig(), Log::CreateLoggerFromConfig(), WorldSession::HandleCharRaceOrFactionChangeCallback(), reload_commandscript::HandleReloadCreatureTemplateCommand(), AppenderConsole::InitColors(), Trinity::Impl::ChatCommands::ChatCommandNode::LoadCommandMap(), Trinity::Impl::ChatCommands::ChatCommandNode::LoadCommandsIntoMap(), Corpse::LoadCorpseFromDB(), ObjectMgr::LoadCreatureAddons(), ObjectMgr::LoadCreatureTemplateAddons(), DisableMgr::LoadDisables(), Metric::LoadFromConfigs(), Item::LoadFromDB(), CharmInfo::LoadPetActionBar(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), MoneyStringToMoney(), MySQLConnectionInfo::MySQLConnectionInfo(), Trinity::Impl::ChatCommands::ChatCommandNode::SendCommandHelpFor(), ChatHandler::SendGlobalGMSysMessage(), ChatHandler::SendGlobalSysMessage(), ChatHandler::SendSysMessage(), World::SetMotd(), and Tokenize().
| std::string Trinity::ToString | ( | Type && | val, |
| Params &&... | params | ||
| ) |
Definition at line 271 of file StringConvert.h.
References params, and ToString().
Referenced by CalendarEvent::BuildCalendarMailBody(), npc_commandscript::HandleNpcSetModelCommand(), Log::OutCommandImpl(), WorldPackets::PacketArrayMaxCapacityException::PacketArrayMaxCapacityException(), and ToString().
| void Trinity::VerifyOsVersion | ( | ) |
| TC_COMMON_API void Trinity::Warning | ( | char const * | file, |
| int | line, | ||
| char const * | function, | ||
| char const * | message | ||
| ) |
Definition at line 116 of file Errors.cpp.
|
constexpr |
|
constexpr |