Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <itzam_common.h>
Inheritance diagram for itzam::numeric_key< base_t >:

static int compare_keys(const void * key1, const void * key2)
The compare_keys function operates similar to the C strcmp function, returning < 0 is key1 comes before key2, 0 if the keys are equal, and > 0 when key1 sequences after key2. In the case of a numeric key, the compare function can be implemented simply through subtraction. | base_t | A numeric type, likely an integer |
|
||||||||||
|
Creates a new object with the default underlying value for data_t. |
|
||||||||||
|
Creates a new object from the raw data addressed by source. This implementation uses a simple static cast and assignment; classes that require more complex initialization will need to define a specialization of database_data.
|
|
||||||||||
|
Creates a new object that duplicates source. This implementation assumes that data_t has a simple copy constructor.
|
|
|||||||||
|
This virtual destructor exists so that derived classes can handle any resource releases they may require, if they are destroyed through a pointer to this base class. |
|
||||||||||||||||
|
All key types must define a static member with this signature, to compare raw key objects. For numeric keys, appropriate comparisons can be found via subtraction.
|
|
||||||||||
|
Assigned the value of a data_t object to an existing database_data(data_t>. This implementation assumes that data_t supports simple assignment.
Reimplemented from itzam::atomic_record< base_t >. |
|
||||||||||
|
Assigned the value of a data_t object to an existing database_data(data_t>. This implementation assumes that data_t supports simple assignment.
Reimplemented from itzam::atomic_record< base_t >. |
|
||||||||||
|
Assigned the value of one existing object to another. This implementation assumes that data_t supports simple assignment.
|
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.