|
정중환 님이 쓰신 글 :
: 제목 그대로입니다.
:
: MFC에서는 MFC 컬렉션 클래스를 사용해서 자료구조를 해결하는 경우가 많은 데
:
: 이와 같은 것이 C++Builder(VCL이라고 해야 하나?)에도 있나요..
VCL/CLX에도 이와 유사한 클래스가 있습니다.
대표적으로 링크드 리스트와 동적 배열을 겸하는
TList가 있습니다.
그 외에 Contnrs 유닛에 있는 다음 클래스를 참고하세요.
TBucketList
TBucketList is a simple hash table that stores pointers indexed by pointers.
TClassList
TClassList maintains a list of classes.
TComponentList
TComponentList maintains a list of components, updating itself when a component is freed.
TCustomBucketList
TCustomBucketList is the base class for lists that store items under a limited number of categories.
TObjectBucketList
TObjectBucketList is a simple hash table that stores objects that are identified by other objects.
TObjectList
TObjectList maintains a list of (owned) objects.
TObjectQueue
TObjectQueue maintains a first-in first-out list of objects.
TObjectStack
TObjectStack maintains a last-in first-out list of objects.
TOrderedList
TOrderedList maintains an array of pointers that must be accessed in serial order.
TQueue
TQueue maintains a first-in first-out array of pointers.
TStack
TStack maintains a last-in first-out array of pointers.
만약 문자열(AnsiString)으로 된 리스트라면 TStringList를 쓰세요.
: 아니면 STL컬렉션 클래스를 사용해야 하나요???
하지만 역시 STL이 훨씬 편하고 강력합니다. 이쪽을 더 강추!
|