Arbiter
Dependency manager library that supports decentralization
|
Represents an arbitrary value type that can be associated with Arbiter data types and functionality. More...
Public Attributes | |
char *(* | createDescription )(const void *data) |
An operation to convert this data object to a string. More... | |
void * | data |
The underlying data object. More... | |
void(* | destructor )(void *data) |
A cleanup function to call when the ArbiterUserValue is done being used. More... | |
bool(* | equalTo )(const void *first, const void *second) |
An equality operation over two data objects. More... | |
size_t(* | hash )(const void *first) |
Generates a hash of the data object. More... | |
bool(* | lessThan )(const void *first, const void *second) |
Returns whether first is less than (should be ordered before) second . More... | |
Represents an arbitrary value type that can be associated with Arbiter data types and functionality.
For example, ArbiterProjectIdentifiers are defined by providing a user value type.
char*(* ArbiterUserValue::createDescription) (const void *data) |
void* ArbiterUserValue::data |
The underlying data object.
This object should be considered to be owned by Arbiter as soon as the ArbiterUserValue is passed into any API. It will eventually be cleaned up by the library through invocation of the provided destructor
.
void(* ArbiterUserValue::destructor) (void *data) |
A cleanup function to call when the ArbiterUserValue is done being used.
This may be NULL.
bool(* ArbiterUserValue::equalTo) (const void *first, const void *second) |
size_t(* ArbiterUserValue::hash) (const void *first) |
bool(* ArbiterUserValue::lessThan) (const void *first, const void *second) |