ibex::ContractorList Class Reference
[Contractors]

Contractor list. More...

#include <IbexContractorList.h>

List of all members.

Public Member Functions

 ContractorList (const vector< const Contractor * > &)
 ContractorList (const CSP &csp)
 ContractorList (const Contractor &c1, const Contractor &c2)
 ContractorList (const ContractorList &)
 ~ContractorList ()
bool empty () const
int size () const
Contractoroperator() (int i)
const Contractoroperator() (int i) const

Protected Attributes

Contractor ** ctcs


Detailed Description

Contractor list.

Author:
Gilles Chabert
Date:
May 2009

Constructor & Destructor Documentation

ibex::ContractorList::ContractorList ( const vector< const Contractor * > &  vec  ) 

Create a list from a vector of contractors.

ibex::ContractorList::ContractorList ( const CSP csp  ) 

Create a list from a system. Each consraint in the system is automatically "replaced" by a ibex::HC4Revise contractor. The space of all the contractors is the CSP space.

ibex::ContractorList::ContractorList ( const Contractor c1,
const Contractor c2 
)

Create a list with 2 contractors.

ibex::ContractorList::ContractorList ( const ContractorList list  ) 

Duplicate this instance. Every subcontractor is duplicated. Every subcontractor in the new list shares the same space as its counterpart (except if a user has decided differently in the implementation of the ibex::Contractor::copy() const function of the subcontractor class).

ibex::ContractorList::~ContractorList (  ) 

Delete this instance.


Member Function Documentation

bool ibex::ContractorList::empty (  )  const [inline]

Return true if empty.

int ibex::ContractorList::size (  )  const [inline]

Return the number of contractors.

Contractor& ibex::ContractorList::operator() ( int  i  )  [inline]

Return a reference to the ith contractor.

const Contractor& ibex::ContractorList::operator() ( int  i  )  const [inline]

Return a const reference to the ith contractor.


Member Data Documentation

Array of sub-contractors


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

Generated on Sun Jun 27 15:52:00 2010 for IBEX by  doxygen 1.5.5