A class to handle an instance cache (list of items).
More...
|
| DVInstanceCache () |
| Constructor.
|
|
virtual | ~DVInstanceCache () |
| Destructor.
|
|
void | clear () |
| reset all member variables to initial state. More...
|
|
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...
|
|
int | getPos () const |
| gets the file position of the current (selected) instance More...
|
|
DVIFhierarchyStatus | getStatus () const |
| gets review status of the current (selected) instance More...
|
|
DVPSInstanceType | getType () const |
| gets type of the instance More...
|
|
int | getImageSize () const |
| gets image size of current (selected) instance More...
|
|
const char * | getFilename () const |
| gets filename of current (selected) instance More...
|
|
ItemStruct * | getItem () const |
| gets reference to current (selected) instance More...
|
|
void | addItem (const OFString &uid, const int pos, const DVIFhierarchyStatus status, const DVPSInstanceType type, const int size, const OFString &filename) |
| adds a new item to the cache list. More...
|
|
DVIFhierarchyStatus | updateStatus () |
| updates hierarchical/review status for all list items. More...
|
|
|
| OFListIterator (ItemStruct *) Iterator |
| internal cursor to current (selected) list item
|
|
| OFListIterator (ItemStruct *) OldIterator |
| last visited position in item list
|
|
A class to handle an instance cache (list of items).
This is the lowest level in the hierarchical cache structure. Images are handled as well as presentation states. This class is used by DVSeriesCache.
◆ addItem()
void DVInstanceCache::addItem |
( |
const OFString & |
uid, |
|
|
const int |
pos, |
|
|
const DVIFhierarchyStatus |
status, |
|
|
const DVPSInstanceType |
type, |
|
|
const int |
size, |
|
|
const OFString & |
filename |
|
) |
| |
|
inline |
adds a new item to the cache list.
sets internal cursor to new position.
- Parameters
-
uid | unique identifier |
pos | file position in index file |
status | review status |
type | type of instance |
size | image size (in bytes) |
filename | filename of instance |
◆ clear()
void DVInstanceCache::clear |
( |
| ) |
|
|
inline |
reset all member variables to initial state.
delete all list items.
◆ empty()
OFBool DVInstanceCache::empty |
( |
| ) |
const |
|
inline |
checks whether instance cache is empty
- Returns
- OFTrue if cache is empty, OFFalse otherwise
◆ getCount()
Uint32 DVInstanceCache::getCount |
( |
| ) |
const |
|
inline |
gets number of cache entries
- Returns
- number of cache entries
◆ getFilename()
const char * DVInstanceCache::getFilename |
( |
| ) |
const |
|
inline |
◆ getImageSize()
int DVInstanceCache::getImageSize |
( |
| ) |
const |
|
inline |
◆ getItem()
gets reference to current (selected) instance
- Returns
- pointer to ItemStruct if successful, NULL otherwise
◆ getPos()
int DVInstanceCache::getPos |
( |
| ) |
const |
|
inline |
◆ getStatus()
DVIFhierarchyStatus DVInstanceCache::getStatus |
( |
| ) |
const |
|
inline |
◆ getType()
DVPSInstanceType DVInstanceCache::getType |
( |
| ) |
const |
|
inline |
◆ gotoFirst()
OFBool DVInstanceCache::gotoFirst |
( |
| ) |
|
|
inline |
sets internal cursor to first position in cache list
- Returns
- OFTrue if successful, OFFalse if list is empty
◆ gotoItem()
OFBool DVInstanceCache::gotoItem |
( |
Uint32 |
idx | ) |
|
|
inline |
sets internal cursor to specified position in cache list
- Parameters
-
idx | index position in cache list (starting with 0) |
- Returns
- OFTrue if successful, OFFalse if 'idx' is invalid
◆ gotoNext()
OFBool DVInstanceCache::gotoNext |
( |
| ) |
|
|
inline |
sets internal cursor to next position in cache list
- Returns
- OFTrue if successful, OFFalse if new position is invalid
◆ isElem()
OFBool DVInstanceCache::isElem |
( |
const OFString & |
uid | ) |
|
|
inline |
checks whether an item with the specified UID exists in the cache list
- Parameters
-
uid | UID which should be checked |
- Returns
- OFTrue if such an item exists, OFFalse otherwise
◆ reset()
OFBool DVInstanceCache::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
◆ updateStatus()
DVIFhierarchyStatus DVInstanceCache::updateStatus |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- dcmpstat/include/dcmtk/dcmpstat/dvcache.h