LibreOffice Module o3tl (master)  1
Namespaces | Classes | Enumerations | Functions | Variables
o3tl Namespace Reference

Namespaces

 detail
 

Classes

class  cow_wrapper
 
struct  default_delete
 To markup std::unique_ptr that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do. More...
 
struct  divide_by_zero
 
class  enumarray
 This is a container convenience class for arrays indexed by enum values. More...
 
class  enumarray_const_iterator
 
class  enumarray_iterator
 
class  enumrange
 This is a container convenience class iterating over scoped enumerations. More...
 
struct  find_partialorder_ptrequals
 the elements are partially ordered by Compare, 2 elements are allowed if they are not the same element (pointer equal) More...
 
struct  find_unique
 the elements are totally ordered by Compare, for no 2 elements !Compare(a,b) && !Compare(b,a) is true More...
 
struct  free_delete
 
struct  is_typed_flags
 Mark a (scoped) enumeration as a set of bit flags, with accompanying operations. More...
 
class  LazyUpdate
 
struct  less_ptr_to
 Implements an ordering function over a pointer, where the comparison uses the < operator on the pointed-to types. More...
 
struct  less_uniqueptr_to
 
class  lru_map
 LRU map. More...
 
struct  select1st
 Select first value of a pair. More...
 
struct  select2nd
 Select second value of a pair. More...
 
class  sorted_vector
 Represents a sorted vector of values. More...
 
class  sorted_vector< Value, Compare, Find, false >
 
class  span
 A barebones approximation of C++20 . More...
 
struct  strong_int
 Wrap up an integer type so that we prevent accidental conversion to other integer types. More...
 
struct  ThreadSafeRefCountingPolicy
 Thread-safe refcounting. More...
 
struct  typed_flags
 
struct  typed_flags< AccessibleStates >
 
struct  typed_flags< ACFlags >
 
struct  typed_flags< ActivateModeFlags >
 
struct  typed_flags< AddFontSubstituteFlags >
 
struct  typed_flags< AdjustFilterFlags >
 
struct  typed_flags< AllSettingsFlags >
 
struct  typed_flags< AntialiasingFlags >
 
struct  typed_flags< AsCharFlags >
 
struct  typed_flags< AsianCompressionFlags >
 
struct  typed_flags< AVMediaSetMask >
 
struct  typed_flags< AxFontFlags >
 
struct  typed_flags< BAFlags >
 
struct  typed_flags< BasicDebugFlags >
 
struct  typed_flags< BmpMirrorFlags >
 
struct  typed_flags< BoolAttrFlags >
 
struct  typed_flags< BorderWidthImplFlags >
 
struct  typed_flags< BorderWindowHitTest >
 
struct  typed_flags< BorderWindowStyle >
 
struct  typed_flags< BorderWindowTitleType >
 
struct  typed_flags< BrowseMode >
 
struct  typed_flags< BrowserMode >
 
struct  typed_flags< ButtonDialogFlags >
 
struct  typed_flags< CCAFlags >
 
struct  typed_flags< CellPosFlag >
 
struct  typed_flags< CellShiftDisabledFlags >
 
struct  typed_flags< ChangeType >
 
struct  typed_flags< CharFlags >
 
struct  typed_flags< ColumnAttributeGroup >
 
struct  typed_flags< ColumnTransferFormatFlags >
 
struct  typed_flags< comphelper::EConfigurationModes >
 
struct  typed_flags< ComplexTextLayoutFlags >
 
struct  typed_flags< ConfigFlags >
 
struct  typed_flags< ConfigItemMode >
 
struct  typed_flags< ConfigurationHints >
 
struct  typed_flags< connectivity::TraversalParts >
 
struct  typed_flags< ContinuationFlags >
 
struct  typed_flags< ControlState >
 
struct  typed_flags< ControlStatus >
 
struct  typed_flags< cpuid::InstructionSetFlags >
 
struct  typed_flags< CreateNameFlags >
 
struct  typed_flags< CRFlags >
 
struct  typed_flags< Css1FrameSize >
 
struct  typed_flags< Css1ScriptFlags >
 
struct  typed_flags< CTL_STATE >
 
struct  typed_flags< CustomShapeHandleModes >
 
struct  typed_flags< CutFlagValue >
 
struct  typed_flags< DAFlags >
 
struct  typed_flags< dbaui::MessBoxStyle >
 
struct  typed_flags< DbGridControlOptions >
 
struct  typed_flags< DeactivateRC >
 
struct  typed_flags< DelContentType >
 
struct  typed_flags< DialogControlFlags >
 
struct  typed_flags< DialogMask >
 
struct  typed_flags< DictionaryPathFlags >
 
struct  typed_flags< DisplayOptions >
 
struct  typed_flags< DocState >
 
struct  typed_flags< DragDropMode >
 
struct  typed_flags< DragFullOptions >
 
struct  typed_flags< DrawButtonFlags >
 
struct  typed_flags< DrawFlags >
 
struct  typed_flags< DrawFrameFlags >
 
struct  typed_flags< DrawGridFlags >
 
