Create shell of the BList class.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19240 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Niels Sascha Reedijk 2006-11-09 21:48:30 +00:00
parent 7612834182
commit 5a7a270430
4 changed files with 252 additions and 3 deletions

View File

@ -0,0 +1,230 @@
<?xml version="1.0" encoding="UTF-8"?>
<sect2 id="blist">
<title>BList</title>
<itemizedlist>
<listitem><para><emphasis>Derived from:</emphasis> none</para></listitem>
<listitem><para><emphasis>Declared in:</emphasis> <filename>os/support/List.h</filename></para></listitem>
<listitem><para><emphasis>Library:</emphasis> <filename>libbe.so</filename></para></listitem>
</itemizedlist>
<para>BList is a is a simple ordered list of data pointers.</para>
<bridgehead renderas="sect2">Constructors and Destructors</bridgehead>
<sect3 id="blist_constructor">
<title>BList()</title>
<methodsynopsis>
<void/><methodname>BList</methodname>
<methodparam><type>int32</type><parameter>count</parameter><initializer>20</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<void/><methodname>BList</methodname>
<methodparam><modifier>const</modifier><type>BList &amp;</type><parameter>list</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_destructor">
<title>~BList()</title>
<methodsynopsis>
<void/><methodname>~BList</methodname>
</methodsynopsis>
</sect3>
<bridgehead renderas="sect2">Member Functions</bridgehead>
<sect3 id="blist_additem">
<title>AddItem()</title>
<methodsynopsis>
<type>bool</type><methodname>AddItem</methodname>
<methodparam><type>void *</type><parameter>item</parameter></methodparam>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>AddItem</methodname>
<methodparam><type>void *</type><parameter>item</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_addlist">
<title>AddList()</title>
<methodsynopsis>
<type>bool</type><methodname>AddList</methodname>
<methodparam><modifier>const</modifier><type>BList *</type><parameter>list</parameter></methodparam>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>AddList</methodname>
<methodparam><modifier>const</modifier><type>BList *</type><parameter>list</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_countitems">
<title>CountItems()</title>
<methodsynopsis>
<type>int32</type><methodname>CountItems</methodname><modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_doforeach">
<title>DoForEach()</title>
<methodsynopsis>
<void/><methodname>DoForEach</methodname>
<methodparam><type>bool</type><parameter>(*func)(void *)</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<void/><methodname>DoForEach</methodname>
<methodparam><type>bool</type><parameter>(*func)(void *, void *)</parameter></methodparam>
<methodparam><type>void *</type><parameter>arg2</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_firstitem">
<title>FirstItem()</title>
<methodsynopsis>
<type>void *</type><methodname>FirstItem()</methodname><modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_hasitem">
<title>HasItem()</title>
<methodsynopsis>
<type>bool</type><methodname>HasItem</methodname>
<methodparam><type>void *</type><parameter>item</parameter></methodparam>
<modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_indexof">
<title>IndexOf()</title>
<methodsynopsis>
<type>int32</type><methodname>IndexOf</methodname>
<methodparam><type>void *</type><parameter>item</parameter></methodparam>
<modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_itemat">
<title>ItemAt()</title>
<methodsynopsis>
<type>void *</type><methodname>ItemAt</methodname>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
<modifier>const</modifier>
</methodsynopsis>
<methodsynopsis>
<type>void *</type><methodname>ItemAtFast</methodname>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
<modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_itematfast">
<title>ItemAtFast()</title>
<para>See ItemAt()</para>
</sect3>
<sect3 id="blist_items">
<title>Items()</title>
<methodsynopsis>
<type>void *</type><methodname>Items</methodname><modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_isempty">
<title>IsEmpty</title>
<methodsynopsis>
<type>bool</type><methodname>IsEmpty</methodname><modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_lastitem">
<title>LastItem()</title>
<methodsynopsis>
<type>void *</type><methodname>LastItem</methodname><modifier>const</modifier>
</methodsynopsis>
</sect3>
<sect3 id="blist_moveitem">
<title>MoveItem()</title>
<methodsynopsis>
<type>bool</type><methodname>MoveItem</methodname>
<methodparam><type>int32</type><parameter>fromIndex</parameter></methodparam>
<methodparam><type>int32</type><parameter>toIndex</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_removeitem">
<title>RemoveItem()</title>
<methodsynopsis>
<type>bool</type><methodname>RemoveItem</methodname>
<methodparam><type>void *</type><parameter>item</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>void *</type><methodname>RemoveItem</methodname>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>RemoveItems</methodname>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
<methodparam><type>int32</type><parameter>count</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_removeitems">
<title>RemoveItems()</title>
<para>See RemoveItem()</para>
</sect3>
<sect3 id="blist_replaceitem">
<title>ReplaceItem()</title>
<methodsynopsis>
<type>bool</type><methodname>ReplaceItem</methodname>
<methodparam><type>int32</type><parameter>index</parameter></methodparam>
<methodparam><type>void *</type><parameter>newItem</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_sortitems">
<title>SortItems()</title>
<methodsynopsis>
<void/><methodname>SortItems</methodname>
<methodparam><type>int</type><parameter>(int (*compareFunc)(const void *, const void *)</parameter></methodparam>
</methodsynopsis>
</sect3>
<sect3 id="blist_swapitems">
<title>SwapItems()</title>
<methodsynopsis>
<type>bool</type><methodname>SwapItems</methodname>
<methodparam><type>int32</type><parameter>indexA</parameter></methodparam>
<methodparam><type>int32</type><parameter>indexB</parameter></methodparam>
</methodsynopsis>
</sect3>
</sect2>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY list SYSTEM "List.xml">
]>
<sect1 id="supportapi">
<title>Support Kit API</title>
&list;
</sect1>

View File

@ -26,9 +26,14 @@
<listitem><para> BMemoryIO and BMallocIO </para></listitem> <listitem><para> BMemoryIO and BMallocIO </para></listitem>
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para> BBlockCache </para></listitem> <listitem><para>
<listitem><para> BList </para></listitem> Container classes:
<listitem><para> BString </para></listitem> <itemizedlist>
<listitem><para> BBlockCache </para></listitem>
<listitem><para> <link linkend="blist">BList</link></para></listitem>
<listitem><para> BString </para></listitem>
</itemizedlist>
</para></listitem>
<listitem><para> BStopWatch </para></listitem> <listitem><para> BStopWatch </para></listitem>
<listitem><para> Common types and constants </para></listitem> <listitem><para> Common types and constants </para></listitem>
<listitem><para> Error codes for all kits </para></listitem> <listitem><para> Error codes for all kits </para></listitem>

View File

@ -4,5 +4,6 @@
<title>The Support Kit</title> <title>The Support Kit</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="support/intro.xml" /> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="support/intro.xml" />
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="support/api.xml" />
</chapter> </chapter>