15 #include <vlutil/vlList.h>
73 DtListItem* first()
const;
74 DtListItem* last()
const;
77 unsigned count()
const;
117 virtual void removeAndDelete(DtListItem* item);
121 virtual void removeAll();
124 virtual void removeAllAndDelete();
146 virtual DtlObjPtr getLocalData(DtlObjPtr args);
340 return myList.itemLookup(data);
345 return remove(data->
myItem);
DtList * myList
Definition: rwIntrusiveList.h:218
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
DtListItem * addToEnd(DtRwListedObj *data)
Add element to the end of the list. Returns the DtListItem envelope object that contains your new ele...
Definition: rwIntrusiveList.h:266
DtListItem * itemLookup(DtRwListedObj *data) const
Returns the DtListItem envelope object containing the indicated data element. This function should ne...
Definition: rwIntrusiveList.h:338
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtListItem * last() const
Definition: rwIntrusiveList.h:256
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
unsigned count() const
Returns the number of elements in the list.
Definition: rwIntrusiveList.h:261
Definition: readerWriterRegistry.h:39
void removeAndDelete(DtRwListedObj *data)
Remove and delete an element from the list.
Definition: rwIntrusiveList.h:348
DtRwListedObj * wrapPrev() const
Definition: rwIntrusiveList.h:300
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwListedObj * remove(DtRwListedObj *data)
Remove an element from the list. Note: remove does not free memory of data associated with the item...
Definition: rwIntrusiveList.h:343
DtListItem * first() const
Return first and last item on the list. DtListItem is an envelope for your data. The data can be obta...
Definition: rwIntrusiveList.h:251
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual DtListItem * addToList(DtRwListedObj *data, DtRwListedObj *after)
Add element to the list just after the indicated item. Returns the DtListItem envelope object that co...
class DtRwIntrusiveList:
Definition: rwIntrusiveList.h:38
DtRwListedObj * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: rwIntrusiveList.h:277
! ! This is a base class from which elements of a DtRwIntrusiveList must be ! derived. Previous and next pointers can be obtained directly from the ! DtRwListedObj, without going through the DtRwIntrusiveList to which it has ! been added. !
Definition: rwIntrusiveList.h:173
DtListItem * addToStart(DtRwListedObj *data)
Add element to the beginning of the list. Returns the DtListItem envelope object that contains your n...
Definition: rwIntrusiveList.h:326
DtListItem * myItem
Definition: rwIntrusiveList.h:219
DtRwListedObj * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: rwIntrusiveList.h:292
DtRwListedObj * firstObj() const
Return first and last item on the list.
Definition: rwIntrusiveList.h:224
DtListItem * add(DtRwListedObj *data)
Add element to the end of the list. Returns the DtListItem envelope object that contains your new ele...
Definition: rwIntrusiveList.h:309
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DtRwListedObj * prev() const
Definition: rwIntrusiveList.h:284
DtListItem * addBefore(DtRwListedObj *data, DtRwListedObj *before)
Add element to the list just before the indicated object. Returns the DtListItem envelope object that...
Definition: rwIntrusiveList.h:320
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtListItem * addAfter(DtRwListedObj *data, DtRwListedObj *after)
Add element to the list just after the indicated object. Returns the DtListItem envelope object that ...
Definition: rwIntrusiveList.h:314
DtRwListedObj * lastObj() const
Definition: rwIntrusiveList.h:238
DtList myList
The actual DtList used to store the items.
Definition: rwIntrusiveList.h:164