DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DVSeriesCache Class Reference

A class to handle a series cache (list of items). More...

Classes

struct  ItemStruct
 Internal structure defining the list items. More...
 

Public Member Functions

 DVSeriesCache ()
 Constructor.
 
virtual ~DVSeriesCache ()
 Destructor.
 
void clear ()
 reset all member variables to initial state delete all list items.
 
OFBool empty () const
 checks whether instance cache is empty More...
 
Uint32 getCount () const
 gets number of cache entries More...
 
OFBool gotoItem (Uint32 idx)
 sets internal cursor to specified position in cache list More...
 
OFBool gotoFirst ()
 sets internal cursor to first position in cache list More...
 
OFBool gotoNext ()
 sets internal cursor to next position in cache list More...
 
OFBool reset ()
 sets internal cursor to last visited position in cache list More...
 
OFBool isElem (const OFString &uid)
 checks whether an item with the specified UID exists in the cache list More...
 
DVIFhierarchyStatus getStatus () const
 gets review status of the current (selected) series More...
 
DVPSInstanceType getType () const
 gets type of all instances in the series More...
 
ItemStructgetItem () const
 gets reference to current (selected) series More...
 
void addItem (const OFString &uid, const DVIFhierarchyStatus status=DVIF_objectIsNew)
 adds a new item to the cache list. More...
 
DVIFhierarchyStatus updateStatus ()
 updates hierarchical/review status for all list items. More...
 

Protected Member Functions

 OFListIterator (ItemStruct *) Iterator
 internal cursor to current (selected) list item
 
 OFListIterator (ItemStruct *) OldIterator
 last visited position in item list
 

Protected Attributes

OFList< ItemStruct * > List
 list of series
 

Detailed Description

A class to handle a series cache (list of items).

This is the middle level in the hierarchical cache structure. This class is used by DVStudyCache. The internal structure is a list of DVInstanceCache.

Member Function Documentation

void DVSeriesCache::addItem ( const OFString uid,
const DVIFhierarchyStatus  status = DVIF_objectIsNew 
)
inline

adds a new item to the cache list.

sets internal cursor to new position.

Parameters
uidunique identifier
statusreview status (optional)

References OFList< T >::end(), and OFList< T >::push_back().

OFBool DVSeriesCache::empty ( void  ) const
inline

checks whether instance cache is empty

Returns
OFTrue if cache is empty, OFFalse otherwise

References OFList< T >::empty().

Uint32 DVSeriesCache::getCount ( ) const
inline

gets number of cache entries

Returns
number of cache entries

References OFList< T >::size().

ItemStruct* DVSeriesCache::getItem ( ) const
inline

gets reference to current (selected) series

Returns
pointer to ItemStruct if successful, NULL otherwise

References OFList< T >::end().

DVIFhierarchyStatus DVSeriesCache::getStatus ( ) const
inline

gets review status of the current (selected) series

Returns
hierarchical status code if successful, 'isNew' otherwise

References DVSeriesCache::ItemStruct::Status.

DVPSInstanceType DVSeriesCache::getType ( ) const
inline

gets type of all instances in the series

Returns
type of all instances

References DVSeriesCache::ItemStruct::Type.

OFBool DVSeriesCache::gotoFirst ( )
inline

sets internal cursor to first position in cache list

Returns
OFTrue if successful, OFFalse if list is empty

References OFList< T >::begin(), and OFList< T >::end().

OFBool DVSeriesCache::gotoItem ( Uint32  idx)
inline

sets internal cursor to specified position in cache list

Parameters
idxindex position in cache list (starting with 0)
Returns
OFTrue if successful, OFFalse if 'idx' is invalid

References OFList< T >::begin(), and OFList< T >::end().

OFBool DVSeriesCache::gotoNext ( )
inline

sets internal cursor to next position in cache list

Returns
OFTrue if successful, OFFalse if new position is invalid

References OFList< T >::end().

OFBool DVSeriesCache::isElem ( const OFString uid)
inline

checks whether an item with the specified UID exists in the cache list

Parameters
uidUID which should be checked
Returns
OFTrue if such an item exists, OFFalse otherwise

References OFList< T >::begin(), OFList< T >::end(), and DVSeriesCache::ItemStruct::UID.

OFBool DVSeriesCache::reset ( )
inline

sets internal cursor to last visited position in cache list

Returns
OFTrue if successful, OFFalse if last visited position was invalid or the last one in the list

References OFList< T >::end().

DVIFhierarchyStatus DVSeriesCache::updateStatus ( )
inline

updates hierarchical/review status for all list items.

Returns
resulting review status (summary of all items)

References OFList< T >::begin(), OFList< T >::end(), DVSeriesCache::ItemStruct::List, DVSeriesCache::ItemStruct::Status, and DVInstanceCache::updateStatus().

Referenced by DVStudyCache::updateStatus().


The documentation for this class was generated from the following file:


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8