void swap()

in src/xalanc/Include/XalanMap.hpp [450:471]


    void swap(XalanMap& theRhs)
    {
        const size_type tempSize = m_size;
        m_size = theRhs.m_size;
        theRhs.m_size = tempSize;

        MemoryManager* const    tempMemoryManager = m_memoryManager;
        m_memoryManager = theRhs.m_memoryManager;
        theRhs.m_memoryManager = tempMemoryManager;

        const size_type     tempEraseCount = m_eraseCount;
        m_eraseCount = theRhs.m_eraseCount;
        theRhs.m_eraseCount = tempEraseCount;

        const size_type     tempEraseTheshold = m_eraseThreshold;
        m_eraseThreshold = theRhs.m_eraseThreshold;
        theRhs.m_eraseThreshold = tempEraseTheshold;

        m_entries.swap(theRhs.m_entries);
        m_freeEntries.swap(theRhs.m_freeEntries);
        m_buckets.swap(theRhs.m_buckets);
    }