electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
API for a List (dynamic/resizeable array + functions)
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
heuermh



Joined: Dec 15, 2006
Posts: 19
Location: minneapolis

PostPosted: Sun Nov 11, 2007 9:52 am    Post subject: API for a List (dynamic/resizeable array + functions) Reply with quote  Mark this post and the followings unread

Hello,

There has been a little bit of conversation on [chuck-users] lately about dynamic/resizeable arrays, or Lists as they are called in some languages.

The mailing list didn't accept my attachment, so I'm posting it here to help the discussion. It's not complete nor functional but shows what I would like a List API to look like.

michael


list.ck
 Description:
list.ck, functors and a list

Download
 Filename:  list.ck
 Filesize:  2.28 KB
 Downloaded:  264 Time(s)

Back to top
View user's profile Send private message
heuermh



Joined: Dec 15, 2006
Posts: 19
Location: minneapolis

PostPosted: Fri Sep 05, 2008 2:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

Attached is an update of the List APIs, now built on resizeable arrays and with unit tests.


list.ck
 Description:
list.ck; List, Iterator, ListIterator, ArrayList, related classes, and unit tests.

Download
 Filename:  list.ck
 Filesize:  14.14 KB
 Downloaded:  242 Time(s)


float_list.ck
 Description:
float_list.ck; FloatList, FloatIterator, FloatListIterator, FloatArrayList, related classes, and unit tests.

Download
 Filename:  float_list.ck
 Filesize:  14.24 KB
 Downloaded:  212 Time(s)


int_list.ck
 Description:
int_list.ck; IntList, IntIterator, IntListIterator, IntArrayList, related classes, and unit tests.

Download
 Filename:  int_list.ck
 Filesize:  13.86 KB
 Downloaded:  202 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use