struct  typed_flags< DrawImageFlags >
 
struct  typed_flags< DrawModeFlags >
 
struct  typed_flags< DrawSymbolFlags >
 
struct  typed_flags< DrawTextFlags >
 
struct  typed_flags< E3dDragConstraint >
 
struct  typed_flags< EAFlags >
 
struct  typed_flags< EditBrowseBoxFlags >
 
struct  typed_flags< EditStatusFlags >
 
struct  typed_flags< EDocStates >
 
struct  typed_flags< EEControlBits >
 
struct  typed_flags< EndExtTextInputFlags >
 
struct  typed_flags< EscherGraphicProviderFlags >
 
struct  typed_flags< EVControlBits >
 
struct  typed_flags< ExcColRowFlags >
 
struct  typed_flags< ExcTabBufFlags >
 
struct  typed_flags< ExpandMode >
 
struct  typed_flags< ExtTextInputAttr >
 
struct  typed_flags< FieldFlags >
 
struct  typed_flags< FileControlMode_Internal >
 
struct  typed_flags< FileDialogFlags >
 
struct  typed_flags< FileViewFlags >
 
struct  typed_flags< FindRanges >
 
struct  typed_flags< Flags >
 
struct  typed_flags< FloatWinPopupEndFlags >
 
struct  typed_flags< FloatWinPopupFlags >
 
struct  typed_flags< FlyProtectFlags >
 
struct  typed_flags< FontAttribute >
 
struct  typed_flags< FontChangeMask >
 
struct  typed_flags< FontEmphasisMark >
 
struct  typed_flags< FontKerning >
 
struct  typed_flags< FontListFontNameType >
 
struct  typed_flags< FontType >
 
struct  typed_flags< FontTypeFaces >
 
struct  typed_flags< Found >
 
struct  typed_flags< FoundFlags >
 
struct  typed_flags< FrameAnalyzerFlags >
 
struct  typed_flags< FrameSelFlags >
 
struct  typed_flags< FrameTypeFlags >
 
struct  typed_flags< FrmValidFlags >
 
struct  typed_flags< FSysStyle >
 
struct  typed_flags< FuncFlags >
 
struct  typed_flags< GalleryItemFlags >
 
struct  typed_flags< GetAttribsFlags >
 
struct  typed_flags< GetCursorFlags >
 
struct  typed_flags< GetDefaultFontFlags >
 
struct  typed_flags< GetFocusFlags >
 
struct  typed_flags< GlyphItemFlags >
 
struct  typed_flags< GotoObjFlags >
 
struct  typed_flags< GraphicAdjustmentFlags >
 
struct  typed_flags< GraphicFilterImportFlags >
 
struct  typed_flags< HandleFlags >
 
struct  typed_flags< HasAttrFlags >
 
struct  typed_flags< HeaderBarItemBits >
 
struct  typed_flags< HelpEventMode >
 
struct  typed_flags< HiddenInformation >
 
struct  typed_flags< HtmlCfgFlags >
 
struct  typed_flags< HtmlContainerFlags >
 
struct  typed_flags< HtmlContextFlags >
 
struct  typed_flags< HtmlFrameFormatFlags >
 
struct  typed_flags< HtmlFrmOpts >
 
struct  typed_flags< HyperDialogEvent >
 
struct  typed_flags< IconChoiceFlags >
 
struct  typed_flags< ImageLoadFlags >
 
struct  typed_flags< ImplFontAttrs >
 
struct  typed_flags< ImplPaintFlags >
 
struct  typed_flags< ImportFlags >
 
struct  typed_flags< InitOutDevFlags >
 
struct  typed_flags< InitWindowFacet >
 
struct  typed_flags< InputContextFlags >
 
struct  typed_flags< InsertContentsFlags >
 
struct  typed_flags< InsertDeleteFlags >
 
struct  typed_flags< InvalidateFlags >
 
struct  typed_flags< InvertFlags >
 
struct  typed_flags< IsAttrAtPos >
 
struct  typed_flags< Job >
 
struct  typed_flags< JobSetFlags >
 
struct  typed_flags< KeyIndicatorState >
 
struct  typed_flags< LB >
 
struct  typed_flags< LBoxFlags >
 
struct  typed_flags< ListBoxEntryFlags >
 
struct  typed_flags< LoadEnvFeatures >
 
struct  typed_flags< LoadFormsFlags >
 
struct  typed_flags< LoadUrlFlags >
 
struct  typed_flags< LoginFlags >
 
struct  typed_flags< LoopGridsFlags >
 
struct  typed_flags< MailTextFormats >
 
struct  typed_flags< MappingType >
 
struct  typed_flags< MenuEnableFlags >
 
struct  typed_flags< MenuFlags >
 
struct  typed_flags< MenuItemBits >
 
struct  typed_flags< MessBoxStyle >
 
struct  typed_flags< ModifyFlags >
 
struct  typed_flags< ModKeyFlags >
 
struct  typed_flags< MouseEventModifiers >
 
struct  typed_flags< MouseFollowFlags >
 
