Gecode::Gist::Shape Class Reference
The shape of a subtree. More...
#include <visualnode.hh>
Public Member Functions | |
| int | depth (void) const |
| Return depth of the shape. | |
| const Extent & | operator[] (int i) const |
| Return extent at depth i. | |
| Extent & | operator[] (int i) |
| Return extent at depth i. | |
| bool | getExtentAtDepth (int depth, Extent &extent) |
| Return if extent exists at depth, if yes return it in extent. | |
| BoundingBox | getBoundingBox (void) |
| Return bounding box. | |
Static Public Member Functions | |
| static Shape * | allocate (int d) |
| Construct shape of depth d. | |
| static Shape * | allocate (Extent e) |
| Construct with single extent e. | |
| static Shape * | allocate (Extent e, const Shape *subShape) |
| Construct with for the root and subShape for the children. | |
| static Shape * | allocate (const Shape *subShape) |
| Construct from subShape. | |
| static void | deallocate (Shape *) |
Static Public Attributes | |
| static Shape * | leaf |
| Static shape for leaf nodes. | |
| static Shape * | hidden |
| Static shape for hidden nodes. | |
Detailed Description
The shape of a subtree.Definition at line 81 of file visualnode.hh.
Member Function Documentation
| Shape * Gecode::Gist::Shape::allocate | ( | int | d | ) | [inline, static] |
Construct with for the root and subShape for the children.
Definition at line 43 of file layoutcursor.cpp.
| void Gecode::Gist::Shape::deallocate | ( | Shape * | shape | ) | [inline, static] |
Definition at line 92 of file visualnode.hpp.
| int Gecode::Gist::Shape::depth | ( | void | ) | const [inline] |
| const Extent & Gecode::Gist::Shape::operator[] | ( | int | i | ) | const [inline] |
| Extent & Gecode::Gist::Shape::operator[] | ( | int | i | ) | [inline] |
| bool Gecode::Gist::Shape::getExtentAtDepth | ( | int | depth, | |
| Extent & | extent | |||
| ) |
Return if extent exists at depth, if yes return it in extent.
Definition at line 62 of file layoutcursor.cpp.
| BoundingBox Gecode::Gist::Shape::getBoundingBox | ( | void | ) |
Member Data Documentation
Shape * Gecode::Gist::Shape::leaf [static] |
Shape * Gecode::Gist::Shape::hidden [static] |
The documentation for this class was generated from the following files:
- gecode/gist/visualnode.hh (Revision: 9076)
- gecode/gist/layoutcursor.cpp (Revision: 8083)
- gecode/gist/visualnode.cpp (Revision: 8151)
- gecode/gist/visualnode.hpp (Revision: 9076)
