casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
casa::ListNotice< t > Class Template Reference

Linked list update notice. More...

#include <List.h>

Inheritance diagram for casa::ListNotice< t >:
casa::Notice

List of all members.

Public Types

enum  modification {
  DELETE,
  ADD,
  REMOVE,
  SWAP
}

Public Member Functions

uInt type () const
 This function returns the Notice "type", which is retrieved from the "type registry".
int operator== (const Notice &op) const
 This operator can be used to compare two ListNotices.

Private Member Functions

 ListNotice (modification m, Link< t > *oc, Link< t > *op, Link< t > *nc, Link< t > *np, int of, int nf=0)
 This is used to construct a list notice.
 ListNotice ()
 This constructor is used to initialize a notice for a deleted "List".

Private Attributes

modification mod
Link< t > * oprev
Link< t > * ocur
Link< t > * nprev
Link< t > * ncur
int off
int otherOff

Friends

class ConstListIter< t >
class ListIter< t >
class List< t >

Detailed Description

template<class t>
class casa::ListNotice< t >

Linked list update notice.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

This class is the notification which is passed between List<t> and ListIter<t> in order to keep cursors and container in sync. This is the mechanism which allows multiple iterators to view the same list and automatically update as the list is changed. See the Notice class for more information.

Definition at line 69 of file List.h.


Member Enumeration Documentation

template<class t>
enum casa::ListNotice::modification
Enumerator:
DELETE 
ADD 
REMOVE 
SWAP 

Definition at line 74 of file List.h.


Constructor & Destructor Documentation

template<class t>
casa::ListNotice< t >::ListNotice ( modification  m,
Link< t > *  oc,
Link< t > *  op,
Link< t > *  nc,
Link< t > *  np,
int  of,
int  nf = 0 
) [inline, private]

This is used to construct a list notice.

The parameters are:

  • (m) what was done to the list
  • (oc) the old current position
  • (op) the old previous position
  • (nc) the new current position
  • (np) the new previous position
  • (of) current offset;
  • (nf) other offset (only used with SWAP mod)

Definition at line 111 of file List.h.

template<class t>
casa::ListNotice< t >::ListNotice ( ) [inline, private]

This constructor is used to initialize a notice for a deleted "List".

Definition at line 118 of file List.h.


Member Function Documentation

template<class t>
int casa::ListNotice< t >::operator== ( const Notice op) const [virtual]

This operator can be used to compare two ListNotices.

Implements casa::Notice.

template<class t>
uInt casa::ListNotice< t >::type ( ) const [virtual]

This function returns the Notice "type", which is retrieved from the "type registry".

The registry information is maintained automatically by the Notice constructors. A form of run time type information, this function is mostly intended for advanced users.

Implements casa::Notice.


Friends And Related Function Documentation

template<class t>
friend class ConstListIter< t > [friend]

Definition at line 70 of file List.h.

template<class t>
friend class List< t > [friend]

Definition at line 72 of file List.h.

template<class t>
friend class ListIter< t > [friend]

Definition at line 71 of file List.h.


Member Data Documentation

template<class t>
modification casa::ListNotice< t >::mod [private]

Definition at line 91 of file List.h.

template<class t>
Link<t>* casa::ListNotice< t >::ncur [private]

Definition at line 95 of file List.h.

template<class t>
Link<t>* casa::ListNotice< t >::nprev [private]

Definition at line 94 of file List.h.

template<class t>
Link<t>* casa::ListNotice< t >::ocur [private]

Definition at line 93 of file List.h.

template<class t>
int casa::ListNotice< t >::off [private]

Definition at line 96 of file List.h.

template<class t>
Link<t>* casa::ListNotice< t >::oprev [private]

Definition at line 92 of file List.h.

template<class t>
int casa::ListNotice< t >::otherOff [private]

Definition at line 97 of file List.h.


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