struct  typed_flags< MouseSettingsOptions >
 
struct  typed_flags< MoveItemFlags >
 
struct  typed_flags< NavState >
 
struct  typed_flags< OCommonBehaviourTabPageFlags >
 
struct  typed_flags< PaintPartFlags >
 
struct  typed_flags< ParaFlag >
 
struct  typed_flags< ParentClipMode >
 
struct  typed_flags< ParserFlags >
 
struct  typed_flags< PickerFlags >
 
struct  typed_flags< PivotFunc >
 
struct  typed_flags< PolyOptimizeFlags >
 
struct  typed_flags< PopupMenuFlags >
 
struct  typed_flags< PosSizeFlags >
 
struct  typed_flags< PresentationFlags >
 
struct  typed_flags< PrintQueueFlags >
 
struct  typed_flags< PropertyMoreFlags >
 
struct  typed_flags< PropFlags >
 
struct  typed_flags< PropsSet >
 
struct  typed_flags< PropUIFlags >
 
struct  typed_flags< PROT >
 
struct  typed_flags< PushFlags >
 
struct  typed_flags< QuickHelpFlags >
 
struct  typed_flags< ReadWriteGuardMode >
 
struct  typed_flags< RedlineFlags >
 
struct  typed_flags< RegAccessMode >
 
struct  typed_flags< RTFieldAccess >
 
struct  typed_flags< RulerBorderStyle >
 
struct  typed_flags< RulerMarginStyle >
 
struct  typed_flags< SADFlags >
 
struct  typed_flags< SalFrameStyleFlags >
 
struct  typed_flags< SalFrameToTop >
 
struct  typed_flags< SalInvert >
 
struct  typed_flags< SalLayoutFlags >
 
struct  typed_flags< SbAttributes >
 
struct  typed_flags< SbiImageFlags >
 
struct  typed_flags< SbiStreamFlags >
 
struct  typed_flags< SbxFlagBits >
 
struct  typed_flags< sc::MatrixEdge >
 
struct  typed_flags< SCAFlags >
 
struct  typed_flags< ScanlineFormat >
 
struct  typed_flags< ScBreakType >
 
struct  typed_flags< ScCharFlags >
 
struct  typed_flags< ScClipMark >
 
struct  typed_flags< ScCloneFlags >
 
struct  typed_flags< ScCsvDiff >
 
struct  typed_flags< ScDragSrc >
 
struct  typed_flags< ScMatValType >
 
struct  typed_flags< ScMF >
 
struct  typed_flags< ScPasteFlags >
 
struct  typed_flags< ScRangeData::Type >
 
struct  typed_flags< ScRecalcMode >
 
struct  typed_flags< ScRefFlags >
 
struct  typed_flags< ScrollFlags >
 
struct  typed_flags< ScScenarioFlags >
 
struct  typed_flags< SdrAlign >
 
struct  typed_flags< SdrEscapeDirection >
 
struct  typed_flags< SdrGrafObjTransformsAttrs >
 
struct  typed_flags< SdrInsertFlags >
 
struct  typed_flags< SdrSearchOptions >
 
struct  typed_flags< SdrSnap >
 
struct  typed_flags< SearchOptionFlags >
 
struct  typed_flags< SelectionEngineFlags >
 
struct  typed_flags< SelectionOptions >
 
struct  typed_flags< SelectionType >
 
struct  typed_flags< SetAttrMode >
 
struct  typed_flags< sfx2::ApplicationType >
 
struct  typed_flags< SfxCallMode >
 
struct  typed_flags< SfxChildVisibility >
 
struct  typed_flags< SfxChildWindowFlags >
 
struct  typed_flags< SfxDisableFlags >
 
struct  typed_flags< SfxDispatcherPopFlags >
 
struct  typed_flags< SfxFilterFlags >
 
struct  typed_flags< SfxLoadedFlags >
 
struct  typed_flags< SfxModelFlags >
 
struct  typed_flags< SfxPrinterChangeFlags >
 
struct  typed_flags< SfxShellFeature >
 
struct  typed_flags< SfxShowExtras >
 
struct  typed_flags< SfxSlotMode >
 
struct  typed_flags< SfxStyleFamily >
 
struct  typed_flags< SfxStyleSearchBits >
 
struct  typed_flags< SfxTemplateFlags >
 
struct  typed_flags< SfxViewShellFlags >
 
struct  typed_flags< SfxVisibilityFlags >
 
struct  typed_flags< ShapeFlag >
 
struct  typed_flags< ShowFlags >
 
struct  typed_flags< ShowTrackFlags >
 
struct  typed_flags< SizingFlags >
 
struct  typed_flags< SotExchangeActionFlags >
 
struct  typed_flags< SplitWindowItemFlags >
 
struct  typed_flags< StartAutoScrollFlags >
 
struct  typed_flags< StartTrackingFlags >
 
struct  typed_flags< StatusBarItemBits >
 
struct  typed_flags< StreamMode >
 
struct  typed_flags< StyleFlags >
 
struct  typed_flags< StyleSettingsOptions >
 
