typename InterfaceMap::iterator iter = m_pMap->begin(); typename InterfaceMap::iterator end = m_pMap->end();
sal_uInt32 i = 0; while( iter != end )
{ // are interfaces added to this container? if( static_cast<OInterfaceContainerHelper*>((*iter).second)->getLength() ) // yes, put the type in the array
pArray[i++] = (*iter).first;
++iter;
} if( i != nSize ) { // may be empty container, reduce the sequence to the right size
aInterfaceTypes = css::uno::Sequence<key>( pArray, i );
} return aInterfaceTypes;
} return css::uno::Sequence<key>();
}
template< class key , class hashImpl , class equalImpl >
OInterfaceContainerHelper * OMultiTypeInterfaceContainerHelperVar< key , hashImpl , equalImpl >::getContainer( const key & rKey ) const
{
::osl::MutexGuard aGuard( rMutex );
typename InterfaceMap::iterator iter = find( rKey ); if( iter != m_pMap->end() ) returnstatic_cast<OInterfaceContainerHelper*>( (*iter).second ); return NULL;
}
typename InterfaceMap::iterator iter = m_pMap->begin(); typename InterfaceMap::iterator end = m_pMap->end();
typename InterfaceMap::size_type i = 0; while( iter != end )
{
ppListenerContainers[i++] = static_cast<OInterfaceContainerHelper*>((*iter).second);
++iter;
}
}
}
// create a copy, because do not fire event in a guarded section for( typename InterfaceMap::size_type i = 0; i < nSize; i++ )
{ if( ppListenerContainers[i] )
ppListenerContainers[i]->disposeAndClear( rEvt );
}
delete [] ppListenerContainers;
}
template< class key , class hashImpl , class equalImpl > void OMultiTypeInterfaceContainerHelperVar< key , hashImpl , equalImpl >::clear()
{
::osl::MutexGuard aGuard( rMutex ); typename InterfaceMap::iterator iter = m_pMap->begin(); typename InterfaceMap::iterator end = m_pMap->end();
while( iter != end )
{ static_cast<OInterfaceContainerHelper*>((*iter).second)->clear();
++iter;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.