Or…
- Note: The previous version computed the number of LSR Transformation objects in 14 sec. The version below does it in 5.1 sec: 2.7 times faster!
void countLSRXForm( const seObject &root ) {
iter.start( root, SE_DRM_CLS_LSR_TRANSFORMATION, true );
_lsrxform = iter.count();
- Or (slightly slower if there are many LSR Transforms):
void countLSRXForm_next( const seObject &root ) {
iter.start( root, SE_DRM_CLS_LSR_TRANSFORMATION, true );
while ( iter.next(&comp) )