SAR<em>bayes</em>: SORAL Documentation
(SARBayes) Main Related Pages Class List Hierarchy Methods Files

ActiveArea Class Reference

#include <containr.h>

List of all members.


Detailed Description

An area which has some assignments.

Description: an area which has some assignments. In practice, just a wrapper for an int. Why wrap an int? a) solves potential memory leaks b) keeps parallel structure with other container objects

Author : Michael Eldridge

Class reactivated 13mar03. ASO and crt reviewed global design and decided overhead was small and there were real benefits to maintenance. So we wrapped the int.

Definition at line 182 of file containr.h.

Public Member Functions

 ActiveArea (const int p_areaNum)
 Constructor for the ActiveArea container.

 ActiveArea (const ActiveArea &p_activeArea)
 Copy Constructor for the ActiveArea container.

int getActiveAreaNum (void) const
 Returns the area number this container corresponds to.


Private Member Functions

ActiveArea & operator= (const ActiveArea &p_activeArea)

Private Attributes

const int activeAreaNum
 The number of this "active" area.


Constructor & Destructor Documentation

ActiveArea::ActiveArea const int    p_areaNum
 

Constructor for the ActiveArea container.

WARNING: Performs ZERO error-checking.

Author : Michael Eldridge

Updated: 10/12/02 ASO

Definition at line 67 of file con_activ.cpp.

ActiveArea::ActiveArea const ActiveArea &    p_activeArea
 

Copy Constructor for the ActiveArea container.

Author: Charles Twardy

Definition at line 77 of file con_activ.cpp.


Member Function Documentation

int ActiveArea::getActiveAreaNum void    const
 

Returns the area number this container corresponds to.

Author : Michael Eldridge

Definition at line 90 of file con_activ.cpp.

References activeAreaNum.

Referenced by Allocation::getTotalPOS(), ActiveAreasIterator::operator *(), ActiveAreasIterator::operator++(), printAssignments(), and UserDef::UserDef().


Member Data Documentation

const int ActiveArea::activeAreaNum [private]
 

The number of this "active" area.

This object stores a copy of the active area number. This object does not allow that value to be modified because such modification could potentially cause confusion: people might think they were modifying the Allocation itself, but they would not actually be doing so.

Definition at line 210 of file containr.h.

Referenced by getActiveAreaNum().


The documentation for this class was generated from the following files:
Generated on Fri May 9 17:04:27 2003 for SORAL by dOxygen 1.3-rc3
(SARBayes) Main Related Pages Class List Hierarchy Methods Files