LibreOffice Module svl (master) 1
|
A very thin wrapper around the sal_uInt16 WhichId whose purpose is mostly to carry type information, so that we Put() and Get() the right subclasses of SfxPoolItem for each WhichId. More...
#include <typedwhich.hxx>
Public Member Functions | |
constexpr | TypedWhichId (sal_uInt16 nWhich) |
template<class derived_type > | |
constexpr | TypedWhichId (TypedWhichId< derived_type > other, std::enable_if_t< std::is_base_of_v< T, derived_type >, int >=0) |
Up-casting conversion constructor. More... | |
constexpr | operator sal_uInt16 () const |
Private Attributes | |
sal_uInt16 | mnWhich |
A very thin wrapper around the sal_uInt16 WhichId whose purpose is mostly to carry type information, so that we Put() and Get() the right subclasses of SfxPoolItem for each WhichId.
Definition at line 20 of file typedwhich.hxx.
|
inlineexplicitconstexpr |
Definition at line 23 of file typedwhich.hxx.
|
inlineconstexpr |
Up-casting conversion constructor.
Definition at line 31 of file typedwhich.hxx.
|
inlineconstexpr |
Definition at line 37 of file typedwhich.hxx.
References TypedWhichId< T >::mnWhich.
|
private |
Definition at line 40 of file typedwhich.hxx.
Referenced by TypedWhichId< T >::operator sal_uInt16().