Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
OOF_recordSelectionRep Class Reference

Middle level in 3-layer abstraction of selection. More...

#include <oofrecs.h>

Inheritance diagram for OOF_recordSelectionRep:
Inheritance graph
Collaboration diagram for OOF_recordSelectionRep:
Collaboration graph

Public Types

enum  EselectionState { empty, oneRec, someRecs, allRecs }

Public Member Functions

void decRefs ()
void incRefs ()

Protected Attributes

unsigned int mReferences


class OOF_recordSelection

Detailed Description

Middle level in 3-layer abstraction of selection.

Implements COW (Copy On Write) access to selections so using selections is lightweight operation until you need to change the selection via resorting or changing selection membership.

This is the heart and soul of deferred evaluation in OOFILE and makes it very efficient to use cloned tables as alternate iterators over a selection.
Used by OOF_recordSelection and shares a OOF_recordSelectionRep.
if you change this code be very careful to fully test OOFILE.

Definition at line 616 of file oofrecs.h.

Member Function Documentation

void OOF_mixRefCount::decRefs ( )
void OOF_mixRefCount::incRefs ( )

Friends And Related Function Documentation

friend class OOF_recordSelection

Definition at line 665 of file oofrecs.h.

Member Data Documentation

unsigned int OOF_mixRefCount::mReferences

The documentation for this class was generated from the following files: