Lines Matching refs:Type

62 template< typename ReturnType, typename Type >
63 inline ReturnType llimit_cast( Type nValue, ReturnType nMin ) in llimit_cast()
64 { return static_cast< ReturnType >( ::std::max< Type >( nValue, nMin ) ); } in llimit_cast()
67 template< typename ReturnType, typename Type >
68 inline ReturnType llimit_cast( Type nValue ) in llimit_cast()
72 template< typename ReturnType, typename Type >
73 inline ReturnType ulimit_cast( Type nValue, ReturnType nMax ) in ulimit_cast()
74 { return static_cast< ReturnType >( ::std::min< Type >( nValue, nMax ) ); } in ulimit_cast()
77 template< typename ReturnType, typename Type >
78 inline ReturnType ulimit_cast( Type nValue ) in ulimit_cast()
82 template< typename ReturnType, typename Type >
83 inline ReturnType limit_cast( Type nValue, ReturnType nMin, ReturnType nMax ) in limit_cast()
84 { return static_cast< ReturnType >( ::std::max< Type >( ::std::min< Type >( nValue, nMax ), nMin ) … in limit_cast()
87 template< typename ReturnType, typename Type >
88 inline ReturnType limit_cast( Type nValue ) in limit_cast()
94 template< typename Type >
95 inline bool get_flag( Type nBitField, Type nMask ) in get_flag()
99 template< typename ReturnType, typename Type >
100 inline ReturnType get_flagvalue( Type nBitField, Type nMask, ReturnType nSet, ReturnType nUnset ) in get_flagvalue()
107 template< typename ReturnType, typename Type >
108 inline ReturnType extract_value( Type nBitField, sal_uInt8 nStartBit, sal_uInt8 nBitCount ) in extract_value()
114 template< typename Type >
115 inline void set_flag( Type& rnBitField, Type nMask, bool bSet = true ) in set_flag()
121 template< typename Type, typename InsertType >
122 void insert_value( Type& rnBitField, InsertType nValue, sal_uInt8 nStartBit, sal_uInt8 nBitCount ) in insert_value()
125 Type nNewValue = static_cast< Type >( nValue & nMask ); in insert_value()
149 template< typename Type >
155 typedef Type element_type;
182 Type* mpObj;
186 template< typename Type >
187 inline bool operator==( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator ==()
192 template< typename Type >
193 inline bool operator!=( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator !=()
198 template< typename Type >
199 inline bool operator<( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator <()
204 template< typename Type >
205 inline bool operator>( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator >()
210 template< typename Type >
211 inline bool operator<=( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator <=()
216 template< typename Type >
217 inline bool operator>=( const ScfRef< Type >& rxRef1, const ScfRef< Type >& rxRef2 ) in operator >=()
416 template< typename Type > class ScfDelList
428 …inline void Insert( Type* pObj, sal_uLong nIndex ) { if( pObj ) maList.Insert( pObj, … in Insert()
429 …inline void Append( Type* pObj ) { if( pObj ) maList.Insert( pObj, LIST… in Append()
431 …inline Type* Remove( sal_uLong nIndex ) { return static_cast< Type* >( maL… in Remove()
435 …inline Type* Exchange( Type* pObj, sal_uLong nIndex ) { return static_cast< Type* >( maL… in Exchange()
437 …inline void Replace( Type* pObj, sal_uLong nIndex ) { delete Exchange( pObj, nIndex );… in Replace()
443 …inline Type* GetCurObject() const { return static_cast< Type* >( maList.… in GetCurObject()
445 …inline Type* GetObject( sal_uInt32 nIndex ) const { return static_cast< Type* >( maList.… in GetObject()
447 …inline Type* First() const { return static_cast< Type* >( maList.… in First()
448 …inline Type* Last() const { return static_cast< Type* >( maList.… in Last()
449 …inline Type* Next() const { return static_cast< Type* >( maList.… in Next()
450 …inline Type* Prev() const { return static_cast< Type* >( maList.… in Prev()
456 template< typename Type > ScfDelList< Type >& ScfDelList< Type >::operator=( const ScfDelList& rSrc… in operator =()
459 for( const Type* pObj = rSrc.First(); pObj; pObj = rSrc.Next() ) in operator =()
460 Append( new Type( *pObj ) ); in operator =()
464 template< typename Type > ScfDelList< Type >::~ScfDelList() in ~ScfDelList()
469 template< typename Type > void ScfDelList< Type >::Clear() in Clear()
471 for( Type* pObj = First(); pObj; pObj = Next() ) in Clear()
482 template< typename Type >
483 class ScfDelStack : private ScfDelList< Type >
487 ScfDelList< Type >( nInitSize, nResize ) {} in ScfDelStack()
489 inline void Push( Type* pObj ) { Append( pObj ); } in Push()
491 inline Type* Pop() { return Remove( Count() - 1 ); } in Pop()
493 inline Type* Top() const { return GetObject( Count() - 1 ); } in Top()
495 using ScfDelList< Type >::Clear;
496 using ScfDelList< Type >::Count;
497 using ScfDelList< Type >::Empty;