akregator
c4_Sequence Class Reference
#include <mk4.h>
List of all members.
Detailed Description
A sequence is an abstract base class for views on ranges of records.
Definition at line 846 of file mk4.h.
|
Public Member Functions |
| virtual int | AddHandler (c4_Handler *)=0 |
| void | Attach (c4_Sequence *) |
| c4_Bytes & | Buffer () |
| | c4_Sequence () |
| virtual int | Compare (int, c4_Cursor) const |
| virtual c4_Handler * | CreateHandler (const c4_Property &)=0 |
| void | DecRef () |
| virtual const char * | Description () |
| void | Detach (c4_Sequence *) |
| virtual bool | Get (int, int, c4_Bytes &) |
| c4_Dependencies * | GetDependencies () const |
| virtual const c4_Sequence * | HandlerContext (int) const =0 |
| void | IncRef () |
| virtual void | InsertAt (int, c4_Cursor, int=1) |
| virtual int | ItemSize (int, int) |
| virtual void | Move (int, int) |
| virtual c4_Handler & | NthHandler (int) const =0 |
| int | NthPropId (int) const |
| virtual int | NumHandlers () const =0 |
| int | NumRefs () const |
| virtual int | NumRows () const =0 |
| virtual c4_Persist * | Persist () const |
| virtual void | PostChange (c4_Notifier &) |
| virtual c4_Notifier * | PreChange (c4_Notifier &) |
| int | PropIndex (const c4_Property &) |
| int | PropIndex (int) |
| virtual int | RemapIndex (int, const c4_Sequence *) const |
| virtual void | RemoveAt (int, int=1) |
| void | Resize (int, int=-1) |
| virtual bool | RestrictSearch (c4_Cursor, int &, int &) |
| virtual void | Set (int, const c4_Property &, const c4_Bytes &) |
| void | SetAt (int, c4_Cursor) |
| virtual void | SetNumRows (int)=0 |
| const char * | UseTempBuffer (const char *) |
Protected Member Functions |
| void | ClearCache () |
| virtual | ~c4_Sequence () |
Protected Attributes |
| int | _propertyLimit |
| short * | _propertyMap |
| c4_Bytes * | _tempBuf |
Constructor & Destructor Documentation
| c4_Sequence::c4_Sequence |
( |
|
) |
|
Abstract constructor.
Definition at line 16 of file viewx.cpp.
| c4_Sequence::~c4_Sequence |
( |
|
) |
[protected, virtual] |
Member Function Documentation
| virtual int c4_Sequence::AddHandler |
( |
c4_Handler * |
|
) |
[pure virtual] |
Register a sequence to receive change notifications.
Definition at line 344 of file viewx.cpp.
Gives access to a general purpose temporary buffer.
Definition at line 128 of file viewx.cpp.
| void c4_Sequence::ClearCache |
( |
|
) |
[protected] |
| int c4_Sequence::Compare |
( |
int |
index_, |
|
|
c4_Cursor |
cursor_ | |
|
) |
| | const [virtual] |
Compare the specified row with another one.
Definition at line 54 of file viewx.cpp.
| void c4_Sequence::DecRef |
( |
|
) |
|
Decrement the reference count, delete objects when last.
Definition at line 41 of file viewx.cpp.
| const char * c4_Sequence::Description |
( |
|
) |
[virtual] |
Unregister a sequence which received change notifications.
Definition at line 354 of file viewx.cpp.
| bool c4_Sequence::Get |
( |
int |
index_, |
|
|
int |
propId_, |
|
|
c4_Bytes & |
buf_ | |
|
) |
| | [virtual] |
Retrieve one data item from this sequence.
Definition at line 314 of file viewx.cpp.
Return a pointer to the dependencies, or null.
| virtual const c4_Sequence* c4_Sequence::HandlerContext |
( |
int |
|
) |
const [pure virtual] |
| void c4_Sequence::IncRef |
( |
|
) |
|
Increment the reference count of this sequence.
Definition at line 34 of file viewx.cpp.
| void c4_Sequence::InsertAt |
( |
int |
index_, |
|
|
c4_Cursor |
newElem_, |
|
|
int |
count_ = 1 | |
|
) |
| | [virtual] |
| int c4_Sequence::ItemSize |
( |
int |
index_, |
|
|
int |
propId_ | |
|
) |
| | [virtual] |
Return width of specified data item.
Definition at line 309 of file viewx.cpp.
| void c4_Sequence::Move |
( |
int |
from_, |
|
|
int |
to_ | |
|
) |
| | [virtual] |
Move a row to another position.
careful, this does no index remapping, wrong for derived seq's
Reimplemented in c4_CustomSeq.
Definition at line 226 of file viewx.cpp.
| virtual c4_Handler& c4_Sequence::NthHandler |
( |
int |
|
) |
const [pure virtual] |
| int c4_Sequence::NthPropId |
( |
int |
index_ |
) |
const |
Return the id of the N-th property.
Definition at line 237 of file viewx.cpp.
| virtual int c4_Sequence::NumHandlers |
( |
|
) |
const [pure virtual] |
| int c4_Sequence::NumRefs |
( |
|
) |
const |
Return the current reference count.
Definition at line 49 of file viewx.cpp.
| virtual int c4_Sequence::NumRows |
( |
|
) |
const [pure virtual] |
| c4_Persist * c4_Sequence::Persist |
( |
|
) |
const [virtual] |
| void c4_Sequence::PostChange |
( |
c4_Notifier & |
|
) |
[virtual] |
Called after changes have been made to the sequence.
Definition at line 372 of file viewx.cpp.
Called just before a change is made to the sequence.
Reimplemented in c4_DerivedSeq.
Definition at line 366 of file viewx.cpp.
| int c4_Sequence::PropIndex |
( |
const c4_Property & |
prop_ |
) |
|
Find the index of a property, or create a new entry.
Definition at line 285 of file viewx.cpp.
| int c4_Sequence::PropIndex |
( |
int |
propId_ |
) |
|
Find the index of a property by its id.
CACHING NOTE: derived views will fail if underlying view is restructured
Definition at line 249 of file viewx.cpp.
| int c4_Sequence::RemapIndex |
( |
int |
index_, |
|
|
const c4_Sequence * |
seq_ | |
|
) |
| | const [virtual] |
| void c4_Sequence::RemoveAt |
( |
int |
index_, |
|
|
int |
count_ = 1 | |
|
) |
| | [virtual] |
Remove one or more rows from this sequence.
careful, this does no index remapping, wrong for derived seq's
Reimplemented in c4_CustomSeq.
Definition at line 213 of file viewx.cpp.
| void c4_Sequence::Resize |
( |
int |
newSize_, |
|
|
int |
= -1 | |
|
) |
| | |
Change number of rows, either by inserting or removing them.
Definition at line 140 of file viewx.cpp.
| bool c4_Sequence::RestrictSearch |
( |
c4_Cursor |
, |
|
|
int & |
, |
|
|
int & |
| |
|
) |
| | [virtual] |
| void c4_Sequence::Set |
( |
int |
index_, |
|
|
const c4_Property & |
prop_, |
|
|
const c4_Bytes & |
buf_ | |
|
) |
| | [virtual] |
Store a data item into this sequence.
Definition at line 323 of file viewx.cpp.
| void c4_Sequence::SetAt |
( |
int |
index_, |
|
|
c4_Cursor |
newElem_ | |
|
) |
| | |
Replace the contents of a specified row.
Definition at line 82 of file viewx.cpp.
| virtual void c4_Sequence::SetNumRows |
( |
int |
|
) |
[pure virtual] |
| const char * c4_Sequence::UseTempBuffer |
( |
const char * |
str_ |
) |
|
Member Data Documentation
Optimization: cached property index.
Definition at line 855 of file mk4.h.
Optimization: property map for faster access.
Definition at line 857 of file mk4.h.
The documentation for this class was generated from the following files: