ext/ containers/ list.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group |
ListIterator__ | |
Functions | |
default constructor | Constructs an iterator. |
Get | Returns a reference to the list element being pointed to. |
Increment | Moves the iterator forward in the list. |
Decrement | Moves the iterator backward in the list. |
PostIncrement | Moves the iterator forward in the list after returning its value. |
PostDecrement | Moves the iterator backward in the list after returning its value. |
ListIteratorToConst__ | |
Functions | |
conversion from ListIterator__ constructor | Constructs an iterator. |
default constructor | Constructs an iterator. |
Get | Gets a pointer that is constant to the referenced element. |
Increment | Moves the iterator forward in the list. |
Decrement | Moves the iterator backward in the list. |
PostIncrement | Moves the iterator forward in the list after returning its value. |
PostDecrement | Moves the iterator backward in the list after returning its value. |
global operator = | Compares two iterators for equality. |
global operator <> | Compares two iterators for inequality. |
List | |
Functions | |
default constructor | Constructs an empty list. |
copy constructor | Constructs an empty list. |
constructor | Constructs a list from a range of list element values. |
destructor | Destroys the list. |
operator let | Assigns to the list from another. |
Assign | Assigns to the list from a range of list element values. |
Assign | Assigns to the list multiple copies of an element value. |
Size | Gets the number of elements in the list. |
Empty | Determines if the list contains no elements. |
Begin | Gets an iterator to the first element in the list. |
cBegin | Gets an iterator to the first element in the list. |
End_ | Gets an iterator to one-past the last element in the list. |
cEnd | Gets an iterator to one-past the last element in the list. |
Front | Gets a reference to the first element in the list. |
cFront | Gets a reference to the first element in the list. |
Back | Gets a reference to the last element in the list. |
cBack | Gets a reference to the last element in the list. |
PushFront | Inserts an element value at the beginning of the list. |
PushBack | Inserts an element value at the end of the list. |
PopFront | Removes the first element in the list. |
PopBack | Removes the last element in the list. |
Insert | Inserts an element value into the list. |
Insert | Inserts a number of copies of an element value in the list. |
Insert | Inserts a range of element values into the list. |
Erase | Removes an element from the list. |
Erase | Removes a range of elements from the list. |
Clear | Removes all elements from the list. |
RemoveIf | Removes elements from the list satisfying a predicate. |
Copyright © 2009, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License
Functions | |
default constructor | Constructs an iterator. |
Get | Returns a reference to the list element being pointed to. |
Increment | Moves the iterator forward in the list. |
Decrement | Moves the iterator backward in the list. |
PostIncrement | Moves the iterator forward in the list after returning its value. |
PostDecrement | Moves the iterator backward in the list after returning its value. |
Functions | |
conversion from ListIterator__ constructor | Constructs an iterator. |
default constructor | Constructs an iterator. |
Get | Gets a pointer that is constant to the referenced element. |
Increment | Moves the iterator forward in the list. |
Decrement | Moves the iterator backward in the list. |
PostIncrement | Moves the iterator forward in the list after returning its value. |
PostDecrement | Moves the iterator backward in the list after returning its value. |
global operator = | Compares two iterators for equality. |
global operator <> | Compares two iterators for inequality. |
Functions | |
default constructor | Constructs an empty list. |
copy constructor | Constructs an empty list. |
constructor | Constructs a list from a range of list element values. |
destructor | Destroys the list. |
operator let | Assigns to the list from another. |
Assign | Assigns to the list from a range of list element values. |
Assign | Assigns to the list multiple copies of an element value. |
Size | Gets the number of elements in the list. |
Empty | Determines if the list contains no elements. |
Begin | Gets an iterator to the first element in the list. |
cBegin | Gets an iterator to the first element in the list. |
End_ | Gets an iterator to one-past the last element in the list. |
cEnd | Gets an iterator to one-past the last element in the list. |
Front | Gets a reference to the first element in the list. |
cFront | Gets a reference to the first element in the list. |
Back | Gets a reference to the last element in the list. |
cBack | Gets a reference to the last element in the list. |
PushFront | Inserts an element value at the beginning of the list. |
PushBack | Inserts an element value at the end of the list. |
PopFront | Removes the first element in the list. |
PopBack | Removes the last element in the list. |
Insert | Inserts an element value into the list. |
Insert | Inserts a number of copies of an element value in the list. |
Insert | Inserts a range of element values into the list. |
Erase | Removes an element from the list. |
Erase | Removes a range of elements from the list. |
Clear | Removes all elements from the list. |
RemoveIf | Removes elements from the list satisfying a predicate. |
declare function Insert ( byval position as typeof(Iterator), byref x as const fbext_TypeName( T_) ) as typeof(Iterator)
Inserts an element value into the list.
position | an iterator to where insertion will take place |
x | the element value to insert |
Returns an iterator to the newly inserted element.
declare sub Insert ( byval position as typeof(Iterator), byval n as SizeType, byref x as const fbext_TypeName( T_) )
Inserts a number of copies of an element value in the list.
position | an iterator to where insertion will take place |
n | the number of copies to insert |
x | the element value to insert |
declare sub Insert ( byval position as typeof(Iterator), byval first as typeof(IteratorToConst), byval last as typeof(IteratorToConst) )
Inserts a range of element values into the list.
position | an iterator to where insertion will take place |
first | an iterator to the first element in the range to insert |
last | an iterator to one-past the last element in the range to insert |
Returns a reference to the list element being pointed to.
declare function Get ( ) as fbext_TypeName( T_) ptr
Moves the iterator forward in the list.
declare sub Increment ( )
Moves the iterator backward in the list.
declare sub Decrement ( )
Moves the iterator forward in the list after returning its value.
declare function PostIncrement ( ) as fbext_ListIterator__( T_)
Moves the iterator backward in the list after returning its value.
declare function PostDecrement ( ) as fbext_ListIterator__( T_)
Gets a pointer that is constant to the referenced element.
declare function Get ( ) as const fbext_TypeName( T_) ptr
Moves the iterator forward in the list.
declare sub Increment ( )
Moves the iterator backward in the list.
declare sub Decrement ( )
Moves the iterator forward in the list after returning its value.
declare function PostIncrement ( ) as fbext_ListIteratorToConst__( T_)
Moves the iterator backward in the list after returning its value.
declare function PostDecrement ( ) as fbext_ListIteratorToConst__( T_)
Constructs a list from a range of list element values.
declare constructor ( byval first as typeof(IteratorToConst), byval last as typeof(IteratorToConst) )
Destroys the list.
declare destructor ( )
Assigns to the list from another.
declare operator let ( byref x as const fbext_List(( T_)( Allocator_)) )
Assigns to the list from a range of list element values.
declare sub Assign ( byval first as typeof(IteratorToConst), byval last as typeof(IteratorToConst) )
Gets the number of elements in the list.
declare const function Size ( ) as SizeType
Determines if the list contains no elements.
declare const function Empty ( ) as bool
Gets an iterator to the first element in the list.
declare function Begin ( ) as typeof(Iterator)
Gets an iterator to the first element in the list.
declare const function cBegin ( ) as typeof(IteratorToConst)
Gets an iterator to one-past the last element in the list.
declare function End_ ( ) as typeof(Iterator)
Gets an iterator to one-past the last element in the list.
declare const function cEnd ( ) as typeof(IteratorToConst)
Gets a reference to the first element in the list.
declare function Front ( ) as fbext_TypeName( T_) ptr
Gets a reference to the first element in the list.
declare const function cFront ( ) as const fbext_TypeName( T_) ptr
Gets a reference to the last element in the list.
declare function Back ( ) as fbext_TypeName( T_) ptr
Gets a reference to the last element in the list.
declare const function cBack ( ) as const fbext_TypeName( T_) ptr
Inserts an element value at the beginning of the list.
declare sub PushFront ( byref x as const fbext_TypeName( T_) )
Inserts an element value at the end of the list.
declare sub PushBack ( byref x as const fbext_TypeName( T_) )
Removes the first element in the list.
declare sub PopFront ( )
Removes the last element in the list.
declare sub PopBack ( )
Inserts an element value into the list.
declare function Insert ( byval position as typeof(Iterator), byref x as const fbext_TypeName( T_) ) as typeof(Iterator)
Removes an element from the list.
declare function Erase ( byval position as typeof(Iterator) ) as typeof(Iterator)
Removes all elements from the list.
declare sub Clear ( )
Removes elements from the list satisfying a predicate.
declare sub RemoveIf ( byval pred as function ( byref as const fbext_TypeName( T_) ) as bool )