![]() |
Public API Reference |
#include "iutil/object.h"
Go to the source code of this file.
Compounds | |
class | csTypedObjectIterator |
Helper class for CS_DECLARE_OBJECT_ITERATOR macro. More... | |
Defines | |
#define | CS_DECLARE_OBJECT_ITERATOR(NAME, INTERFACE) |
Defines a typed objectiterator class, descending from csTypedObjectIterator. More... |
Definition in file objiter.h.
|
Value: class NAME : public csTypedObjectIterator \ { \ protected: \ virtual void GetRequestedInterface (scfInterfaceID &id, \ int &ver) const \ { id = INTERFACE##_scfGetID (); ver = INTERFACE##_VERSION; } \ public: \ inline NAME (iObject *Parent) : csTypedObjectIterator (Parent) \ { } \ inline INTERFACE *Next () \ { return (INTERFACE*)(iBase*)csTypedObjectIterator::Next (); } \ }; This macro assumes that the requested interface is already declared as a fast interface. |