// **************************************************************************************************** // File: Transistors.h // Authors: YIFEI WU // Date : 21/12/2006 // **************************************************************************************************** #ifndef HURRICANE_TRANSISTORS #define HURRICANE_TRANSISTORS #include "Collection.h" namespace Hurricane { class Transistor; // **************************************************************************************************** // Transistors declaration // **************************************************************************************************** typedef GenericCollection Transistors; // **************************************************************************************************** // TransistorLocator declaration // **************************************************************************************************** typedef GenericLocator TransistorLocator; // **************************************************************************************************** // TransistorFilter declaration // **************************************************************************************************** typedef GenericFilter TransistorFilter; // **************************************************************************************************** // for_each_transistor declaration // **************************************************************************************************** #define for_each_transistor(transistor, transistors)\ /******************************/\ {\ TransistorLocator _locator = transistors.GetLocator();\ while (_locator.IsValid()) {\ Transistor* transistor = _locator.GetElement();\ _locator.Progress(); } #endif // HURRICANE_TRANSISTORS