LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Private Attributes | List of all members
SwVectorModifyBase< Value > Class Template Reference

#include <docary.hxx>

Inheritance diagram for SwVectorModifyBase< Value >:
[legend]

Public Types

typedef std::vector< Value >::iterator iterator
 
typedef std::vector< Value >::const_iterator const_iterator
 
typedef std::vector< Value >::size_type size_type
 
typedef std::vector< Value >::value_type value_type
 

Public Member Functions

bool empty () const
 
Value const & front () const
 
size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void clear ()
 
iterator erase (iterator aIt)
 
iterator erase (iterator aFirst, iterator aLast)
 
iterator insert (iterator aIt, Value const &rVal)
 
template<typename TInputIterator >
void insert (iterator aIt, TInputIterator aFirst, TInputIterator aLast)
 
void push_back (Value const &rVal)
 
void reserve (size_type nSize)
 
Value const & at (size_type nPos) const
 
Value const & operator[] (size_type nPos) const
 
Valueoperator[] (size_type nPos)
 
virtual ~SwVectorModifyBase ()
 
 SwVectorModifyBase (SwVectorModifyBase const &)=default
 
 SwVectorModifyBase (SwVectorModifyBase &&)=default
 
SwVectorModifyBaseoperator= (SwVectorModifyBase const &)=default
 
SwVectorModifyBaseoperator= (SwVectorModifyBase &&)=default
 
void DeleteAndDestroy (int aStartIdx, int aEndIdx)
 
size_t GetPos (Value const &p) const
 
bool IsAlive (typename std::remove_pointer< Value >::type const *const p) const
 check that given format is still alive (i.e. contained here) More...
 

Static Public Member Functions

static void dumpAsXml (xmlTextWriterPtr)
 

Protected Types

enum class  DestructorPolicy {
  KeepElements ,
  FreeElements
}
 

Protected Member Functions

 SwVectorModifyBase (DestructorPolicy policy=DestructorPolicy::FreeElements)
 

Private Attributes

std::vector< ValuemvVals
 
const DestructorPolicy mPolicy
 

Detailed Description

template<typename Value>
class SwVectorModifyBase< Value >

Definition at line 62 of file docary.hxx.

Member Typedef Documentation

◆ const_iterator

template<typename Value >
typedef std::vector<Value>::const_iterator SwVectorModifyBase< Value >::const_iterator

Definition at line 66 of file docary.hxx.

◆ iterator

template<typename Value >
typedef std::vector<Value>::iterator SwVectorModifyBase< Value >::iterator

Definition at line 65 of file docary.hxx.

◆ size_type

template<typename Value >
typedef std::vector<Value>::size_type SwVectorModifyBase< Value >::size_type

Definition at line 67 of file docary.hxx.

◆ value_type

template<typename Value >
typedef std::vector<Value>::value_type SwVectorModifyBase< Value >::value_type

Definition at line 68 of file docary.hxx.

Member Enumeration Documentation

◆ DestructorPolicy

template<typename Value >
enum class SwVectorModifyBase::DestructorPolicy
strongprotected
Enumerator
KeepElements 
FreeElements 

Definition at line 71 of file docary.hxx.

Constructor & Destructor Documentation

◆ SwVectorModifyBase() [1/3]

Definition at line 82 of file docary.hxx.

◆ ~SwVectorModifyBase()

template<typename Value >
virtual SwVectorModifyBase< Value >::~SwVectorModifyBase ( )
inlinevirtual

◆ SwVectorModifyBase() [2/3]

template<typename Value >
SwVectorModifyBase< Value >::SwVectorModifyBase ( SwVectorModifyBase< Value > const &  )
default

◆ SwVectorModifyBase() [3/3]

template<typename Value >
SwVectorModifyBase< Value >::SwVectorModifyBase ( SwVectorModifyBase< Value > &&  )
default

Member Function Documentation

◆ at()

template<typename Value >
Value const & SwVectorModifyBase< Value >::at ( size_type  nPos) const
inline

Definition at line 104 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals, nPos, and Value.

Referenced by MSWordExportBase::CollectGrfsOfBullets().

◆ begin() [1/2]

template<typename Value >
iterator SwVectorModifyBase< Value >::begin ( )
inline

◆ begin() [2/2]

template<typename Value >
const_iterator SwVectorModifyBase< Value >::begin ( ) const
inline

Definition at line 90 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

◆ clear()

template<typename Value >
void SwVectorModifyBase< Value >::clear ( )
inline

◆ DeleteAndDestroy()

template<typename Value >
void SwVectorModifyBase< Value >::DeleteAndDestroy ( int  aStartIdx,
int  aEndIdx 
)
inline

◆ dumpAsXml()

template<typename Value >
static void SwVectorModifyBase< Value >::dumpAsXml ( xmlTextWriterPtr  )
inlinestatic

Definition at line 144 of file docary.hxx.

◆ empty()

template<typename Value >
bool SwVectorModifyBase< Value >::empty ( ) const
inline

◆ end() [1/2]

template<typename Value >
iterator SwVectorModifyBase< Value >::end ( )
inline

◆ end() [2/2]

template<typename Value >
const_iterator SwVectorModifyBase< Value >::end ( ) const
inline

Definition at line 92 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

◆ erase() [1/2]

template<typename Value >
iterator SwVectorModifyBase< Value >::erase ( iterator  aFirst,
iterator  aLast 
)
inline

Definition at line 95 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

◆ erase() [2/2]

template<typename Value >
iterator SwVectorModifyBase< Value >::erase ( iterator  aIt)
inline