struct  typed_flags< SubColFlags >
 
struct  typed_flags< SubsFontFlags >
 
struct  typed_flags< SubtotalFlags >
 
struct  typed_flags< SvItemStateFlags >
 
struct  typed_flags< SvLBoxTabFlags >
 
struct  typed_flags< SvNumFormatType >
 
struct  typed_flags< SvNumInputOptions >
 
struct  typed_flags< SvStreamCompressFlags >
 
struct  typed_flags< SvTLEntryFlags >
 
struct  typed_flags< SvTreeFlags >
 
struct  typed_flags< SvTreeListBoxFlags >
 
struct  typed_flags< SvtScriptType >
 
struct  typed_flags< SvxAnchorIds >
 
struct  typed_flags< SvxBackgroundTabFlags >
 
struct  typed_flags< SvxBoxInfoItemValidFlags >
 
struct  typed_flags< SvxIconViewFlags >
 
struct  typed_flags< SvxLanguageListFlags >
 
struct  typed_flags< SvXMLErrorFlags >
 
struct  typed_flags< SvXmlExportFlags >
 
struct  typed_flags< SvXMLExportFlags >
 
struct  typed_flags< SvXMLImportFlags >
 
struct  typed_flags< SvxMSDffHandleFlags >
 
struct  typed_flags< SvxNumRuleFlags >
 
struct  typed_flags< SvxRulerDragFlags >
 
struct  typed_flags< SvxRulerSupportFlags >
 
struct  typed_flags< SvxZoomEnableFlags >
 
struct  typed_flags< sw::mark::RestoreMode >
 
struct  typed_flags< SwBorderModes >
 
struct  typed_flags< SwCopyFlags >
 
struct  typed_flags< SwCursorSelOverFlags >
 
struct  typed_flags< SwDoc::RowColMode >
 
struct  typed_flags< SwFltStackEntry::RegionMode >
 
struct  typed_flags< SwFrameType >
 
struct  typed_flags< SwInsertFlags >
 
struct  typed_flags< SwInsertNumTypes >
 
struct  typed_flags< SwInsertTableFlags >
 
struct  typed_flags< SwInvalidateFlags >
 
struct  typed_flags< SwMoveFlags >
 
struct  typed_flags< SwNodeType >
 
struct  typed_flags< SwReaderType >
 
struct  typed_flags< SwScriptInfo::MarkKind >
 
struct  typed_flags< SwTableAutoFormatUpdateFlags >
 
struct  typed_flags< SwTableSearchType >
 
struct  typed_flags< SwTOIOptions >
 
struct  typed_flags< SwTOOElements >
 
struct  typed_flags< SwTOXElement >
 
struct  typed_flags< SwXmlFlags >
 
struct  typed_flags< SystemWindowFlags >
 
struct  typed_flags< TabBarPageBits >
 
struct  typed_flags< TabitemFlags >
 
struct  typed_flags< TableChgWidthHeightType >
 
struct  typed_flags< TabulatorDisableFlags >
 
struct  typed_flags< TG >
 
struct  typed_flags< ToolBoxItemBits >
 
struct  typed_flags< ToolBoxMenuType >
 
struct  typed_flags< ToTopFlags >
 
struct  typed_flags< TrackingEventFlags >
 
struct  typed_flags< TransferBufferType >
 
struct  typed_flags< TransliterationFlags >
 
struct  typed_flags< UpdateFlags >
 
struct  typed_flags< UseOnPage >
 
struct  typed_flags< ValidateFlags >
 
struct  typed_flags< vcl::pdf::GraphicsStateUpdateFlags >
 
struct  typed_flags< vcl::pdf::PDFFindFlags >
 
struct  typed_flags< VclInputFlags >
 
struct  typed_flags< ViewOptCoreFlags2 >
 
struct  typed_flags< ViewOptFlags >
 
struct  typed_flags< ViewOptFlags1 >
 
struct  typed_flags< ViewOptFlags2 >
 
struct  typed_flags< VisitFlags >
 
struct  typed_flags< WheelMode >
 
struct  typed_flags< WindowBorderStyle >
 
struct  typed_flags< WindowExtendedStyle >
 
struct  typed_flags< WindowHitTest >
 
struct  typed_flags< WindowStateMask >
 
struct  typed_flags< WindowStateState >
 
struct  typed_flags< WizardButtonFlags >
 
struct  typed_flags< XclStrFlags >
 
struct  typed_flags< XMLShapeExportFlags >
 
struct  typed_flags< XOutFlags >
 
struct  typed_flags< ZOrderFlags >
 
struct  typed_flags<::sd::tools::IdleState >
 
struct  UnsafeRefCountingPolicy
 Thread-unsafe refcounting. More...
 
struct  vector_pool
 

Enumerations

enum  Length {
  Length::mm100 = 0,
  Length::mm10,
  Length::mm,
  Length::cm,
  Length::m,
  Length::km,
  Length::emu,
  Length::twip,
  Length::pt,
  Length::pc,
  Length::in1000,
  Length::in100,
  Length::in10,
  Length::in,
  Length::ft,
  Length::mi,
  Length::master,
  Length::px,
  Length::ch,
  Length::line,
  Length::count,
  Length::invalid = -1
}
 

