LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
SwPageDescs Class Referencefinal

#include <pagedesc.hxx>

Public Types

typedef ByPos::const_iterator const_iterator
 
typedef SwPageDescsBase::size_type size_type
 
typedef SwPageDescsBase::value_type value_type
 

Public Member Functions

 SwPageDescs ()
 
 ~SwPageDescs ()
 
void clear ()
 
bool empty () const
 
size_t size () const
 
std::pair< const_iterator, bool > push_back (const value_type &x)
 
void erase (const value_type &x)
 
void erase (size_type index)
 
void erase (const_iterator const &position)
 
const_iterator find (const OUString &name) const
 
const value_typeoperator[] (size_t index_) const
 
const value_typefront () const
 
const value_typeback () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool contains (const value_type &x) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Types

typedef SwPageDescsBase::nth_index< 0 >::type ByPos
 
typedef SwPageDescsBase::nth_index< 1 >::type ByName
 
typedef ByPos::iterator iterator
 

Private Member Functions

iterator find_ (const OUString &name) const
 

Private Attributes

SwPageDescsBase m_Array
 
ByPosm_PosIndex
 
ByNamem_NameIndex
 

Friends

bool SwPageDesc::SetName (const OUString &rNewName)
 

Detailed Description

Definition at line 415 of file pagedesc.hxx.

Member Typedef Documentation

◆ ByName

typedef SwPageDescsBase::nth_index<1>::type SwPageDescs::ByName
private

Definition at line 421 of file pagedesc.hxx.

◆ ByPos

typedef SwPageDescsBase::nth_index<0>::type SwPageDescs::ByPos
private

Definition at line 420 of file pagedesc.hxx.

◆ const_iterator

typedef ByPos::const_iterator SwPageDescs::const_iterator

Definition at line 431 of file pagedesc.hxx.

◆ iterator

typedef ByPos::iterator SwPageDescs::iterator
private

Definition at line 422 of file pagedesc.hxx.

◆ size_type

typedef SwPageDescsBase::size_type SwPageDescs::size_type

Definition at line 432 of file pagedesc.hxx.

◆ value_type

typedef SwPageDescsBase::value_type SwPageDescs::value_type

Definition at line 433 of file pagedesc.hxx.

Constructor & Destructor Documentation

◆ SwPageDescs()

SwPageDescs::SwPageDescs ( )

Definition at line 735 of file pagedesc.cxx.

◆ ~SwPageDescs()

SwPageDescs::~SwPageDescs ( )

Definition at line 741 of file pagedesc.cxx.

References begin(), and end().

Member Function Documentation

◆ back()

const value_type & SwPageDescs::back ( ) const
inline

Definition at line 454 of file pagedesc.hxx.

References m_PosIndex.

◆ begin()

const_iterator SwPageDescs::begin ( ) const
inline

Definition at line 455 of file pagedesc.hxx.

References m_PosIndex.

Referenced by SwDoc::DelPageDesc(), erase(), lcl_FindPageDesc(), and ~SwPageDescs().

◆ clear()

void SwPageDescs::clear ( )
inline

Definition at line 440 of file pagedesc.hxx.

References m_Array.

Referenced by SwDoc::ClearDoc(), and SwDoc::~SwDoc().

◆ contains()

bool SwPageDescs::contains ( const value_type x) const
inline

Definition at line 458 of file pagedesc.hxx.

References x.

Referenced by SwDoc::ContainsPageDesc().

◆ dumpAsXml()

void SwPageDescs::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 791 of file pagedesc.cxx.

References m_PosIndex.

Referenced by SwDoc::dumpAsXml().

◆ empty()

bool SwPageDescs::empty ( ) const
inline

Definition at line 441 of file pagedesc.hxx.

References m_Array.

Referenced by SwDoc::SwDoc().

◆ end()

const_iterator SwPageDescs::end ( ) const
inline

Definition at line 456 of file pagedesc.hxx.

References m_PosIndex.

Referenced by erase(), lcl_FindPageDesc(), SwPageDesc::SetName(), and ~SwPageDescs().

◆ erase() [1/3]

void SwPageDescs::erase ( const value_type x)

Definition at line 764 of file pagedesc.cxx.

References end(), find_(), m_PosIndex, SAL_WARN, and x.

Referenced by SwDoc::ClearDoc(), SwDoc::DelPageDesc(), and erase().

◆ erase() [2/3]

void SwPageDescs::erase ( const_iterator const &  position)

Definition at line 777 of file pagedesc.cxx.

References m_PosIndex, and position().

◆ erase() [3/3]

void SwPageDescs::erase ( size_type  index)

Definition at line 786 of file pagedesc.cxx.

References begin(), erase(), and index_.

◆ find()

const_iterator SwPageDescs::find ( const OUString &  name) const
inline

Definition at line 449 of file pagedesc.hxx.

References find_(), and name.

Referenced by lcl_FindPageDesc().

◆ find_()

SwPageDescs::iterator SwPageDescs::find_ ( const OUString &  name) const
private

Definition at line 747 of file pagedesc.cxx.

References m_Array, m_NameIndex, and name.

Referenced by erase(), find(), and SwPageDesc::SetName().

◆ front()

const value_type & SwPageDescs::front ( ) const
inline

Definition at line 453 of file pagedesc.hxx.

References m_PosIndex.

◆ operator[]()

const value_type & SwPageDescs::operator[] ( size_t  index_) const
inline

Definition at line 451 of file pagedesc.hxx.

References index_, and m_PosIndex.

◆ push_back()

std::pair< SwPageDescs::const_iterator, bool > SwPageDescs::push_back ( const value_type x)

Definition at line 753 of file pagedesc.cxx.

References m_PosIndex, and x.

Referenced by SwDoc::ClearDoc(), and SwDoc::MakePageDesc().

◆ size()

size_t SwPageDescs::size ( ) const
inline

Friends And Related Function Documentation

◆ SwPageDesc::SetName

bool SwPageDesc::SetName ( const OUString &  rNewName)
friend

Member Data Documentation

◆ m_Array

SwPageDescsBase SwPageDescs::m_Array
private

Definition at line 426 of file pagedesc.hxx.

Referenced by clear(), empty(), find_(), and size().

◆ m_NameIndex

ByName& SwPageDescs::m_NameIndex
private

Definition at line 428 of file pagedesc.hxx.

Referenced by find_().

◆ m_PosIndex

ByPos& SwPageDescs::m_PosIndex
private

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