![]() |
mFrame
|
雜湊碼類別,用於封裝及處理物件雜湊碼。 更多...
#include <Hashcode.h>
公開方法(Public Methods) | |
Hashcode (ufm::lang::Interface &interface) | |
建構子:透過 Interface 參數建立 Hashcode 物件。 | |
Hashcode (int hashcode) | |
建構子:直接使用整數值指定雜湊碼。 | |
virtual int | hashcode (void) const override |
取得物件的雜湊碼。 | |
![]() | |
void * | operator new (size_t n) |
使用運算子 new 分配記憶體 | |
void * | operator new (size_t n, void *p) |
在指定記憶體上調用運算子 new | |
virtual ufm::lang::Object & | getObject (void) override |
取得對應的 Object 物件 | |
void | delay (int milliseconds) const |
延遲指定的毫秒數進行執行緒等待 | |
bool | equals (Object *object) const |
判斷與另一物件是否為相同參照(指標型態比較) | |
bool | equals (Object &object) const |
判斷與另一物件是否為相同參照(參照型態比較) | |
void | wait (void) const |
使當前線程等待直到被通知 | |
bool | wait (int timeout) const |
等待通知或超時 | |
bool | yield (void) const |
讓執行緒讓渡控制權給同優先權的下一個執行緒 | |
int | lock (void) const |
核心鎖定,鎖定期間禁止線程切換 | |
int | unlock (void) const |
核心解鎖 | |
ufm::sys::Thread * | currentThread (void) const |
取得當前執行緒指標 | |
![]() | |
virtual | ~Interface (void)=default |
虛擬析構函式 | |
雜湊碼類別,用於封裝及處理物件雜湊碼。
該類別繼承自 ufm::lang::Object,提供透過介面建立物件及直接使用整數指定雜湊碼的功能, 並實作取得物件雜湊碼的介面。
ufm::lang::Hashcode::Hashcode | ( | ufm::lang::Interface & | interface | ) |
ufm::lang::Hashcode::Hashcode | ( | int | hashcode | ) |
建構子:直接使用整數值指定雜湊碼。
hashcode | 初始雜湊碼值。 |
|
overridevirtual |