Functions

template<typename T >
std::enable_if< !(detail::IsDerivedReference< T >::value||detail::IsUnoSequenceType< T >::value||std::is_base_of< css::uno::XInterface, T >::value), typename detail::Optional< T >::type >::type tryAccess (css::uno::Any const &any)
 Try to access the value of a specific type stored in an Any. More...
 
template<>
detail::Optional< void >::type tryAccess< void > (css::uno::Any const &any)
 
template<>
detail::Optional< bool >::type tryAccess< bool > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_Int8 >::type tryAccess< sal_Int8 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_Int16 >::type tryAccess< sal_Int16 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_uInt16 >::type tryAccess< sal_uInt16 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_Int32 >::type tryAccess< sal_Int32 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_uInt32 >::type tryAccess< sal_uInt32 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_Int64 >::type tryAccess< sal_Int64 > (css::uno::Any const &any)
 
template<>
detail::Optional< sal_uInt64 >::type tryAccess< sal_uInt64 > (css::uno::Any const &any)
 
template<>
detail::Optional< float >::type tryAccess< float > (css::uno::Any const &any)
 
template<>
detail::Optional< double >::type tryAccess< double > (css::uno::Any const &any)
 
template<>
detail::Optional< css::uno::Any >::type tryAccess< css::uno::Any > (css::uno::Any const &)=delete
 
template<>
detail::Optional< sal_Bool >::type tryAccess< sal_Bool > (css::uno::Any const &)=delete
 
template<typename T >
std::enable_if< detail::IsDerivedReference< T >::value, typename detail::Optional< T >::type >::type tryAccess (css::uno::Any const &any)
 
template<typename T >
detail::Optional< T >::type tryAccess (css::uno::Any const volatile &&)=delete
 
template<typename T >
detail::Optional< T >::type doAccess (css::uno::Any const &any)
 Access the value of a specific type stored in an Any, throwing an exception on failure. More...
 
template<typename T >
detail::Optional< T >::type forceAccess (css::uno::Any const &any)
 Access the value of a specific type stored in an Any, knowing the Any contains a value of a matching type. More...
 
template<class T , class P >
bool operator== (const cow_wrapper< T, P > &a, const cow_wrapper< T, P > &b)
 
template<class T , class P >
bool operator!= (const cow_wrapper< T, P > &a, const cow_wrapper< T, P > &b)
 
template<class A , class B , class P >
bool operator< (const cow_wrapper< A, P > &a, const cow_wrapper< B, P > &b)
 
template<class T , class P >
void swap (cow_wrapper< T, P > &a, cow_wrapper< T, P > &b)
 
template<typename uniqueptr >
void reset_preserve_ptr_during (uniqueptr &ptr)
 
template<typename F , typename I >
std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > convertsToAtLeast (F value, I min)
 
template<typename F , typename I >
std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > convertsToAtMost (F value, I max)
 
template<typename F >
std::enable_if_t< std::is_floating_point_v< F >, F > roundAway (F value)
 
template<typename T >
std::shared_ptr< T > make_shared_array (size_t const size)
 Allocate an array stored in a shared_ptr, calling operator delete[]. More...
 
template<class T , class... Args>
std::shared_ptr< T > make_shared (Args &&...args)
 To markup std::shared_ptr that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do. More...
 
OUString runtimeToOUString (char const *runtimeString)
 Convert an NTBS from the C++ runtime to an OUString. More...
 
template<typename T >
std::enable_if< std::is_signed< T >::value, T >::type saturating_add (T a, T b)
 
template<typename T >
std::enable_if< std::is_unsigned< T >::value, T >::type saturating_add (T a, T b)
 
template<typename T >
std::enable_if< std::is_signed< T >::value, T >::type saturating_sub (T a, T b)
 
template<typename T >
std::enable_if< std::is_unsigned< T >::value, T >::type saturating_sub (T a, T b)
 
template<typename T >
std::enable_if< std::is_signed< T >::value, T >::type saturating_toggle_sign (T a)
 
template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type checked_multiply (T a, T b, T &result)
 
template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type checked_multiply (T a, T b, T &result)
 
template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type checked_add (T a, T b, T &result)
 
template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type checked_add (T a, T b, T &result)
 
template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type checked_sub (T a, T b, T &result)
 
template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type checked_sub (T a, T b, T &result)
 
template<typename T >
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned (T value)
 
template<typename T1 , typename T2 >
constexpr T1 narrowing (T2 value)
 
template<typename T >
sanitizing_min (T a, T b)
 
bool equalsIgnoreAsciiCase (std::u16string_view s1, std::u16string_view s2)
 
template<typename UT , typename PT >
strong_int< UT, PT > operator+ (strong_int< UT, PT > const &lhs, strong_int< UT, PT > const &rhs)
 
