32 for (
unsigned i=
m_layer.size() ;
i-- ; ) {
43 std::map<unsigned, unsigned>::const_iterator litr =
m_layermap.find(
layer);
45 else layer = litr->second;
61 std::map<unsigned, unsigned>::const_iterator litr =
m_layermap.find(
layer);
63 else layer = litr->second;
79 while ( litr!=lend ) {
80 (*litr++).setupDisabledModuleList();
98 std::set<unsigned> layerset;
102 for ( ; mptr!=modules.end() ; ++mptr ) {
103 int layer = mptr->layer();
106 if ( !mptr->enabled() )
continue;
125 for (
unsigned i=0 ; litr!=lend ; ++litr,
i++ ) {
128 m_layermap.insert( std::map<unsigned, unsigned>::value_type( *litr,
i ) );
137 for ( mptr=modules.begin() ; mptr!=modules.end() ; ++mptr ) {
143 if ( !mptr->enabled() )
continue;
149 m_layer[litr->second].addModule(*mptr);