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 | |
Uint32 | getCount () const |
gets number of cache entries | |
OFBool | gotoItem (Uint32 idx) |
sets internal cursor to specified position in cache list | |
OFBool | gotoFirst () |
sets internal cursor to first position in cache list | |
OFBool | gotoNext () |
sets internal cursor to next position in cache list | |
OFBool | reset () |
sets internal cursor to last visited position in cache list | |
OFBool | isElem (const OFString &uid) |
checks whether an item with the specified UID exists in the cache list | |
DVIFhierarchyStatus | getStatus () const |
gets review status of the current (selected) series | |
DVPSInstanceType | getType () const |
gets type of all instances in the series | |
ItemStruct * | getItem () const |
gets reference to current (selected) series | |
void | addItem (const OFString &uid, const DVIFhierarchyStatus status=DVIF_objectIsNew) |
adds a new item to the cache list. | |
DVIFhierarchyStatus | updateStatus () |
updates hierarchical/review status for all list items. | |
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 | |
Classes | |
struct | ItemStruct |
Internal structure defining the list items. More... |
This is the middle level in the hierarchical cache structure. This class is used by DVStudyCache. The internal structure is a list of DVInstanceCache.
Definition at line 409 of file dvcache.h.
OFBool DVSeriesCache::empty | ( | void | ) | const [inline] |
checks whether instance cache is empty
Definition at line 481 of file dvcache.h.
References DVInstanceCache::List.
Uint32 DVSeriesCache::getCount | ( | ) | const [inline] |
gets number of cache entries
Definition at line 490 of file dvcache.h.
References DVInstanceCache::List.
OFBool DVSeriesCache::gotoItem | ( | Uint32 | idx | ) | [inline] |
sets internal cursor to specified position in cache list
idx | index position in cache list (starting with 0) |
Definition at line 501 of file dvcache.h.
References DVInstanceCache::List, and DVInstanceCache::OFListIterator().
OFBool DVSeriesCache::gotoFirst | ( | ) | [inline] |
sets internal cursor to first position in cache list
Definition at line 523 of file dvcache.h.
References DVInstanceCache::List.
OFBool DVSeriesCache::gotoNext | ( | ) | [inline] |
sets internal cursor to next position in cache list
Definition at line 534 of file dvcache.h.
References DVInstanceCache::List, and DVInstanceCache::OFListIterator().
OFBool DVSeriesCache::reset | ( | ) | [inline] |
sets internal cursor to last visited position in cache list
Definition at line 547 of file dvcache.h.
References DVInstanceCache::List, and DVInstanceCache::OFListIterator().
OFBool DVSeriesCache::isElem | ( | const OFString & | uid | ) | [inline] |
checks whether an item with the specified UID exists in the cache list
uid | UID which should be checked |
Definition at line 566 of file dvcache.h.
References DVInstanceCache::List, DVInstanceCache::OFListIterator(), and DVSeriesCache::ItemStruct::UID.
DVIFhierarchyStatus DVSeriesCache::getStatus | ( | ) | const [inline] |
gets review status of the current (selected) series
Definition at line 591 of file dvcache.h.
References DVInstanceCache::getItem(), and DVSeriesCache::ItemStruct::Status.
DVPSInstanceType DVSeriesCache::getType | ( | ) | const [inline] |
gets type of all instances in the series
Definition at line 601 of file dvcache.h.
References DVInstanceCache::getItem(), and DVSeriesCache::ItemStruct::Type.
ItemStruct* DVSeriesCache::getItem | ( | ) | const [inline] |
gets reference to current (selected) series
Definition at line 611 of file dvcache.h.
References DVInstanceCache::List.
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.
uid | unique identifier | |
status | review status (optional) |
Definition at line 623 of file dvcache.h.
References DVInstanceCache::List.
DVIFhierarchyStatus DVSeriesCache::updateStatus | ( | ) | [inline] |
updates hierarchical/review status for all list items.
Definition at line 635 of file dvcache.h.
References DVSeriesCache::ItemStruct::List, DVInstanceCache::List, DVInstanceCache::OFListIterator(), DVSeriesCache::ItemStruct::Status, and DVInstanceCache::updateStatus().
Referenced by DVStudyCache::updateStatus().