Phoenix
Object-oriented orthogonally persistent operating system
|
Base class for all Triton objects. More...
#include <object.h>
Public Types | |
typedef u64 | hash_t |
Type of object hash value. | |
Public Member Functions | |
void | AddRef () |
Add reference to the object. | |
int | Release () |
Release reference to the object. | |
virtual const char * | __name__ () const |
Method for retrieving name of object class. | |
virtual hash_t | __hash__ () const |
Get objects hash. |
Base class for all Triton objects.
All the library and client code objects should be derived from this class.
typedef u64 triton::Object::hash_t |
Type of object hash value.
virtual hash_t triton::Object::__hash__ | ( | ) | const [inline, virtual] |
Get objects hash.
The hash is used for optimized organizing of objects in collections. The hash should provide good distribution of values. Two equal objects must return the same hash value.
Reimplemented in triton::triton_internal::Numeric< T >, triton::Tuple< components >, triton::triton_internal::Numeric< enable_if< is_integral< T >(), T > >, and triton::triton_internal::Numeric< enable_if< is_float< T >(), T > >.
virtual const char* triton::Object::__name__ | ( | ) | const [inline, virtual] |
Method for retrieving name of object class.
Reimplemented in triton::TritonError, triton::NullPtrError, triton::MemoryError, triton::LookupError, triton::IndexError, triton::KeyError, and triton::Tuple< components >.
void triton::Object::AddRef | ( | ) | [inline] |
Add reference to the object.
int triton::Object::Release | ( | ) | [inline] |
Release reference to the object.