#include <sdbllist.hpp>
Collaboration diagram for SDoubleListRange:
Definition at line 219 of file sdbllist.hpp.
Public Member Functions | |
SDoubleListRange () | |
Default constructor. | |
SDoubleListRange (const SDoubleListRef &a_master) | |
Range to match the whole list. | |
SDoubleListRange (const SDoubleListRef &a_master, const SBacklinkRef &a_first, const SBacklinkRef &a_follow) | |
Arbitrary range. | |
SDoubleListRange (const SDoubleListRange &o) | |
Copy constructor. | |
void | operator= (const SDoubleListRange &a) |
Assignment. | |
bool | IsEmpty () const |
bool | Exhausted () const |
SDoubleListRef | Copy () const |
Make a copy of the range. | |
LeftEndMover | LeftEnd () |
Get the left end of the range. | |
RightEndMover | RightEnd () |
Get the right end of the range. | |
const SDoubleListRef & | GetMaster () const |
Get the object we're operating on. | |
SBacklinkRef | GetFirst () const |
Get the first item of the range. | |
const SBacklinkRef & | GetFollow () const |
Get the item which immediately follows the range. | |
SBacklinkRef | GetLast () const |
Get the last item of the range. | |
void | SetFirst (const SBacklinkRef &r) |
Move the left end to the given position. | |
void | SetFollow (const SBacklinkRef &r) |
Move the right end to the given position. | |
SDoubleListRange | WhatsBefore () const |
Get the part of the list before the range. | |
SDoubleListRange | WhatsAfter () const |
Get the part of the list after the range. | |
Friends | |
class | LeftEndMover |
class | RightEndMover |
Classes | |
class | LeftEndMover |
Slave class which represents the left end of the range. More... | |
class | RightEndMover |
Slave class which represents the right end of the range. More... |
|
Default constructor.
Definition at line 228 of file sdbllist.hpp. Referenced by WhatsAfter(), and WhatsBefore(). |
|
Range to match the whole list.
Definition at line 231 of file sdbllist.hpp. References PTheEmptyList. |
|
Arbitrary range.
Definition at line 245 of file sdbllist.hpp. |
|
Copy constructor.
Definition at line 252 of file sdbllist.hpp. |
|
Assignment.
Definition at line 257 of file sdbllist.hpp. |
|
Is the range empty, that is, do its ends point to the same position Definition at line 263 of file sdbllist.hpp. References SBacklinkRef::GetPtr(). Referenced by GetFirst(), GetLast(), SDoubleListRange::RightEndMover::operator SBacklinkRef(), SDoubleListRange::LeftEndMover::operator SBacklinkRef(), SDoubleListRange::LeftEndMover::operator++(), and SDoubleListRange::RightEndMover::operator--(). |
|
Is the range 'exhausted', that is, it starts nowhere? Definition at line 266 of file sdbllist.hpp. References SReference::IsEmptyList(). |
|
Make a copy of the range. The items are not copied, but the list cells are copied so that no SExpressionBacklink's are shared Definition at line 166 of file sdbllist.cpp. References SReference::Car(), SBacklinkRef::GetPtr(), and SReference::IsEmptyList(). |
|
Get the left end of the range.
Definition at line 311 of file sdbllist.hpp. References LeftEndMover. Referenced by SDoubleListRange::RightEndMover::operator--(). |
|
Get the right end of the range.
Definition at line 313 of file sdbllist.hpp. References RightEndMover. |
|
Get the object we're operating on.
Definition at line 316 of file sdbllist.hpp. |
|
Get the first item of the range.
Definition at line 280 of file sdbllist.cpp. References IsEmpty(), and PTheEmptyList. |
|
Get the item which immediately follows the range.
Definition at line 286 of file sdbllist.cpp. |
|
Get the last item of the range.
Definition at line 291 of file sdbllist.cpp. References IsEmpty(), SReference::IsEmptyList(), and PTheEmptyList. |
|
Move the left end to the given position.
Definition at line 327 of file sdbllist.hpp. |
|
Move the right end to the given position.
Definition at line 330 of file sdbllist.hpp. |
|
Get the part of the list before the range.
Definition at line 333 of file sdbllist.hpp. References SDoubleListRange(). |
|
Get the part of the list after the range.
Definition at line 336 of file sdbllist.hpp. References PTheEmptyList, and SDoubleListRange(). |
|
Definition at line 290 of file sdbllist.hpp. Referenced by LeftEnd(). |
|
Definition at line 308 of file sdbllist.hpp. Referenced by RightEnd(). |