MCPcopy Create free account
hub / github.com/DCMTK/dcmtk / insert

Method insert

dcmdata/libsrc/dcpixseq.cc:154–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153
154E_Condition DcmPixelSequence::insert(DcmPixelItem* item,
155 unsigned long where)
156{
157 Bdebug((3, "dcsequen:DcmSequenceOfItems::insert(DcmItem*=%p,where=%ld)",
158 item, where ));
159
160 errorFlag = EC_Normal;
161 if ( item != NULL )
162 {
163 itemList->seek_to( where );
164 itemList->insert( item );
165 Vdebug((3, where< itemList->card(), "item at position %d inserted", where ));
166 Vdebug((3, where>=itemList->card(), "item at last position inserted" ));
167
168 }
169 else
170 errorFlag = EC_IllegalCall;
171 Edebug(());
172
173 return errorFlag;
174}
175
176
177// ********************************

Callers

nothing calls this directly

Calls 2

seek_toMethod · 0.80
cardMethod · 0.45

Tested by

no test coverage detected