Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBID is a wrapper for a uint32_t to be used as ID. More...
#include <tb_id.h>
Public Member Functions | |
TBID (uint32_t id_=0) | |
TBID (const char *string) | |
TBID (const TBID &id_) | |
TBID (const TBStr &id_) | |
void | Set (uint32_t newid) |
void | Set (const char *string) |
void | Set (const TBID &newid) |
void | Set (const TBStr &str) |
operator uint32_t () const | |
const TBID & | operator= (const TBID &id) |
TBID is a wrapper for a uint32_t to be used as ID.
The uint32_t can be set directly to any uint32_t, or it can be set from a string which will be hashed into the uint32_t.