mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Miscellaneous code cleanup in the MaxmindDB module.
This commit is contained in:
@ -98,22 +98,6 @@ public:
|
||||
*/
|
||||
LookupResult & operator = (LookupResult &&) = default;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the internal result structure reference.
|
||||
*/
|
||||
Reference GetHandle()
|
||||
{
|
||||
return m_Result;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the internal result structure reference.
|
||||
*/
|
||||
ConstRef GetHandle() const
|
||||
{
|
||||
return m_Result;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to convert an instance of this type to a string.
|
||||
*/
|
||||
@ -135,6 +119,24 @@ public:
|
||||
return m_Handle && m_Result.found_entry;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Release the manages handles/pointers and become a null instance.
|
||||
*/
|
||||
void Release();
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the database associated with the managed handle/pointer.
|
||||
*/
|
||||
Database GetDatabase() const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Return the number of active references to the managed database instance.
|
||||
*/
|
||||
Uint32 GetRefCount() const
|
||||
{
|
||||
return m_Handle.Count();
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* See whether the result contains a valid entry in the associated database.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user