wstring_list Class Reference

#include <list.h>


Public Member Functions

 ~wstring_list ()
 wstring_list ()
 wstring_list (const wstring_list &arg)
wstring_listoperator= (const wstring_list &)
void push_back (const wstring &arg)
void push_back (const wstring_list &arg)
const wstring back () const
size_t size () const
bool empty () const
void clear ()
wstring get (int n) const
wstring operator[] (int n) const
wstring unsplit (const char *separator=0) const
wstring unsplit (size_t first, size_t last, const char *separator=0) const

Private Attributes

wstring_list_ty content


Detailed Description

The wstring_list class is used to represent a dynamically sized list of wstrings.

Definition at line 30 of file list.h.


Constructor & Destructor Documentation

wstring_list::~wstring_list (  )  [inline]

The destructor.

This class is not to be derived from because the destructor is not virtual.

Definition at line 39 of file list.h.

wstring_list::wstring_list (  )  [inline]

The default constructor.

Definition at line 44 of file list.h.

wstring_list::wstring_list ( const wstring_list arg  )  [inline]

The copy constructor.

Definition at line 49 of file list.h.


Member Function Documentation

wstring_list& wstring_list::operator= ( const wstring_list  ) 

The assignment operator.

void wstring_list::push_back ( const wstring arg  )  [inline]

The push_back method is used to add a string to the end of a string list.

Definition at line 64 of file list.h.

void wstring_list::push_back ( const wstring_list arg  ) 

The push_back method is used to add a string to the end of a string list.

const wstring wstring_list::back (  )  const [inline]

The back method is used to obtain the value of the last element of a string list.

Definition at line 81 of file list.h.

size_t wstring_list::size (  )  const [inline]

The size method is used to obtain the size of the list (the number of string in the list).

Definition at line 94 of file list.h.

bool wstring_list::empty (  )  const [inline]

The empty method is used to determine whether the string list is empty (no elements) or not.

Definition at line 105 of file list.h.

void wstring_list::clear (  ) 

The clear method is used to discard all elemets of a string list.

wstring wstring_list::get ( int  n  )  const

The get is used to obtain the value of the nth element of a string list.

wstring wstring_list::operator[] ( int  n  )  const [inline]

The [] operator is used to obtain the value of the nth element of a string list.

Definition at line 126 of file list.h.

wstring wstring_list::unsplit ( const char *  separator = 0  )  const

The unsplit method is used to form a single string by gluing all of the string list members together.

Parameters:
separator what to put between the strings, defaults to a single cpace.

wstring wstring_list::unsplit ( size_t  first,
size_t  last,
const char *  separator = 0 
) const

The unsplit method is used to form a single string by gluing all of the string list members together.

Parameters:
first The place to start joining
last how many to join
separator what to put between the strings, defaults to a single cpace.


Field Documentation

The content instance variable is used to remember the contents of the string list.

Definition at line 155 of file list.h.


The documentation for this class was generated from the following file:

Generated on Wed Mar 12 23:37:45 2008 for Aegis by  doxygen 1.5.5