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)
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
virtual DtListItem * addToStart(T *data)
Inserts at front of list. Clones item added.
void removeAndDeleteAll()
Removes and deletes all entries in the list.
Definition: readerWriterRegistry.h:39
DtRwFactoryItemList()
default constructor
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
void removeAll()
Removes all entries from the list. If autoDelete is true, also deletes all items. ...
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...
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
Definition: rwFactoryItemList.h:78
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 DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual ~DtRwFactoryItemList()
DtIteratorBase< const T > const_iterator
Definition: rwFactoryItemList.h:30