◆ front()

template<typename Value >
Value const & SwVectorModifyBase< Value >::front ( ) const
inline

Definition at line 87 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals, and Value.

◆ GetPos()

template<typename Value >
size_t SwVectorModifyBase< Value >::GetPos ( Value const &  p) const
inline

◆ insert() [1/2]

template<typename Value >
template<typename TInputIterator >
void SwVectorModifyBase< Value >::insert ( iterator  aIt,
TInputIterator  aFirst,
TInputIterator  aLast 
)
inline

Definition at line 98 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

◆ insert() [2/2]

template<typename Value >
iterator SwVectorModifyBase< Value >::insert ( iterator  aIt,
Value const &  rVal 
)
inline

Definition at line 96 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

Referenced by SaveTable::AddFormat(), and SwReader::Read().

◆ IsAlive()

template<typename Value >
bool SwVectorModifyBase< Value >::IsAlive ( typename std::remove_pointer< Value >::type const *const  p) const
inline

check that given format is still alive (i.e. contained here)

Definition at line 141 of file docary.hxx.

References SwVectorModifyBase< Value >::begin(), SwVectorModifyBase< Value >::end(), and p.

Referenced by SwReader::Read(), SwUndoInserts::RedoImpl(), SwHistoryChangeFormatColl::SetInDoc(), and SwUndoInserts::UndoImpl().

◆ operator=() [1/2]

template<typename Value >
SwVectorModifyBase & SwVectorModifyBase< Value >::operator= ( SwVectorModifyBase< Value > &&  )
default

◆ operator=() [2/2]

template<typename Value >
SwVectorModifyBase & SwVectorModifyBase< Value >::operator= ( SwVectorModifyBase< Value > const &  )
default

◆ operator[]() [1/2]

template<typename Value >
Value & SwVectorModifyBase< Value >::operator[] ( size_type  nPos)
inline

Definition at line 106 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals, nPos, and Value.

◆ operator[]() [2/2]

template<typename Value >
Value const & SwVectorModifyBase< Value >::operator[] ( size_type  nPos) const
inline

Definition at line 105 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals, nPos, and Value.

Referenced by SwFormatsModifyBase< Value >::GetFormat().

◆ push_back()

template<typename Value >
void SwVectorModifyBase< Value >::push_back ( Value const &  rVal)
inline

◆ reserve()

template<typename Value >
void SwVectorModifyBase< Value >::reserve ( size_type  nSize)
inline

Definition at line 103 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

◆ size()

template<typename Value >
size_t SwVectorModifyBase< Value >::size ( ) const
inline

Definition at line 88 of file docary.hxx.

References SwVectorModifyBase< Value >::mvVals.

Referenced by SwContentTree::BringEntryToAttention(), RtfExport::BuildNumbering(), MSWordStyles::BuildStylesTable(), SwDoc::ChangeDBFields(), MSWordExportBase::CollectGrfsOfBullets(), SwXMLExport::exportDoc(), SwStyleSheetIterator::First(), SwDoc::GetAllUsedDB(), SwXTextSections::getByIndex(), SwXDocumentIndexes::getByIndex(), SwXTextSections::getByName(), SwXDocumentIndexes::getByName(), SwXTextSections::getCount(), SwXNumberingRulesCollection::getCount(), SwXDocumentIndexes::getCount(), SwXTextDocument::getDocumentLanguages(), SwXTextSections::getElementNames(), SwXDocumentIndexes::getElementNames(), SwFormatsModifyBase< Value >::GetFormatCount(), SwEditShell::GetGlobalDocContent(), SwXNumberingRules::GetNumberingRuleByIndex(), sw::util::GetParaStyles(), SwEditShell::GetSectionFormatCount(), sw::DocumentStylePoolManager::GetTextCollFromPool(), SwCSS1Parser::GetTextCollFromPool(), SwEditShell::GetTextFormatCollCount(), SwEditShell::GetTOXCount(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoPrevTOXBase(), SwCursor::GotoRegion(), SwXTextSections::hasByName(), SwXDocumentIndexes::hasByName(), SwXTextSections::hasElements(), SwPaM::HasHiddenSections(), SwPaM::HasReadonlySel(), IMPL_LINK(), lcl_AdjustOutlineStylesForOOo(), lcl_dbg_out(), lcl_DeleteInfoStyles(), lcl_InsertDrawLabel(), lcl_InsertLabel(), lcl_UpdateSection(), SwDocUpdateField::MakeFieldList_(), SwHTMLWriter::OutStyleSheet(), Writer::PutNumFormatFontsInAttrPool(), SwDoc::RemoveInvisibleContent(), SwDoc::ReplaceStyles(), sw::DocumentSettingManager::set(), SwXTextSection::setName(), SwXNumberingRules::SetNumberingRuleByIndex(), SwXDocumentIndex::setPropertyValue(), SwDoc::SplitDoc(), AttributeOutputBase::StartTOX(), SwDoc::Summary(), sw::DocumentFieldsManager::UpdateExpFieldsImpl(), SwNumFormat::UpdateNumNodes(), SwDoc::UpdateNumRule(), and SwXMLImport::UpdateTextCollConditions().

Member Data Documentation

◆ mPolicy

template<typename Value >
const DestructorPolicy SwVectorModifyBase< Value >::mPolicy
private

Definition at line 78 of file docary.hxx.

Referenced by SwVectorModifyBase< Value >::~SwVectorModifyBase().

◆ mvVals

template<typename Value >
std::vector<Value> SwVectorModifyBase< Value >::mvVals
private

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