Definition at line 7 of file SObject.h.
◆ SObject() [1/2]
Definition at line 11 of file SObject.cpp.
11 {
13 GenerateHashString();
14
15 memoryMgr->Register(this);
16}
◆ SObject() [2/2]
SObject::SObject |
( |
bool | isRegister | ) |
|
|
explicit |
Definition at line 18 of file SObject.cpp.
18 {
19 GenerateHashString();
20 if (isRegister) memoryMgr->Register(this);
21}
◆ Destroy()
void SObject::Destroy |
( |
| ) |
|
|
virtual |
◆ GetHash()
std::string CSE::SObject::GetHash |
( |
| ) |
const |
|
inline |
Definition at line 21 of file SObject.h.
21 {
22 return m_hash;
23 }
◆ SetHash()
void SObject::SetHash |
( |
std::string & | hash | ) |
|
|
virtual |
Definition at line 48 of file SObject.cpp.
48 {
49 const std::string prevHash = std::string(m_hash);
50 if (hash.empty()) {
51 GenerateHashString();
52 memoryMgr->ChangeHash(prevHash, m_hash);
53 return;
54 }
55 m_hash = hash;
56 memoryMgr->ChangeHash(prevHash, hash);
57}
◆ SetUndestroyable()
void SObject::SetUndestroyable |
( |
bool | enable | ) |
|
|
virtual |
Definition at line 26 of file SObject.cpp.
26 {
27 isUndestroyable = enable;
28}
◆ MemoryMgr
◆ m_hash
std::string CSE::SObject::m_hash |
|
protected |
The documentation for this class was generated from the following files: