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
 

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 389 of file pagedesc.hxx.

Member Typedef Documentation

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

Definition at line 395 of file pagedesc.hxx.

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

Definition at line 394 of file pagedesc.hxx.

typedef ByPos::const_iterator SwPageDescs::const_iterator

Definition at line 405 of file pagedesc.hxx.

typedef ByPos::iterator SwPageDescs::iterator
private

Definition at line 396 of file pagedesc.hxx.

typedef SwPageDescsBase::size_type SwPageDescs::size_type

Definition at line 406 of file pagedesc.hxx.

typedef SwPageDescsBase::value_type SwPageDescs::value_type

Definition at line 407 of file pagedesc.hxx.

Constructor & Destructor Documentation

SwPageDescs::SwPageDescs ( )

Definition at line 534 of file pagedesc.cxx.

SwPageDescs::~SwPageDescs ( )

Definition at line 540 of file pagedesc.cxx.

References begin(), and end().

Member Function Documentation

const value_type& SwPageDescs::back ( ) const
inline

Definition at line 428 of file pagedesc.hxx.

const_iterator SwPageDescs::begin ( ) const
inline

Definition at line 429 of file pagedesc.hxx.

Referenced by erase(), lcl_FindPageDesc(), and ~SwPageDescs().

void SwPageDescs::clear ( )
inline

Definition at line 414 of file pagedesc.hxx.

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

Definition at line 432 of file pagedesc.hxx.

bool SwPageDescs::empty ( ) const
inline

Definition at line 415 of file pagedesc.hxx.

Referenced by SwDoc::SwDoc().

const_iterator SwPageDescs::end ( ) const
inline

Definition at line 430 of file pagedesc.hxx.

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

void SwPageDescs::erase ( const value_type x)

Definition at line 563 of file pagedesc.cxx.

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

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

void SwPageDescs::erase ( size_type  index)

Definition at line 585 of file pagedesc.cxx.

References begin(), and erase().

void SwPageDescs::erase ( const_iterator const &  position)

Definition at line 576 of file pagedesc.cxx.

References m_PosIndex.

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

Definition at line 423 of file pagedesc.hxx.

References find_().

Referenced by lcl_FindPageDesc().

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

Definition at line 546 of file pagedesc.cxx.

References m_Array, and m_NameIndex.

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

const value_type& SwPageDescs::front ( ) const
inline

Definition at line 427 of file pagedesc.hxx.

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

Definition at line 425 of file pagedesc.hxx.

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

Definition at line 552 of file pagedesc.cxx.

References m_PosIndex.

size_t SwPageDescs::size ( ) const
inline

Definition at line 416 of file pagedesc.hxx.

Referenced by SwDoc::GetPageDescCnt(), and SwDoc::ReplaceStyles().

Friends And Related Function Documentation

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

Member Data Documentation

SwPageDescsBase SwPageDescs::m_Array
private

Definition at line 400 of file pagedesc.hxx.

Referenced by find_().

ByName& SwPageDescs::m_NameIndex
private

Definition at line 402 of file pagedesc.hxx.

Referenced by find_().

ByPos& SwPageDescs::m_PosIndex
private

Definition at line 401 of file pagedesc.hxx.

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


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