# Gecode::MetaInfo Class Reference

Information passed by meta search engines. More...

`#include <core.hpp>`

## Public Types | |

enum | Type { RESTART, PORTFOLIO } |

Which type of information is provided. More... | |

## Public Member Functions | |

Type | type (void) const |

Return type of information. | |

## Protected Attributes | |

const Type | t |

Type of information. | |

## Restart-based information | |

| |

const unsigned long int | r |

Number of restarts. | |

const unsigned long int | s |

Number of solutions since last restart. | |

const unsigned long int | f |

Number of failures since last restart. | |

const Space * | l |

Last solution found. | |

const NoGoods & | ng |

No-goods from restart. | |

unsigned long int | restart (void) const |

Return number of restarts. | |

unsigned long int | solution (void) const |

Return number of solutions since last restart. | |

unsigned long int | fail (void) const |

Return number of failures since last restart. | |

const Space * | last (void) const |

Return last solution found (possibly NULL). | |

const NoGoods & | nogoods (void) const |

Return no-goods recorded from restart. | |

## Portfolio-based information | |

| |

const unsigned int | a |

Number of asset in portfolio. | |

unsigned int | asset (void) const |

Return number of asset in portfolio. | |

## Constructors depending on type of engine | |

| |

MetaInfo (unsigned long int r, unsigned long int s, unsigned long int f, const Space *l, NoGoods &ng) | |

Constructor for restart-based engine. | |

MetaInfo (unsigned int a) | |

Constructor for portfolio-based engine. |

## Detailed Description

Information passed by meta search engines.

Definition at line 1620 of file core.hpp.

## Member Enumeration Documentation

## Constructor & Destructor Documentation

Gecode::MetaInfo::MetaInfo | ( | unsigned int | a |
) | ` [inline]` |

## Member Function Documentation

MetaInfo::Type Gecode::MetaInfo::type | ( | void | ) | const` [inline]` |

unsigned long int Gecode::MetaInfo::restart | ( | void | ) | const` [inline]` |

unsigned long int Gecode::MetaInfo::solution | ( | void | ) | const` [inline]` |

unsigned long int Gecode::MetaInfo::fail | ( | void | ) | const` [inline]` |

const Space * Gecode::MetaInfo::last | ( | void | ) | const` [inline]` |

const NoGoods & Gecode::MetaInfo::nogoods | ( | void | ) | const` [inline]` |

unsigned int Gecode::MetaInfo::asset | ( | void | ) | const` [inline]` |

## Member Data Documentation

const Type Gecode::MetaInfo::t` [protected]` |

const unsigned long int Gecode::MetaInfo::r` [protected]` |

const unsigned long int Gecode::MetaInfo::s` [protected]` |

const unsigned long int Gecode::MetaInfo::f` [protected]` |

const Space* Gecode::MetaInfo::l` [protected]` |

const NoGoods& Gecode::MetaInfo::ng` [protected]` |

const unsigned int Gecode::MetaInfo::a` [protected]` |

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

- gecode/kernel/core.hpp (Revision: 15597)