DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Object.h
Go to the documentation of this file.
1
3
4#pragma once
5#include "Common.h"
6#include <cstddef>
7
8namespace DotNetDupe {
9 namespace System {
18 class Object {
19 public:
21 DOTNETDUPE_API virtual ~Object() = default;
22
26 DOTNETDUPE_API bool operator == (const Object& obj) const;
27
31 DOTNETDUPE_API virtual bool Equals(const Object& obj) const;
32
37 DOTNETDUPE_API static bool Equals(const Object& obj1, const Object& obj2);
38
41 DOTNETDUPE_API virtual int GetHashCode() const;
42
45 DOTNETDUPE_API wchar_t* ToStringW() const;
46
49 DOTNETDUPE_API char* ToStringA() const;
50 };
51
56
60 }
61}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
virtual bool Equals(const Object &obj) const
Determines whether the specified Object is equal to the current Object.
Definition Object.cpp:11
char * ToStringA() const
Returns narrow-character string representation.
Definition Object.cpp:31
virtual ~Object()=default
Virtual destructor ensuring polymorphic cleanup.
bool operator==(const Object &obj) const
Determines reference equality between two objects.
Definition Object.cpp:6
wchar_t * ToStringW() const
Returns wide-character string representation.
Definition Object.cpp:26
virtual int GetHashCode() const
Serves as the default hash function.
Definition Object.cpp:21
void * AllocateCollectionBuffer(size_t size)
Internal memory allocator for generic collections.
Definition Object.cpp:39
void FreeCollectionBuffer(void *p)
Frees collection buffer allocated with AllocateCollectionBuffer.
Definition Object.cpp:44