Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress C++ API Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::List

Group:  Core Containers


Does not inherit

Local Index

Members

Header File

#include rwsf/core/List.h

Description

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:

Deprecated. Use std::list instead.

Public Constructors

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

Public Destructors

~List();

Public Member Functions

void
append(const T & a);
void
apply(void(*)(T &, void *) applyFun,
    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(*)(const T &, void *) testFun,
    void * d) const;
size_t
entries() const;
bool
find(const T & a,
    T & ret) const;
bool
find(bool(*)(const T &, void *) testFun,
    void * d,
    T & ret) const;
T &
first();
const T &
first() const;
T
get();
size_t
index(const T & a) const;
size_t
index(bool(*)(const T &, void *) testFun,
    void * d) 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(*)(const T &, void *) testFun,
    void * d) const;
void
prepend(const T & a);
bool
remove(const T & val);
bool
remove(bool(*)(const T &, void *) testFun,
    void * d);
size_t
removeAll(const T & a);
size_t
removeAll(bool(*)(const T &, void *) testFun,
    void * d);
T
removeAt(size_t i);
T
removeFirst();
T
removeLast();

Public Operators

T &
operator[](size_t i);
const T &
operator[](size_t i) const;
List< T > &
operator=(const List< T > &);
operator std::list() const;


Previous fileTop of DocumentContentsIndex pageNext file

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