template<typename UT , typename PT >
strong_int< UT, PT > operator- (strong_int< UT, PT > const &lhs, strong_int< UT, PT > const &rhs)
 
template<typename T >
constexpr T & temporary (T &&x)
 
template<typename T >
constexpr T & temporary (T &)=delete
 
template<typename T >
constexpr std::underlying_type_t< T > underlyingEnumValue (T e)
 
template<typename N >
constexpr auto convert (N n, sal_Int64 mul, sal_Int64 div)
 
template<typename N , typename U >
constexpr auto convert (N n, U from, U to)
 
template<typename N , typename U >
constexpr auto convert (N n, U from, U to, bool &bOverflow, sal_Int64 nDefault=0)
 
template<typename N , typename U >
constexpr auto convertSaturate (N n, U from, U to)
 
template<typename U >
constexpr std::pair< sal_Int64, sal_Int64 > getConversionMulDiv (U from, U to)
 
template<typename DerivedPtr , typename BasePtr >
std::enable_if_t< (std::is_pointer_v< DerivedPtr > &&std::is_pointer_v< BasePtr > &&std::is_base_of_v< std::remove_pointer_t< BasePtr >, std::remove_pointer_t< DerivedPtr >>), DerivedPtr > unsafe_downcast (BasePtr p)
 
template<typename T >
void remove_duplicates (std::vector< T > &rVector)
 

Variables

template<typename T >
enumrange< T >::Iterator begin (enumrange< T >)
 
template<typename T >
enumrange< T >::Iterator end (enumrange< T >)
 

Enumeration Type Documentation

enum o3tl::Length
strong
Enumerator
mm100 
mm10 
mm 
cm 
km 
emu 
twip 
pt 
pc 
in1000 
in100 
in10 
in 
ft 
mi 
master 
px 
ch 
line 
count 
invalid 

Definition at line 25 of file unit_conversion.hxx.

Function Documentation

template<typename T >
std::enable_if<std::is_signed<T>::value, bool>::type o3tl::checked_add ( a,
b,
T &  result 
)
inline

Definition at line 179 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_unsigned<T>::value, bool>::type o3tl::checked_add ( a,
b,
T &  result 
)
inline

Definition at line 192 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_signed<T>::value, bool>::type o3tl::checked_multiply ( a,
b,
T &  result 
)
inline

Definition at line 137 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_unsigned<T>::value, bool>::type o3tl::checked_multiply ( a,
b,
T &  result 
)
inline

Definition at line 167 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_signed<T>::value, bool>::type o3tl::checked_sub ( a,
b,
T &  result 
)
inline

Definition at line 204 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_unsigned<T>::value, bool>::type o3tl::checked_sub ( a,
b,
T &  result 
)
inline

Definition at line 217 of file safeint.hxx.

template<typename N >
constexpr auto o3tl::convert ( N  n,
sal_Int64  mul,
sal_Int64  div 
)

Definition at line 191 of file unit_conversion.hxx.

References o3tl::detail::MulDiv().

Referenced by convert().

template<typename N , typename U >
constexpr auto o3tl::convert ( N  n,
from,
to 
)

Definition at line 197 of file unit_conversion.hxx.

References convert(), and o3tl::detail::md().

template<typename N , typename U >
constexpr auto o3tl::convert ( N  n,
from,
to,
bool &  bOverflow,
sal_Int64  nDefault = 0 
)

Definition at line 205 of file unit_conversion.hxx.

References o3tl::detail::md(), and o3tl::detail::MulDiv().

template<typename N , typename U >
constexpr auto o3tl::convertSaturate ( N  n,
from,
to 
)

Definition at line 213 of file unit_conversion.hxx.

References o3tl::detail::md(), and o3tl::detail::MulDivSaturate().

template<typename F , typename I >
std::enable_if_t<std::is_floating_point_v<F> && std::is_integral_v<I>, bool> o3tl::convertsToAtLeast ( value,
min 
)

Definition at line 24 of file float_int_conversion.hxx.

References F.

template<typename F , typename I >
std::enable_if_t<std::is_floating_point_v<F> && std::is_integral_v<I>, bool> o3tl::convertsToAtMost ( value,
max 
)

Definition at line 37 of file float_int_conversion.hxx.

References F.

template<typename T >
detail::Optional<T>::type o3tl::doAccess ( css::uno::Any const &  any)
inline

Access the value of a specific type stored in an Any, throwing an exception on failure.

Attention:
A proxy returned from this function must not outlive the corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). However, unlike with tryAccess, the benefit of allowing this function to operate on temporaries appears to outweigh its dangers.
Note
Ideally this would be a public member function of css::uno::Any. See tryAccess for details.
Template Parameters
Tthe C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any. See tryAccess for details.
Exceptions
css::uno::RuntimeExceptionwhen a value of the requested type cannot be obtained.

Definition at line 279 of file any.hxx.

References cppu_Any_extraction_failure_msg().

bool o3tl::equalsIgnoreAsciiCase ( std::u16string_view  s1,
std::u16string_view  s2 
)
inline

Definition at line 21 of file string_view.hxx.

