LibreOffice Module forms (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
frm::TypeBag Class Reference

a helper class which merges sequences of <type scope="css::uno">Type</type>s, so that the resulting sequence contains every type at most once More...

#include <componenttools.hxx>

Public Types

typedef css::uno::Sequence< css::uno::Type > TypeSequence
 
typedef ::std::set< css::uno::Type, TypeCompareLessTypeSet
 

Public Member Functions

 TypeBag (const TypeSequence &_rTypes1)
 
 TypeBag (const TypeSequence &_rTypes1, const TypeSequence &_rTypes2)
 
 TypeBag (const TypeSequence &_rTypes1, const TypeSequence &_rTypes2, const TypeSequence &_rTypes3)
 
void addType (const css::uno::Type &i_rType)
 
void addTypes (const TypeSequence &_rTypes)
 
void removeType (const css::uno::Type &i_rType)
 
TypeSequence getTypes () const
 returns the types represented by this bag More...
 

Private Attributes

TypeSet m_aTypes
 

Detailed Description

a helper class which merges sequences of <type scope="css::uno">Type</type>s, so that the resulting sequence contains every type at most once

Definition at line 44 of file componenttools.hxx.

Member Typedef Documentation

◆ TypeSequence

typedef css::uno::Sequence< css::uno::Type > frm::TypeBag::TypeSequence

Definition at line 47 of file componenttools.hxx.

◆ TypeSet

typedef ::std::set< css::uno::Type, TypeCompareLess > frm::TypeBag::TypeSet

Definition at line 48 of file componenttools.hxx.

Constructor & Destructor Documentation

◆ TypeBag() [1/3]

frm::TypeBag::TypeBag ( const TypeSequence _rTypes1)

Definition at line 39 of file componenttools.cxx.

References addTypes().

◆ TypeBag() [2/3]

frm::TypeBag::TypeBag ( const TypeSequence _rTypes1,
const TypeSequence _rTypes2 
)

Definition at line 45 of file componenttools.cxx.

References addTypes().

◆ TypeBag() [3/3]

frm::TypeBag::TypeBag ( const TypeSequence _rTypes1,
const TypeSequence _rTypes2,
const TypeSequence _rTypes3 
)

Definition at line 52 of file componenttools.cxx.

References addTypes().

Member Function Documentation

◆ addType()

void frm::TypeBag::addType ( const css::uno::Type &  i_rType)

Definition at line 70 of file componenttools.cxx.

References m_aTypes.

◆ addTypes()

void frm::TypeBag::addTypes ( const TypeSequence _rTypes)

Definition at line 60 of file componenttools.cxx.

References xforms::copy(), and m_aTypes.

Referenced by TypeBag().

◆ getTypes()

TypeBag::TypeSequence frm::TypeBag::getTypes ( ) const

◆ removeType()

void frm::TypeBag::removeType ( const css::uno::Type &  i_rType)

Definition at line 76 of file componenttools.cxx.

References m_aTypes.

Member Data Documentation

◆ m_aTypes

TypeSet frm::TypeBag::m_aTypes
private

Definition at line 51 of file componenttools.hxx.

Referenced by addType(), addTypes(), getTypes(), and removeType().


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