Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Hydra Core Library Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::List<T>

Group:  General

Local Index

Members

Header File

#include <rwsf/core/List.h>

Description

This class is deprecated. Please use std::list instead.

This class maintains a collection of values, implemented as a singly-linked list. The value type must have operator== and operator< defined.

This class stores a copy of the inserted item in self.

Assumes that T has:

Public Constructors

List();
List(const List<T>& s);

Destructor

~List();

Public Member Operators

List<T>&
operator=(const List<T>& s);
T&    
operator[](size_t i);
const T&
operator[](size_t i) const;

Conversion Operator

operator std::list<T>() const;

Public Member Functions

void
append(const T& a); 
void
apply(void (*applyFun)(T&, void*), void* d);
T&    
at(size_t i);
const T&        
at(size_t i) const;
void
clear();
bool
contains(const T& a) const;
bool  
contains(bool (*testFun)(const T&, void*), void*) const;
size_t
entries() const; 
bool
find(const T& a, T& ret) const; 
bool
find(bool (*testFun)(const T&, void* d), 
     void*, T& ret) const;
T&
first();
const T&
first() const;
T
get();
size_t  
index(const T& a) const;
size_t
index(bool (*testFun)(const T&, void*), void*) const;
void
insert(const T& a); 
void
insertAt(size_t i, const T& a); 
bool
isEmpty() const; 
T&
last();
const T&
last() const;
size_t 
occurrencesOf(const T& a) const; 
size_t
occurrencesOf(bool (*testFun)(const T&,void*),
               void* d) const;
void
prepend(const T& a); 
bool
remove(const T& val); 
bool
remove(bool (*testFun)(const T&,void*), void* d);
size_t
removeAll(const T& a); 
size_t
removeAll(bool (*testFun)(const T&,void*), void* d); 
T
removeAt(size_t i); 
T
removeFirst();
T
removeLast();

Related Class

rwsf::ListIterator<T>



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks and HydraSDO is a trademark of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.