ssm_sort::generic_CSKF_cookie Struct Reference
[Sorting]

List of all members.

Detailed Description

A cookie passed to generic_CSKF callback must point to one of these.

This struct may be used by user-defined CSKF callback functions. For example:

    w_rc_t 
    example_stringCSKF(
        const rid_t&        ,  // not used
        const object_t&     obj_in,
        key_cookie_t        cookie,  // generic_CSKF_cookie
        factory_t&          , // not used
        skey_t*             out
    )
    {
        // Cast the cookie to a pointer to a generic_CSKF_cookie.
        generic_CSKF_cookie&  K = *(generic_CSKF_cookie*)(cookie.make_ptr());
        bool is_in_header = false;

        // Populate the output : point to key in body of record/object 
        new(out) skey_t(obj_in, K.offset, K.length, is_in_header);
        return RCOK;
    }

Definition at line 828 of file sort_s.h.

Public Member Functions

void clear ()

Public Attributes

LEXFUNC func
 value == noLEXFUNC means don't lexify
bool in_hdr
 True if the key is in the record header, false if in body.
smsize_t offset
 Offset from start of record header or body.
smsize_t length
 Key length.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 9 08:42:54 2010 for Shore Storage Manager by  doxygen 1.4.7