C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[22423] Re:[질문]MFC의 컬렉션클래스와 같은 것이 C++Builder에도 있는지요...
김백일 [cedar] 1191 읽음    2002-11-04 11:41
정중환 님이 쓰신 글 :
: 제목 그대로입니다.
:
: 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이 훨씬 편하고 강력합니다. 이쪽을 더 강추!

+ -

관련 글 리스트
22421 [질문]MFC의 컬렉션클래스와 같은 것이 C++Builder에도 있는지요... 정중환 599 2002/11/04
22423     Re:[질문]MFC의 컬렉션클래스와 같은 것이 C++Builder에도 있는지요... 김백일 1191 2002/11/04
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.