61 virtual DtListItem*
add(T* data);
65 virtual DtListItem*
addToEnd(T* data);
70 void*
remove(DtListItem* item);
71 void*
remove(T* item);
82 for (T* i = iter.
first(); i; i = iter.
next())
84 i->setName(i->type());
93 #include "vrfutil/rwFactoryItemList.inl"
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
DtRwFactoryItemList & operator=(const DtRwFactoryItemList &orig)
virtual ~DtRwFactoryItemList() override
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual void removeAll() override
Removes all entries from the list. If autoDelete is true, also deletes all items. ...
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
virtual DtListItem * addToStart(T *data)
Inserts at front of list. Clones item added.
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
Definition: readerWriterRegistry.h:39
DtRwFactoryItemList()
default constructor
virtual void removeAndDeleteAll() override
Removes and deletes all entries in the list.
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual T * first(bool move=true)
Definition: iteratorBase.h:331
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtIteratorBase< T > iterator
Definition: rwFactoryItemList.h:29
virtual T * next(bool move=true)
Definition: iteratorBase.h:332
virtual DtListItem * add(T *data)
Define this function to hide the DtRwList version, and accept only the specific DtReaderWriter subcla...
Templated RW list which contains items generated from a factory all sharing the same parent type...
Definition: rwFactoryItemList.h:26
void copyList(const DtRwFactoryItemList &orig)
virtual DtListItem * addToEnd(T *data)
Appends to end of list. Clones item added.
virtual void prePutSelf() override
Called before either version of put self (file or environment). Default is no-op. ...
Definition: rwFactoryItemList.h:78
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtIteratorBase< const T > const_iterator
Definition: rwFactoryItemList.h:30