Adaptagrams
|
Represents the arrangement of all Nbrs around a centre node. More...
#include <quadaction.h>
Public Member Functions | |
Arrangement (Nbrs nbrs) | |
Standard constructor. More... | |
std::vector< unsigned > | vacancy (void) const |
Get the "vacancy vector" for this Arrangement. More... | |
std::vector< unsigned > | dist (void) const |
Get the "distribution vector" for this Arrangement. More... | |
std::vector< unsigned > | rDist (void) const |
Get the "reduced distribution vector" for this Arrangement. More... | |
Assignment_SP | getBasicAssignment (void) const |
Get the "basic Assignment" for this Arrangement. More... | |
Assignment_SP | getAssignmentForQuadAction (std::string quadAction) const |
Get the Assignment resulting from a given quad action. More... | |
Assignments | computeNAssignments (unsigned N) const |
Compute all possible Assignments in which precisely N semiaxes are occupied, sorted by ascending cost. More... | |
Assignments | computeAllAssignments (void) const |
Compute all possible Assignments. More... | |
Public Attributes | |
Nbrs | nbrs |
All Nbrs in the Arrangement. | |
Nbrs | semis |
The semiaxes. | |
Quads | quads |
The quadrants. | |
Represents the arrangement of all Nbrs around a centre node.
Arrangement::Arrangement | ( | Nbrs | nbrs | ) |
Standard constructor.
[in] | nbrs | all the Nbrs of the (implied) centre node |
Assignments Arrangement::computeAllAssignments | ( | void | ) | const |
Compute all possible Assignments.
References computeNAssignments().
Assignments Arrangement::computeNAssignments | ( | unsigned | N | ) | const |
Compute all possible Assignments in which precisely N semiaxes are occupied, sorted by ascending cost.
[in] | N | the number of semiaxes to be occupied |
References getAssignmentForQuadAction(), getBasicAssignment(), dialect::lookupQuadActions(), nbrs, quads, rDist(), dialect::SEMIAXIS_SETS_BY_CARDINALITY, and vacancy().
Referenced by computeAllAssignments().
vector< unsigned > Arrangement::dist | ( | void | ) | const |
Get the "distribution vector" for this Arrangement.
References quads.
Referenced by rDist().
Assignment_SP Arrangement::getAssignmentForQuadAction | ( | std::string | quadAction | ) | const |
Get the Assignment resulting from a given quad action.
[in] | quadAction | a string of four letters chosen from among {A, B, C, D}, representing the action to be taken in each of the four quadrants. |
References getBasicAssignment(), and quads.
Referenced by computeNAssignments().
Assignment_SP Arrangement::getBasicAssignment | ( | void | ) | const |
Get the "basic Assignment" for this Arrangement.
References semis.
Referenced by computeNAssignments(), and getAssignmentForQuadAction().
vector< unsigned > Arrangement::rDist | ( | void | ) | const |
Get the "reduced distribution vector" for this Arrangement.
References dist().
Referenced by computeNAssignments().
vector< unsigned > Arrangement::vacancy | ( | void | ) | const |
Get the "vacancy vector" for this Arrangement.
References semis.
Referenced by computeNAssignments().