Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfVecObjects::push_back ( PdfObject pObj )

Insert a object into this vector. Overwritten from std::vector so that m_bObjectCount can be increased for each object.

Parameters:
pObjpointer to the object you want to insert

Definition at line 257 of file PdfVecObjects.cpp.

References PoDoFo::PdfObject::Reference(), SetObjectCount(), and PoDoFo::PdfObject::SetOwner().

Referenced by PoDoFo::PdfDocument::Append(), CreateObject(), PoDoFo::PdfParser::ReadObjectsInternal(), and PoDoFo::PdfWriter::ReorderObjectsLinearized().

{
    SetObjectCount( pObj->Reference() );

//  Ulrich Arnold 30.7.2009 must sort if INSIDE range
//    if( !m_vector.empty() && m_vector.back()->Reference() < pObj->Reference() )
    if( !m_vector.empty() && pObj->Reference() < m_vector.back()->Reference() )
        m_bSorted = false;

    pObj->SetOwner( this );
    m_vector.push_back( pObj );
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index