Package generic.stl
Class ListSTL<T>
java.lang.Object
generic.stl.ListSTL<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionback()
begin()
void
clear()
end()
boolean
void
erase
(IteratorSTL<T> position) front()
insert
(IteratorSTL<T> position, T value) boolean
isEmpty()
pop_back()
void
void
void
push_front
(T value) rBegin()
rEnd()
int
size()
void
sort
(Comparator<T> comparator) void
splice
(IteratorSTL<T> position, ListSTL<T> list, IteratorSTL<T> listPosition) moves a single element, decreasing the length of list by 1 and increasing this list by 1.toString()
-
Field Details
-
EOL
-
-
Constructor Details
-
ListSTL
public ListSTL()
-
-
Method Details
-
toString
-
printDebug
public void printDebug() -
begin
-
end
-
rBegin
-
rEnd
-
size
public int size() -
clear
public void clear() -
isEmpty
public boolean isEmpty() -
front
-
back
-
push_back
-
push_front
-
insert
-
erase
-
pop_front
-
pop_back
-
equals
-
sort
-
splice
moves a single element, decreasing the length of list by 1 and increasing this list by 1.- Parameters:
position
- the position into this list where the element is to be insertedlist
- the list from which the element is removed.listPosition
- the postion of the element to be removed.
-