86 #ifdef ASSOCIATIONMAP_CONTEXT
104 , m_actual(theStore.
begin())
113 const typename store_type::const_iterator&
pos)
121 m_store ( rhs.m_store ),
122 m_actual( rhs.m_actual )
129 if (
this != &rhs ) {
130 m_store = rhs.m_store;
131 m_actual= rhs.m_actual;
161 { ++m_actual;
return *
this; }
165 { --m_actual;
return *
this; }
197 {
return m_actual == anOther.m_actual; }
205 {
return m_actual != anOther.m_actual; }
224 {
return this->getObject(); }
228 {
return this->getObject(); }
233 asso_iterator
second()
const
234 {
return asso_iterator(m_actual->second,m_actual->second.begin()); }
248 while (firstObj != lastObj )
250 if ( firstObj.isValid() && firstObj.getObject() == objectPointer )
271 const object_link& getObjectLink()
const {
return m_actual->first; }
273 bool isValid()
const {
return this->m_actual->first.isValid(); }
276 asso_iterator getFirstAssociation()
const
278 return asso_iterator(m_actual->second, m_actual->second.begin());
282 asso_iterator getLastAssociation()
const
284 return asso_iterator(m_actual->second, m_actual->second.end());
288 asso_iterator findAssociation(
const asso_type* assoPointer)
const
290 asso_iterator assItr = asso_iterator(m_actual->second,
291 m_actual->second.begin());
292 return assItr.find(assoPointer);
296 bool containsAssociation(
const asso_type* assoPointer)
const
297 {
return this->findAssociation(assoPointer) != this->getLastAssociation(); }
300 size_t getNumberOfAssociations()
const
301 {
return m_actual->second.size(); }
303 size_t size()
const {
return m_store->size(); }
307 const store_type* m_store;
308 typename store_type::const_iterator m_actual;