LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
TypedWhichId< T > Class Template Referencefinal

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>

Inheritance diagram for TypedWhichId< T >:
[legend]

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
 

Detailed Description

template<class T>
class TypedWhichId< T >

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.

Constructor & Destructor Documentation

◆ TypedWhichId() [1/2]

template<class T >
constexpr TypedWhichId< T >::TypedWhichId ( sal_uInt16  nWhich)
inlineexplicitconstexpr

Definition at line 23 of file typedwhich.hxx.

◆ TypedWhichId() [2/2]

template<class T >
template<class derived_type >
constexpr TypedWhichId< T >::TypedWhichId ( TypedWhichId< derived_type >  other,
std::enable_if_t< std::is_base_of_v< T, derived_type >, int = 0 
)
inlineconstexpr

Up-casting conversion constructor.

Definition at line 31 of file typedwhich.hxx.

Member Function Documentation

◆ operator sal_uInt16()

template<class T >
constexpr TypedWhichId< T >::operator sal_uInt16 ( ) const
inlineconstexpr

Definition at line 37 of file typedwhich.hxx.

References TypedWhichId< T >::mnWhich.

Member Data Documentation

◆ mnWhich

template<class T >
sal_uInt16 TypedWhichId< T >::mnWhich
private

Definition at line 40 of file typedwhich.hxx.

Referenced by TypedWhichId< T >::operator sal_uInt16().


The documentation for this class was generated from the following file: