LibreOffice Module svl (master) 1
Functions
svl::detail Namespace Reference

Functions

sal_uInt16 CountRanges (const WhichRangesContainer &pRanges)
 Determines the number of sal_uInt16s in a container of pairs of sal_uInt16s, each representing a range of sal_uInt16s, and total capacity of the ranges. More...
 
bool validRanges2 (const WhichRangesContainer &pRanges)
 
template<sal_uInt16 WID1, sal_uInt16 WID2, sal_uInt16... Rest>
static constexpr sal_uInt16 CountRanges1 ()
 Determines the number of sal_uInt16s in a container of pairs of sal_uInt16s, each representing a range of sal_uInt16s, and total capacity of the ranges. More...
 
constexpr bool validRange (sal_uInt16 wid1, sal_uInt16 wid2)
 
constexpr bool validGap (sal_uInt16 wid1, sal_uInt16 wid2)
 
template<sal_uInt16 WID1, sal_uInt16 WID2>
constexpr bool validRanges ()
 
template<sal_uInt16 WID1, sal_uInt16 WID2, sal_uInt16 WID3, sal_uInt16... WIDs>
constexpr bool validRanges ()
 
constexpr std::size_t rangeSize (sal_uInt16 wid1, sal_uInt16 wid2)
 

Function Documentation

◆ CountRanges()

sal_uInt16 svl::detail::CountRanges ( const WhichRangesContainer pRanges)
inline

Determines the number of sal_uInt16s in a container of pairs of sal_uInt16s, each representing a range of sal_uInt16s, and total capacity of the ranges.

Definition at line 35 of file items_helper.hxx.

References rangeSize().

Referenced by SfxItemSet::RecreateRanges_Impl(), SfxItemSet::SfxItemSet(), and SfxItemSet::TotalCount().

◆ CountRanges1()

template<sal_uInt16 WID1, sal_uInt16 WID2, sal_uInt16... Rest>
static constexpr sal_uInt16 svl::detail::CountRanges1 ( )
staticconstexpr

Determines the number of sal_uInt16s in a container of pairs of sal_uInt16s, each representing a range of sal_uInt16s, and total capacity of the ranges.

Definition at line 263 of file itemset.hxx.

References CountRanges1(), and rangeSize().

Referenced by CountRanges1().

◆ rangeSize()

constexpr std::size_t svl::detail::rangeSize ( sal_uInt16  wid1,
sal_uInt16  wid2 
)
constexpr

Definition at line 41 of file whichranges.hxx.

References validRange().

Referenced by CountRanges(), and CountRanges1().

◆ validGap()

constexpr bool svl::detail::validGap ( sal_uInt16  wid1,
sal_uInt16  wid2 
)
constexpr

Definition at line 26 of file whichranges.hxx.

Referenced by validRanges(), and validRanges2().

◆ validRange()

constexpr bool svl::detail::validRange ( sal_uInt16  wid1,
sal_uInt16  wid2 
)
constexpr

◆ validRanges() [1/2]

template<sal_uInt16 WID1, sal_uInt16 WID2>
constexpr bool svl::detail::validRanges ( )
constexpr

Definition at line 28 of file whichranges.hxx.

References validRange().

Referenced by validRanges().

◆ validRanges() [2/2]

template<sal_uInt16 WID1, sal_uInt16 WID2, sal_uInt16 WID3, sal_uInt16... WIDs>
constexpr bool svl::detail::validRanges ( )
constexpr

Definition at line 34 of file whichranges.hxx.

References validGap(), validRange(), and validRanges().

◆ validRanges2()

bool svl::detail::validRanges2 ( const WhichRangesContainer pRanges)
inline

Definition at line 45 of file items_helper.hxx.

References i, p, WhichRangesContainer::size(), validGap(), and validRange().

Referenced by SfxItemSet::SetRanges(), and SfxItemSet::SfxItemSet().