OOFILE  1.9
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
[legend]
Collaboration diagram for OOF_recordSelectionRep:
Collaboration graph
[legend]

Public Types

enum  EselectionState { empty, oneRec, someRecs, allRecs }
 

Public Member Functions

void decRefs ()
 
void incRefs ()
 

Protected Attributes

unsigned int mReferences
 

Friends

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.
Warning
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 ( )
inherited
void OOF_mixRefCount::incRefs ( )
inlineinherited

Friends And Related Function Documentation

friend class OOF_recordSelection
friend

Definition at line 665 of file oofrecs.h.

Member Data Documentation

unsigned int OOF_mixRefCount::mReferences
protectedinherited

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