Project

General

Profile

Actions

Feature #172

closed

Spezialisierung von OFList für Pointertypen

Added by Marco Eichelberg about 23 years ago. Updated 8 days ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Module:
ofstd
Operating System:
Compiler:

Description

OFList wird häufig verwendet, um Pointertypen zu verwalten.
Man könnte den DCMTK-Binärcode deutlich verkleinern, wenn
man * OFList<void *> explizit expandiert (in einer .cc-Datei) * eine partielle Spezialisierung OFList<class T*> realisiert, die inline auf OFList<void *> castet.

Da partielle Spezialisierung von den meisten Compilern noch nicht
unterstützt wird, müsste man das ganze explizit machen:

typedef OFList<void *> OFVoidPointerList;

OFPointerList<class T *>: public (private?) OFVoidPointerList
{
  inline name(T* x)
  {
    Pointerlist::name((void *)x)
  }
}

Name:

OFPtrList
OFPList
OFPointerList<class T *>

Auch die Iteratoren müßten ensprechend angepaßt werden.

Actions #1

Updated by Marco Eichelberg 8 days ago

  • Status changed from New to Rejected

This might cause issues when STL std::list is in use, and a better way to reduce binary size is to use shared libraries, which is meanwhile officially supported.

Actions

Also available in: Atom PDF