offbrand
A collection of generic, reference counted datastructures in C for C
|
obtest Method Implementation More...
Functions | |
obtest * | obtest_new (uint32_t id) |
Constructor, creates an instance of obtest with a specified id. More... | |
uint32_t | obtest_id (obtest *a) |
Returns the id of an obtest instance. More... | |
ob_hash_t | obtest_hash (const obj *to_hash) |
Hash function for obtest. More... | |
int8_t | obtest_compare (const obj *a, const obj *b) |
Compares two instances of obtest. More... | |
void | obtest_display (const obj *test) |
Display function for an instance of obtest. More... | |
void | obtest_destroy (obj *to_dealloc) |
Destructor for obtest. More... | |
obtest Method Implementation
Compares two instances of obtest.
a | A non-NULL obj pointer to type obtest |
b | A non-NULL obj pointer to type obtest |
OB_LESS_THAN | obj a is less than b |
OB_GREATER_THAN | obj a is equivalent to b |
OB_EQUAL_TO | obj a is greater than b |
void obtest_destroy | ( | obj * | to_dealloc) |
Destructor for obtest.
to_dealloc | An obj pointer to an instance of obtest with reference count of 0 |
void obtest_display | ( | const obj * | test) |
Display function for an instance of obtest.
test | A non-NULL obj pointer to type obtest |
Hash function for obtest.
to_hash | An obj pointer to an instance of OBString |
uint32_t obtest_id | ( | obtest * | a) |
Returns the id of an obtest instance.
a | Pointer to an instance of obtest |
obtest* obtest_new | ( | uint32_t | id) |
Constructor, creates an instance of obtest with a specified id.
id | Integer id for the created obtest |