Polaris: Assign< T > Class Template Reference

Assign< T > Class Template Reference

template for assignments into a Collection More...

#include <Assign.h>

Inheritance diagram for Assign< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

INLINE Assign (Listable *elem)
 create an Assign object.
INLINE Assign (Wrapper *w)
 create an Assign object.
INLINE Assign (const Assign< T > &a)
 Copy constructor.
INLINE Assign (const UntypedAssign &a)
 Copy constructor.
INLINE ~Assign ()
 Destroy the temporary assignment object.
INLINE T & operator= (T *elem)
 replace the element in the context list _elem with the new elem

Detailed Description

template<class T>
class Assign< T >

template for assignments into a Collection

Polaris C++ VDL

See also:
Assign.h

DESCRIPTION

A template for a 2-tuple which contains the state of a list and an element, where 'T' MUST be derived from class Listable

This class is to be used temporarily as:

    for (Iterator<Expression> iter = expr_list; iter.valid(); ++iter)
        expr_list.assign(iter.current()) = simplify( iter.pull() );

Definition at line 32 of file Assign.h.


Constructor & Destructor Documentation

template<class T>
INLINE Assign< T >::Assign Listable elem  ) 
 

create an Assign object.

< Not available in the current implementation.

< Set _elem to indicate that the user is not not doing the garbage collection

Definition at line 60 of file Assign.h.

References False, UntypedAssign::get_wrap(), RefElement< T >::modify(), and Wrapper::ref_inc().

template<class T>
INLINE Assign< T >::Assign Wrapper w  ) 
 

create an Assign object.

< Not available in the current implementation.

< The user is doing the garbage collection

Definition at line 78 of file Assign.h.

References RefElement< T >::clear(), False, and Wrapper::ref_inc().

template<class T>
INLINE Assign< T >::Assign const Assign< T > &  a  ) 
 

Copy constructor.

< Not available in the current implementation.

Definition at line 93 of file Assign.h.

References Wrapper::ref_inc().

template<class T>
INLINE Assign< T >::Assign const UntypedAssign< T > &  a  ) 
 

Copy constructor.

< Not available in the current implementation.

Definition at line 107 of file Assign.h.

References Wrapper::ref_inc().

template<class T>
INLINE Assign< T >::~Assign  ) 
 

Destroy the temporary assignment object.

Definition at line 122 of file Assign.h.


Member Function Documentation

template<class T>
INLINE T & Assign< T >::operator= T *  elem  ) 
 

replace the element in the context list _elem with the new elem

The existing list takes ownership of the element.

Definition at line 131 of file Assign.h.

References Wrapper::object(), UntypedAssign::set_pulled(), and True.


The documentation for this class was generated from the following file:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:57 2005