template<typename T >
detail::Optional<T>::type o3tl::forceAccess ( css::uno::Any const &  any)
inline

Access the value of a specific type stored in an Any, knowing the Any contains a value of a matching type.

Attention:
A proxy returned from this function must not outlive the corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). However, unlike with tryAccess, the benefit of allowing this function to operate on temporaries appears to outweigh its dangers.
Note
Ideally this would be a public member function of css::uno::Any. See tryAccess for details.
Template Parameters
Tthe C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any. See tryAccess for details.

Definition at line 313 of file any.hxx.

References assert().

template<typename U >
constexpr std::pair<sal_Int64, sal_Int64> o3tl::getConversionMulDiv ( from,
to 
)

Definition at line 219 of file unit_conversion.hxx.

References o3tl::detail::md().

template<class T , class... Args>
std::shared_ptr<T> o3tl::make_shared ( Args &&...  args)

To markup std::shared_ptr that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do.

Definition at line 33 of file make_shared.hxx.

References args.

template<typename T >
std::shared_ptr<T> o3tl::make_shared_array ( size_t const  size)

Allocate an array stored in a shared_ptr, calling operator delete[].

Note that this is only allowed for arithmetic types because shared_ptr implicitly converts to sub-types.

Definition at line 23 of file make_shared.hxx.

template<typename T >
constexpr std::enable_if_t<std::is_signed_v<T>, std::make_unsigned_t<T> > o3tl::make_unsigned ( value)

Definition at line 231 of file safeint.hxx.

References assert().

Referenced by o3tl::detail::md().

template<typename T1 , typename T2 >
constexpr T1 o3tl::narrowing ( T2  value)

Definition at line 240 of file safeint.hxx.

template<class T , class P >
bool o3tl::operator!= ( const cow_wrapper< T, P > &  a,
const cow_wrapper< T, P > &  b 
)
inline
template<typename UT , typename PT >
strong_int<UT,PT> o3tl::operator+ ( strong_int< UT, PT > const &  lhs,
strong_int< UT, PT > const &  rhs 
)
template<typename UT , typename PT >
strong_int<UT,PT> o3tl::operator- ( strong_int< UT, PT > const &  lhs,
strong_int< UT, PT > const &  rhs 
)
template<class A , class B , class P >
bool o3tl::operator< ( const cow_wrapper< A, P > &  a,
const cow_wrapper< B, P > &  b 
)
inline

Definition at line 348 of file cow_wrapper.hxx.

References a.

template<class T , class P >
bool o3tl::operator== ( const cow_wrapper< T, P > &  a,
const cow_wrapper< T, P > &  b 
)
inline
template<typename T >
void o3tl::remove_duplicates ( std::vector< T > &  rVector)

Definition at line 20 of file vector_utils.hxx.

template<typename uniqueptr >
void o3tl::reset_preserve_ptr_during ( uniqueptr &  ptr)

Definition at line 56 of file deleter.hxx.

References void().

template<typename F >
std::enable_if_t<std::is_floating_point_v<F>, F> o3tl::roundAway ( value)

Definition at line 49 of file float_int_conversion.hxx.

References F.

OUString o3tl::runtimeToOUString ( char const *  runtimeString)
inline

Convert an NTBS from the C++ runtime to an OUString.

This is used to convert an NTBS as provided by std::exception::what or std::type_info::name into an OUString in a "lossless" way. The conversion is done using RTL_TEXTENCODING_ISO_8859_1, so each char in the input maps to one Unicode character in the output.

Definition at line 32 of file runtimetooustring.hxx.

References assert(), and void().

template<typename T >
T o3tl::sanitizing_min ( a,
b 
)
inline

Definition at line 244 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_signed<T>::value, T>::type o3tl::saturating_add ( a,
b 
)
inline

Definition at line 31 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_unsigned<T>::value, T>::type o3tl::saturating_add ( a,
b 
)
inline

Definition at line 50 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_signed<T>::value, T>::type o3tl::saturating_sub ( a,
b 
)
inline

Definition at line 61 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_unsigned<T>::value, T>::type o3tl::saturating_sub ( a,
b 
)
inline

Definition at line 80 of file safeint.hxx.

template<typename T >
std::enable_if<std::is_signed<T>::value, T>::type o3tl::saturating_toggle_sign ( a)
inline

Definition at line 91 of file safeint.hxx.

template<class T , class P >
void o3tl::swap ( cow_wrapper< T, P > &  a,
cow_wrapper< T, P > &  b 
)
inline
template<typename T >
constexpr T& o3tl::temporary ( T &&  x)

Definition at line 21 of file temporary.hxx.

References x.

template<typename T >
constexpr T& o3tl::temporary ( T &  )
delete
template<typename T >
std::enable_if< !(detail::IsDerivedReference<T>::value || detail::IsUnoSequenceType<T>::value || std::is_base_of<css::uno::XInterface, T>::value), typename detail::Optional<T>::type>::type o3tl::tryAccess ( css::uno::Any const &  any)
inline

Try to access the value of a specific type stored in an Any.

