# Gecode::ActorLink Class Reference

Double-linked list for actors. More...

`#include <core.hpp>`

## Public Member Functions | |

void | init (void) |

Initialize links (self-linked). | |

void | unlink (void) |

Remove from predecessor and successor. | |

void | head (ActorLink *al) |

Insert al directly after this. | |

void | tail (ActorLink *al) |

Insert al directly before this. | |

bool | empty (void) const |

Test whether actor link is empty (points to itself). | |

## Static Public Member Functions | |

template<class T > | |

static ActorLink * | cast (T *a) |

Static cast for a non-null pointer (to give a hint to optimizer). | |

template<class T > | |

static const ActorLink * | cast (const T *a) |

Static cast for a non-null pointer (to give a hint to optimizer). | |

| |

ActorLink * | prev (void) const |

Routines for double-linked list. | |

void | prev (ActorLink *) |

Routines for double-linked list. | |

ActorLink * | next (void) const |

Routines for double-linked list. | |

void | next (ActorLink *) |

Routines for double-linked list. | |

ActorLink ** | next_ref (void) |

Routines for double-linked list. |

## Detailed Description

Double-linked list for actors.

Used to maintain which actors belong to a space and also (for propagators) to organize actors in the queue of waiting propagators.

Definition at line 581 of file core.hpp.

## Member Function Documentation

ActorLink * Gecode::ActorLink::prev | ( | void | ) | const` [inline]` |

void Gecode::ActorLink::prev | ( | ActorLink * | al |
) | ` [inline]` |

ActorLink * Gecode::ActorLink::next | ( | void | ) | const` [inline]` |

void Gecode::ActorLink::next | ( | ActorLink * | al |
) | ` [inline]` |

ActorLink ** Gecode::ActorLink::next_ref | ( | void | ) | ` [inline]` |

void Gecode::ActorLink::init | ( | void | ) | ` [inline]` |

void Gecode::ActorLink::unlink | ( | void | ) | ` [inline]` |

void Gecode::ActorLink::head | ( | ActorLink * | al |
) | ` [inline]` |

void Gecode::ActorLink::tail | ( | ActorLink * | al |
) | ` [inline]` |

bool Gecode::ActorLink::empty | ( | void | ) | const` [inline]` |

Test whether actor link is empty (points to itself).

Reimplemented in Gecode::Int::Rel::NaryLqLe< View, o >.

template<class T >

ActorLink * Gecode::ActorLink::cast | ( | T * | a |
) | ` [inline, static]` |

template<class T >

const ActorLink * Gecode::ActorLink::cast | ( | const T * | a |
) | ` [inline, static]` |

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

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