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 shape of depth d.
Definition at line 76 of file visualnode.hpp.
Construct with single extent e.
Definition at line 85 of file visualnode.hpp.
Construct with for the root and subShape for the children.
Definition at line 43 of file layoutcursor.cpp.
Construct from subShape.
Definition at line 53 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] |
Return depth of the shape.
Definition at line 98 of file visualnode.hpp.
const Extent & Gecode::Gist::Shape::operator[] | ( | int | i | ) | const [inline] |
Return extent at depth i.
Definition at line 64 of file visualnode.hpp.
Extent & Gecode::Gist::Shape::operator[] | ( | int | i | ) | [inline] |
Return extent at depth i.
Definition at line 70 of file visualnode.hpp.
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 | ) |
Return bounding box.
Definition at line 75 of file layoutcursor.cpp.
Member Data Documentation
Shape * Gecode::Gist::Shape::leaf [static] |
Static shape for leaf nodes.
Definition at line 106 of file visualnode.hh.
Shape * Gecode::Gist::Shape::hidden [static] |
Static shape for hidden nodes.
Definition at line 108 of file visualnode.hh.
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: 9766)