In trying to obtain a value, the same set of conversions as supported by ">>=" are considered.

The returned object is a proxy. Proxies can be either positive or negative. Each proxy can be contextually converted to bool, yielding true iff the proxy is positive. For a positive proxy P representing a value of requested type T, for any T other than void, the expression *P yields that value of type T. (Technically, the proxy is either a plain pointer or a std::optional, depending on whether a plain pointer into the given Any can be returned for the specified type.)

Attention:
A proxy returned from this function must not outlive the corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). That is the reason why this function is restricted to lvalue arguments (i.e., to non-temporary Any objects), to avoid misuses like
1 css::uno::Any f();
2 
3 if (auto p = o3tl::tryAccess<css::beans::NamedValue>(f())) {
4  return p->Name;
5 }
Note
Ideally this would be a public member function of css::uno::Any (at least conditional on LIBO_INTERNAL_ONLY, as it requires C++11). However, as std::optional (which would be needed to implement the proxies) is only available since C++14, we need to use std::optional for now. But To not make every entity that includes <com/sun/star/uno/Any.hxx> depend on boost_headers, keep this here for now.
Template Parameters
Tthe C++ representation of a UNO type that can be contained in a UNO ANY (i.e., any UNO type other than ANY itself). The legacy C++ representations sal_Bool, cppu::UnoVoidType, cppu::UnoUnsignedShortType, cppu::UnoCharType, and cppu::UnoSequenceType are not supported. Must be a complete type or void.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any, or a negative proxy if no such value can be obtained.

Definition at line 148 of file any.hxx.

References cppu::UnoType< class >::get().

template<typename T >
std::enable_if< detail::IsDerivedReference<T>::value, typename detail::Optional<T>::type>::type o3tl::tryAccess ( css::uno::Any const &  any)
inline

Definition at line 249 of file any.hxx.

template<typename T >
detail::Optional<T>::type o3tl::tryAccess ( css::uno::Any const volatile &&  )
delete
template<>
detail::Optional<bool>::type o3tl::tryAccess< bool > ( css::uno::Any const &  any)
inline

Definition at line 163 of file any.hxx.

template<>
detail::Optional<css::uno::Any>::type o3tl::tryAccess< css::uno::Any > ( css::uno::Any const &  )
delete
template<>
detail::Optional<double>::type o3tl::tryAccess< double > ( css::uno::Any const &  any)
inline

Definition at line 217 of file any.hxx.

template<>
detail::Optional<float>::type o3tl::tryAccess< float > ( css::uno::Any const &  any)
inline

Definition at line 211 of file any.hxx.

template<>
detail::Optional<sal_Bool>::type o3tl::tryAccess< sal_Bool > ( css::uno::Any const &  )
delete
template<>
detail::Optional<sal_Int16>::type o3tl::tryAccess< sal_Int16 > ( css::uno::Any const &  any)
inline

Definition at line 175 of file any.hxx.

template<>
detail::Optional<sal_Int32>::type o3tl::tryAccess< sal_Int32 > ( css::uno::Any const &  any)
inline

Definition at line 187 of file any.hxx.

template<>
detail::Optional<sal_Int64>::type o3tl::tryAccess< sal_Int64 > ( css::uno::Any const &  any)
inline

Definition at line 199 of file any.hxx.

template<>
detail::Optional<sal_Int8>::type o3tl::tryAccess< sal_Int8 > ( css::uno::Any const &  any)
inline

Definition at line 169 of file any.hxx.

template<>
detail::Optional<sal_uInt16>::type o3tl::tryAccess< sal_uInt16 > ( css::uno::Any const &  any)
inline

Definition at line 181 of file any.hxx.

template<>
detail::Optional<sal_uInt32>::type o3tl::tryAccess< sal_uInt32 > ( css::uno::Any const &  any)
inline

Definition at line 193 of file any.hxx.

template<>
detail::Optional<sal_uInt64>::type o3tl::tryAccess< sal_uInt64 > ( css::uno::Any const &  any)
inline

Definition at line 205 of file any.hxx.

template<>
detail::Optional<void>::type o3tl::tryAccess< void > ( css::uno::Any const &  any)
inline

Definition at line 155 of file any.hxx.

template<typename T >
constexpr std::underlying_type_t<T> o3tl::underlyingEnumValue ( e)
template<typename DerivedPtr , typename BasePtr >
std::enable_if_t< (std::is_pointer_v< DerivedPtr> && std::is_pointer_v<BasePtr> && std::is_base_of_v<std::remove_pointer_t<BasePtr>, std::remove_pointer_t<DerivedPtr>>), DerivedPtr> o3tl::unsafe_downcast ( BasePtr  p)

Definition at line 26 of file unsafe_downcast.hxx.

References assert().

Variable Documentation

template<typename T >
enumrange<T>::Iterator o3tl::begin(enumrange< T >)

Definition at line 72 of file enumrange.hxx.

template<typename T >
enumrange<T>::Iterator o3tl::end(enumrange< T >)

Definition at line 78 of file enumrange.hxx.