• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
KBiAssociativeContainer< LeftContainer, RightContainer > Class Template Reference

#include <kbihash_p.h>

Inheritance diagram for KBiAssociativeContainer< LeftContainer, RightContainer >:
Inheritance graph
[legend]

Classes

class  _iterator
 

Public Types

typedef
LeftContainer::const_iterator 
left_const_iterator
 
typedef _iterator< LeftContainer > left_iterator
 
typedef RightContainer::mapped_type left_type
 
typedef
RightContainer::const_iterator 
right_const_iterator
 
typedef _iterator< RightContainer > right_iterator
 
typedef LeftContainer::mapped_type right_type
 

Public Member Functions

 KBiAssociativeContainer ()
 
 KBiAssociativeContainer (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
int capacity () const
 
void clear ()
 
left_const_iterator constFindLeft (left_type t) const
 
right_const_iterator constFindRight (right_type u) const
 
int count () const
 
void detach ()
 
left_iterator eraseLeft (left_iterator it)
 
right_iterator eraseRight (right_iterator it)
 
left_iterator findLeft (left_type t)
 
left_const_iterator findLeft (left_type t) const
 
right_iterator findRight (right_type u)
 
right_const_iterator findRight (right_type u) const
 
left_iterator insert (left_type t, right_type u)
 
KBiAssociativeContainer
< LeftContainer,
RightContainer > & 
intersect (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
bool isDetached () const
 
bool isEmpty () const
 
bool isSharedWith (const KBiAssociativeContainer< RightContainer, LeftContainer > &other) const
 
left_iterator leftBegin ()
 
left_const_iterator leftBegin () const
 
left_const_iterator leftConstBegin () const
 
left_const_iterator leftConstEnd () const
 
bool leftContains (left_type t) const
 
left_iterator leftEnd ()
 
left_const_iterator leftEnd () const
 
right_type leftToRight (left_type t) const
 
QList< left_type > leftValues () const
 
bool operator!= (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
const KBiAssociativeContainer
< LeftContainer,
RightContainer > & 
operator= (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
bool operator== (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
const right_type operator[] (const left_type &t) const
 
bool removeLeft (left_type t)
 
bool removeRight (right_type u)
 
void reserve (int size)
 
right_iterator rightBegin ()
 
right_const_iterator rightBegin () const
 
right_const_iterator rightConstBegin () const
 
right_const_iterator rightConstEnd () const
 
bool rightContains (right_type u) const
 
right_iterator rightEnd ()
 
right_const_iterator rightEnd () const
 
left_type rightToLeft (right_type u) const
 
QList< right_type > rightValues () const
 
void setSharable (bool sharable)
 
int size () const
 
void squeeze ()
 
KBiAssociativeContainer
< LeftContainer,
RightContainer > & 
subtract (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
right_type takeLeft (left_type t)
 
left_type takeRight (right_type u)
 
left_iterator toLeftIterator (right_iterator it) const
 
right_iterator toRightIterator (left_iterator it) const
 
KBiAssociativeContainer
< LeftContainer,
RightContainer > & 
unite (const KBiAssociativeContainer< LeftContainer, RightContainer > &other)
 
void updateLeft (right_iterator it, left_type t)
 
void updateRight (left_iterator it, right_type u)
 

Static Public Member Functions

static KBiAssociativeContainer
< LeftContainer,
RightContainer > 
fromHash (const QHash< left_type, right_type > &hash)
 
static KBiAssociativeContainer
< LeftContainer,
RightContainer > 
fromMap (const QMap< left_type, right_type > &hash)
 

Protected Attributes

LeftContainer _leftToRight
 
RightContainer _rightToLeft
 

Friends

QDataStream & operator (QDataStream &out, const KBiAssociativeContainer< LeftContainer, RightContainer > &bihash)
 
QDebug operator (QDebug out, const KBiAssociativeContainer< LeftContainer, RightContainer > &biHash)
 
QDataStream & operator>> (QDataStream &in, KBiAssociativeContainer< LeftContainer, RightContainer > &biHash)
 

Detailed Description

template<typename LeftContainer, typename RightContainer>
class KBiAssociativeContainer< LeftContainer, RightContainer >

Definition at line 32 of file kbihash_p.h.

Member Typedef Documentation

template<typename LeftContainer, typename RightContainer>
typedef LeftContainer::const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::left_const_iterator

Definition at line 123 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
typedef _iterator<LeftContainer> KBiAssociativeContainer< LeftContainer, RightContainer >::left_iterator

Definition at line 122 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
typedef RightContainer::mapped_type KBiAssociativeContainer< LeftContainer, RightContainer >::left_type

Definition at line 89 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
typedef RightContainer::const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::right_const_iterator

Definition at line 125 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
typedef _iterator<RightContainer> KBiAssociativeContainer< LeftContainer, RightContainer >::right_iterator

Definition at line 124 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
typedef LeftContainer::mapped_type KBiAssociativeContainer< LeftContainer, RightContainer >::right_type

Definition at line 90 of file kbihash_p.h.

Constructor & Destructor Documentation

template<typename LeftContainer, typename RightContainer>
KBiAssociativeContainer< LeftContainer, RightContainer >::KBiAssociativeContainer ( )
inline

Definition at line 127 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
KBiAssociativeContainer< LeftContainer, RightContainer >::KBiAssociativeContainer ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 128 of file kbihash_p.h.

Member Function Documentation

template<typename LeftContainer, typename RightContainer>
int KBiAssociativeContainer< LeftContainer, RightContainer >::capacity ( ) const
inline

Definition at line 182 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::clear ( )
inline

Definition at line 210 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::constFindLeft ( left_type  t) const
inline

Definition at line 242 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::constFindRight ( right_type  u) const
inline

Definition at line 254 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
int KBiAssociativeContainer< LeftContainer, RightContainer >::count ( ) const
inline

Definition at line 178 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::detach ( )
inline

Definition at line 194 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::eraseLeft ( left_iterator  it)
inline

Definition at line 228 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::eraseRight ( right_iterator  it)
inline

Definition at line 222 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::findLeft ( left_type  t)
inline

Definition at line 234 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::findLeft ( left_type  t) const
inline

Definition at line 238 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::findRight ( right_type  u)
inline

Definition at line 246 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::findRight ( right_type  u) const
inline

Definition at line 250 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
static KBiAssociativeContainer<LeftContainer, RightContainer> KBiAssociativeContainer< LeftContainer, RightContainer >::fromHash ( const QHash< left_type, right_type > &  hash)
inlinestatic

Definition at line 398 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
static KBiAssociativeContainer<LeftContainer, RightContainer> KBiAssociativeContainer< LeftContainer, RightContainer >::fromMap ( const QMap< left_type, right_type > &  hash)
inlinestatic

Definition at line 407 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::insert ( left_type  t,
right_type  u 
)
inline

Definition at line 258 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
KBiAssociativeContainer<LeftContainer, RightContainer>& KBiAssociativeContainer< LeftContainer, RightContainer >::intersect ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 275 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::isDetached ( ) const
inline

Definition at line 198 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::isEmpty ( ) const
inline

Definition at line 325 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::isSharedWith ( const KBiAssociativeContainer< RightContainer, LeftContainer > &  other) const
inline

Definition at line 206 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftBegin ( )
inline

Definition at line 351 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftBegin ( ) const
inline

Definition at line 359 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftConstBegin ( ) const
inline

Definition at line 367 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftConstEnd ( ) const
inline

Definition at line 371 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::leftContains ( left_type  t) const
inline

Definition at line 166 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftEnd ( )
inline

Definition at line 355 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::leftEnd ( ) const
inline

Definition at line 363 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_type KBiAssociativeContainer< LeftContainer, RightContainer >::leftToRight ( left_type  t) const
inline

Definition at line 162 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
QList<left_type> KBiAssociativeContainer< LeftContainer, RightContainer >::leftValues ( ) const
inline

Definition at line 214 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::operator!= ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 337 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
const KBiAssociativeContainer<LeftContainer, RightContainer>& KBiAssociativeContainer< LeftContainer, RightContainer >::operator= ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 132 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::operator== ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 333 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
const right_type KBiAssociativeContainer< LeftContainer, RightContainer >::operator[] ( const left_type &  t) const
inline

Definition at line 329 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::removeLeft ( left_type  t)
inline

Definition at line 136 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::removeRight ( right_type  u)
inline

Definition at line 141 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::reserve ( int  size)
inline

Definition at line 186 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightBegin ( )
inline

Definition at line 375 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightBegin ( ) const
inline

Definition at line 383 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightConstBegin ( ) const
inline

Definition at line 390 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightConstEnd ( ) const
inline

Definition at line 394 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
bool KBiAssociativeContainer< LeftContainer, RightContainer >::rightContains ( right_type  u) const
inline

Definition at line 170 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightEnd ( )
inline

Definition at line 379 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_const_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::rightEnd ( ) const
inline

Definition at line 387 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_type KBiAssociativeContainer< LeftContainer, RightContainer >::rightToLeft ( right_type  u) const
inline

Definition at line 158 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
QList<right_type> KBiAssociativeContainer< LeftContainer, RightContainer >::rightValues ( ) const
inline

Definition at line 218 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::setSharable ( bool  sharable)
inline

Definition at line 202 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
int KBiAssociativeContainer< LeftContainer, RightContainer >::size ( ) const
inline

Definition at line 174 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::squeeze ( )
inline

Definition at line 190 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
KBiAssociativeContainer<LeftContainer, RightContainer>& KBiAssociativeContainer< LeftContainer, RightContainer >::subtract ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 286 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_type KBiAssociativeContainer< LeftContainer, RightContainer >::takeLeft ( left_type  t)
inline

Definition at line 146 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_type KBiAssociativeContainer< LeftContainer, RightContainer >::takeRight ( right_type  u)
inline

Definition at line 152 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
left_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::toLeftIterator ( right_iterator  it) const
inline

Definition at line 341 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
right_iterator KBiAssociativeContainer< LeftContainer, RightContainer >::toRightIterator ( left_iterator  it) const
inline

Definition at line 346 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
KBiAssociativeContainer<LeftContainer, RightContainer>& KBiAssociativeContainer< LeftContainer, RightContainer >::unite ( const KBiAssociativeContainer< LeftContainer, RightContainer > &  other)
inline

Definition at line 297 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::updateLeft ( right_iterator  it,
left_type  t 
)
inline

Definition at line 317 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
void KBiAssociativeContainer< LeftContainer, RightContainer >::updateRight ( left_iterator  it,
right_type  u 
)
inline

Definition at line 309 of file kbihash_p.h.

Friends And Related Function Documentation

template<typename LeftContainer, typename RightContainer>
QDataStream& operator ( QDataStream &  out,
const KBiAssociativeContainer< LeftContainer, RightContainer > &  bihash 
)
friend
template<typename LeftContainer, typename RightContainer>
QDebug operator ( QDebug  out,
const KBiAssociativeContainer< LeftContainer, RightContainer > &  biHash 
)
friend
template<typename LeftContainer, typename RightContainer>
QDataStream& operator>> ( QDataStream &  in,
KBiAssociativeContainer< LeftContainer, RightContainer > &  biHash 
)
friend

Definition at line 431 of file kbihash_p.h.

Member Data Documentation

template<typename LeftContainer, typename RightContainer>
LeftContainer KBiAssociativeContainer< LeftContainer, RightContainer >::_leftToRight
protected

Definition at line 420 of file kbihash_p.h.

template<typename LeftContainer, typename RightContainer>
RightContainer KBiAssociativeContainer< LeftContainer, RightContainer >::_rightToLeft
protected

Definition at line 421 of file kbihash_p.h.


The documentation for this class was generated from the following file:
  • kbihash_p.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal