OPTPP::BoolVector Class Reference

#include <BoolVector.h>

List of all members.

Public Member Functions

 BoolVector (int sz)
 BoolVector (int sz, const bool &val)
 BoolVector (int sz, const BoolVector &val)
 BoolVector (const BoolVector &val)
 BoolVector (void)
 ~BoolVector (void)
int Size (void)
booloperator() (int index)
const booloperator() (int index) const
BoolVectoroperator= (const BoolVector &val)

Private Attributes

int size
 Length of vector.
boolp
 Pointer to a bool.


Detailed Description

BoolVector defines a vector of bools.
Author:
Charles Tong
Note:
Copy constructor and assignment operator added by P.J. Williams
Date:
Last modified 02/2006


Constructor & Destructor Documentation

OPTPP::BoolVector::BoolVector ( int  sz  ) 

Parameters:
sz an integer argument
See also:
BoolVector(int sz, cost bool& val)

BoolVector(int sz, const BoolVector& val)

OPTPP::BoolVector::BoolVector ( int  sz,
const bool val 
)

Parameters:
sz an integer argument
val a bool
See also:
BoolVector(int sz)

BoolVector(int sz, const BoolVector& val)

OPTPP::BoolVector::BoolVector ( int  sz,
const BoolVector val 
)

Parameters:
sz an integer argument
val a BoolVector
See also:
BoolVector(int sz)

BoolVector(int sz, cost bool& val)

OPTPP::BoolVector::BoolVector ( const BoolVector val  ) 

Copy Constructor

OPTPP::BoolVector::BoolVector ( void   )  [inline]

Default Constructor

Note:
Creates a bool vector of length 100

OPTPP::BoolVector::~BoolVector ( void   )  [inline]

Destructor


Member Function Documentation

const bool & OPTPP::BoolVector::operator() ( int  index  )  const

Returns:
Const reference to the BoolVector element indexed by index

bool & OPTPP::BoolVector::operator() ( int  index  ) 

Returns:
Reference to the BoolVector element indexed by index

BoolVector & OPTPP::BoolVector::operator= ( const BoolVector val  ) 

Assignment operator

int OPTPP::BoolVector::Size ( void   )  [inline]

Returns:
The length of the vector


Member Data Documentation

bool* OPTPP::BoolVector::p [private]

Pointer to a bool.

int OPTPP::BoolVector::size [private]

Length of vector.


The documentation for this class was generated from the following files:
Bug Reports    OPT++ Developers    Copyright Information    GNU Lesser General Public License
Documentation, generated by , last revised August 30, 2006.