LibreOffice Module dbaccess (master) 1
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
dbaui::OIndexCollection Class Reference

#include <indexcollection.hxx>

Public Types

typedef OIndexiterator
 
typedef OIndex const * const_iterator
 

Public Member Functions

 OIndexCollection ()
 
 OIndexCollection (const OIndexCollection &_rSource)
 
OIndexCollectionoperator= (const OIndexCollection &_rSource)
 
Indexes::const_iterator begin () const
 get access to the first element of the index collection More...
 
Indexes::iterator begin ()
 get access to the first element of the index collection More...
 
Indexes::const_iterator end () const
 get access to the (last + 1st) element of the index collection More...
 
Indexes::iterator end ()
 get access to the (last + 1st) element of the index collection More...
 
Indexes::const_iterator find (const OUString &_rName) const
 
Indexes::iterator find (const OUString &_rName)
 
Indexes::const_iterator findOriginal (const OUString &_rName) const
 
Indexes::iterator findOriginal (const OUString &_rName)
 
Indexes::iterator insert (const OUString &_rName)
 
void commitNewIndex (const Indexes::iterator &_rPos)
 
void resetIndex (const Indexes::iterator &_rPos)
 
void attach (const css::uno::Reference< css::container::XNameAccess > &_rxIndexes)
 
void detach ()
 
bool drop (const Indexes::iterator &_rPos)
 drop an index, and remove it from the collection More...
 
bool dropNoRemove (const Indexes::iterator &_rPos)
 simply drop the index described by the name, but don't remove the descriptor from the collection More...
 

Protected Member Functions

void implConstructFrom (const css::uno::Reference< css::container::XNameAccess > &_rxIndexes)
 
void implFillIndexInfo (OIndex &_rIndex)
 

Static Protected Member Functions

static void implFillIndexInfo (OIndex &_rIndex, const css::uno::Reference< css::beans::XPropertySet > &_rxDescriptor)
 

Private Attributes

css::uno::Reference< css::container::XNameAccess > m_xIndexes
 
Indexes m_aIndexes
 

Detailed Description

Definition at line 30 of file indexcollection.hxx.

Member Typedef Documentation

◆ const_iterator

Definition at line 48 of file indexcollection.hxx.

◆ iterator

Definition at line 47 of file indexcollection.hxx.

Constructor & Destructor Documentation

◆ OIndexCollection() [1/2]

dbaui::OIndexCollection::OIndexCollection ( )

Definition at line 40 of file indexcollection.cxx.

◆ OIndexCollection() [2/2]

dbaui::OIndexCollection::OIndexCollection ( const OIndexCollection _rSource)

Definition at line 44 of file indexcollection.cxx.

Member Function Documentation

◆ attach()

void dbaui::OIndexCollection::attach ( const css::uno::Reference< css::container::XNameAccess > &  _rxIndexes)

Definition at line 57 of file indexcollection.cxx.

References implConstructFrom().

◆ begin() [1/2]

Indexes::iterator dbaui::OIndexCollection::begin ( )
inline

get access to the first element of the index collection

Definition at line 53 of file indexcollection.hxx.

References m_aIndexes.

◆ begin() [2/2]

Indexes::const_iterator dbaui::OIndexCollection::begin ( ) const
inline

get access to the first element of the index collection

Definition at line 51 of file indexcollection.hxx.

References m_aIndexes.

◆ commitNewIndex()

void dbaui::OIndexCollection::commitNewIndex ( const Indexes::iterator &  _rPos)

Definition at line 96 of file indexcollection.cxx.

References Any, DBG_UNHANDLED_EXCEPTION, Exception, m_xIndexes, and u.

◆ detach()

void dbaui::OIndexCollection::detach ( )

Definition at line 62 of file indexcollection.cxx.

References m_aIndexes, and m_xIndexes.

Referenced by implConstructFrom(), and operator=().

◆ drop()

bool dbaui::OIndexCollection::drop ( const Indexes::iterator &  _rPos)

drop an index, and remove it from the collection

Definition at line 193 of file indexcollection.cxx.

References dropNoRemove(), and m_aIndexes.

◆ dropNoRemove()

bool dbaui::OIndexCollection::dropNoRemove ( const Indexes::iterator &  _rPos)

simply drop the index described by the name, but don't remove the descriptor from the collection

Definition at line 160 of file indexcollection.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, findOriginal(), m_aIndexes, and m_xIndexes.

Referenced by drop().

◆ end() [1/2]

Indexes::iterator dbaui::OIndexCollection::end ( )
inline

get access to the (last + 1st) element of the index collection

Definition at line 57 of file indexcollection.hxx.

References m_aIndexes.

◆ end() [2/2]

Indexes::const_iterator dbaui::OIndexCollection::end ( ) const
inline

get access to the (last + 1st) element of the index collection

Definition at line 55 of file indexcollection.hxx.

References m_aIndexes.

Referenced by insert().

◆ find() [1/2]

Indexes::iterator dbaui::OIndexCollection::find ( const OUString &  _rName)

Definition at line 75 of file indexcollection.cxx.

References m_aIndexes.

◆ find() [2/2]

Indexes::const_iterator dbaui::OIndexCollection::find ( const OUString &  _rName) const

Definition at line 68 of file indexcollection.cxx.

References m_aIndexes.

Referenced by insert().

◆ findOriginal() [1/2]

Indexes::iterator dbaui::OIndexCollection::findOriginal ( const OUString &  _rName)

Definition at line 89 of file indexcollection.cxx.

References m_aIndexes.

◆ findOriginal() [2/2]

Indexes::const_iterator dbaui::OIndexCollection::findOriginal ( const OUString &  _rName) const

Definition at line 82 of file indexcollection.cxx.

References m_aIndexes.

Referenced by dropNoRemove().

◆ implConstructFrom()

void dbaui::OIndexCollection::implConstructFrom ( const css::uno::Reference< css::container::XNameAccess > &  _rxIndexes)
protected

Definition at line 296 of file indexcollection.cxx.

References detach(), implFillIndexInfo(), m_aIndexes, and m_xIndexes.

Referenced by attach().

◆ implFillIndexInfo() [1/2]

void dbaui::OIndexCollection::implFillIndexInfo ( OIndex _rIndex)
protected

◆ implFillIndexInfo() [2/2]

static void dbaui::OIndexCollection::implFillIndexInfo ( OIndex _rIndex,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDescriptor 
)
staticprotected

◆ insert()

Indexes::iterator dbaui::OIndexCollection::insert ( const OUString &  _rName)

Definition at line 287 of file indexcollection.cxx.

References end(), find(), m_aIndexes, and dbaui::OIndex::sName.

◆ operator=()

OIndexCollection & dbaui::OIndexCollection::operator= ( const OIndexCollection _rSource)

Definition at line 49 of file indexcollection.cxx.

References detach(), m_aIndexes, and m_xIndexes.

◆ resetIndex()

void dbaui::OIndexCollection::resetIndex ( const Indexes::iterator &  _rPos)

Member Data Documentation

◆ m_aIndexes

Indexes dbaui::OIndexCollection::m_aIndexes
private

◆ m_xIndexes

css::uno::Reference< css::container::XNameAccess > dbaui::OIndexCollection::m_xIndexes
private

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