LibreOffice Module sw (master) 1
Functions
sw::types Namespace Reference

Functions

template<typename Ret , typename Param >
Ret writer_cast (Param in)
 A static_cast style cast for conversion of word types to writer's. More...
 
template<typename Ret , typename Param >
Ret msword_cast (Param in)
 A static_cast style cast for conversion of writer types to word's. More...
 

Function Documentation

◆ msword_cast()

template<typename Ret , typename Param >
Ret sw::types::msword_cast ( Param  in)

A static_cast style cast for conversion of writer types to word's.

There are a number of places where the writer types are larger than the winword equivalents requiring a cast to silence warnings. To avoid throwing away this useful information writer_cast is used to identify where word's types are smaller than writers's.

Based on needed_cast it will compile time assert if the cast becomes unnecessary at any time in the future.

@tplparam Ret the desired return type

@tplparam Param the type of the in param

Parameters
inthe value to cast from Param to Ret
Returns
in casted to type Ret

Definition at line 79 of file writerwordglue.hxx.

References in.

◆ writer_cast()

template<typename Ret , typename Param >
Ret sw::types::writer_cast ( Param  in)

A static_cast style cast for conversion of word types to writer's.

There are a number of places where the winword types are larger than the writer equivalents requiring a cast to silence warnings. To avoid throwing away this useful information writer_cast is used to identify where writer's types are smaller than word's.

Based on needed_cast it will compile time assert if the cast becomes unnecessary at any time in the future.

@tplparam Ret the desired return type

@tplparam Param the type of the in param

Parameters
inthe value to cast from Param to Ret
Returns
in casted to type Ret

Definition at line 53 of file writerwordglue.hxx.

References in.