#include <IbexContractorList.h>
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 |
| Contractor & | operator() (int i) |
| const Contractor & | operator() (int i) const |
Protected Attributes | |
| Contractor ** | ctcs |
| 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.
| 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.
Contractor** ibex::ContractorList::ctcs [protected] |
Array of sub-contractors
1.5.5