sortorder Class Reference

Inherits smlevel_0.

List of all members.


Detailed Description

Class containing basic types used by sort and by B+-Tree key-management.

Definition at line 59 of file lexify.h.

Public Types

enum  keytype
 Enumerator that describes the basic fixed-length and variable-length (sub-)key types that are used in B+-Trees and can be used in sorting. More...

Public Member Functions

bool lexify (const key_type_s *kp, const void *d, void *res)
 Convert to lexicographic form.
bool unlexify (const key_type_s *kp, const void *str, void *res)
 Convert from lexicographic form.

Static Public Member Functions

static keytype convert (const key_type_s *k)
 Convert from a key_type_s to a keytype enumerator value.


Member Enumeration Documentation

enum sortorder::keytype

Enumerator that describes the basic fixed-length and variable-length (sub-)key types that are used in B+-Trees and can be used in sorting.

Definition at line 90 of file lexify.h.


Member Function Documentation

bool sortorder::lexify ( const key_type_s kp,
const void *  d,
void *  res 
)

Convert to lexicographic form.

Parameters:
[in] kp Describes the type and length of the string to be converted.
[in] d The string to be converted.
[out] res The result.
Invokes a predefined LEXFUNC for the know keytype. Returns true if it worked, false otherwise.

bool sortorder::unlexify ( const key_type_s kp,
const void *  str,
void *  res 
)

Convert from lexicographic form.

Parameters:
[in] kp Describes the type and length of the string to be converted.
[in] str The string in lexicographic form to be converted.
[out] res The result.
Invokes a predefined inverse LEXFUNC for the known keytype. Returns true if it worked, false otherwise


The documentation for this class was generated from the following file:
Generated on Mon Jan 2 15:14:13 2012 for Shore Storage Manager by  doxygen 1.4.7