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}
◆ __FORCE_DESTROY__()
void SObject::__FORCE_DESTROY__ |
( |
| ) |
|
|
virtual |
Definition at line 35 of file SObject.cpp.
35 {
36 memoryMgr->ReleaseObject(this, true);
37}
◆ Destroy()
void SObject::Destroy |
( |
| ) |
|
|
virtual |
◆ GenerateMeta()
std::string SObject::GenerateMeta |
( |
| ) |
|
|
virtual |
Definition at line 39 of file SObject.cpp.
39 {
40 return nullptr;
41}
◆ GetHash()
std::string CSE::SObject::GetHash |
( |
| ) |
const |
|
inline |
Definition at line 25 of file SObject.h.
25 {
26 return m_hash;
27 }
◆ SetHash()
void SObject::SetHash |
( |
std::string & |
hash | ) |
|
|
virtual |
Definition at line 56 of file SObject.cpp.
56 {
57 const std::string prevHash = std::string(m_hash);
58 if(hash.empty()) {
59 GenerateHashString();
60 memoryMgr->ChangeHash(prevHash, m_hash);
61 return;
62 }
63 m_hash = hash;
64 memoryMgr->ChangeHash(prevHash, hash);
65}
◆ 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: