DICOMAnonymizer/dcmtk/dcmtk-3.6.0/dcmpstat/include/dcmtk/dcmpstat/dvcache.h
inline DVIFhierarchyStatus updateStatus()
    {
        OFListIterator(ItemStruct *) first = List.begin();
        OFListIterator(ItemStruct *) last = List.end();
        OFListIterator(ItemStruct *) iter = first;
        DVIFhierarchyStatus status = DVIF_objectIsNew;
        while (iter != last)
        {
            ItemStruct *item = (*iter);
            if (item != NULL)
            {
                switch (item->Status)
                {
                    case DVIF_objectIsNew:
                        if (status == DVIF_objectIsNotNew)
                            status = DVIF_objectContainsNewSubobjects;
                        break;
                    case DVIF_objectIsNotNew:
                    case DVIF_objectContainsNewSubobjects:
                        if (iter == first)
                            status = DVIF_objectIsNotNew;
                        else if (status == DVIF_objectIsNew)
                            status = DVIF_objectContainsNewSubobjects;
                        break;
                }
            }
            ++iter;
        }
        return status;
    }
/** updates hierarchical/review status for all list items.
     *
     ** @return resulting review status (summary of all items)
     */
updates hierarchical/review status for all list items.
@return resulting review status (summary of all items)
updates hierarchical / review status for all list items . @return resulting review status ( summary of all items )
inline DVIFhierarchyStatus updateStatus()
    {
        OFListIterator(ItemStruct *) first = List.begin();
        OFListIterator(ItemStruct *) last = List.end();
        OFListIterator(ItemStruct *) iter = first;
        DVIFhierarchyStatus status = DVIF_objectIsNew;
        while (iter != last)
        {
            ItemStruct *item = (*iter);
            if (item != NULL)
            {
                switch (item->Status)
                {
                    case DVIF_objectIsNew:
                        if (status == DVIF_objectIsNotNew)
                            status = DVIF_objectContainsNewSubobjects;
                        break;
                    case DVIF_objectIsNotNew:
                    case DVIF_objectContainsNewSubobjects:
                        if (iter == first)
                            status = DVIF_objectIsNotNew;
                        else if (status == DVIF_objectIsNew)
                            status = DVIF_objectContainsNewSubobjects;
                        break;
                }
            }
            ++iter;
        }
        return status;
    }
inline DVIFhierarchyStatus updateStatus ( ) { OFListIterator ( ItemStruct * ) first = List . begin ( ) ; OFListIterator ( ItemStruct * ) last = List . end ( ) ; OFListIterator ( ItemStruct * ) iter = first ; DVIFhierarchyStatus status = DVIF_objectIsNew ; while ( iter != last ) { ItemStruct * item = ( * iter ) ; if ( item != NULL ) { switch ( item -> Status ) { case DVIF_objectIsNew : if ( status == DVIF_objectIsNotNew ) status = DVIF_objectContainsNewSubobjects ; break ; case DVIF_objectIsNotNew : case DVIF_objectContainsNewSubobjects : if ( iter == first ) status = DVIF_objectIsNotNew ; else if ( status == DVIF_objectIsNew ) status = DVIF_objectContainsNewSubobjects ; break ; } } ++ iter ; } return status ; }
updates hierarchical/review status for all list items.
updates hierarchical / review status for all list items .