Class for selecting median value (rounding downwards) More...
#include <branch.hh>
Public Member Functions | |
ValMed (void) | |
Default constructor. | |
ValMed (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
int | val (Space &home, SetView x) const |
Return minimum value of view x. | |
ModEvent | tell (Space &home, unsigned int a, SetView x, int v) |
Tell ![]() ![]() | |
![]() | |
ValSelBase (void) | |
Default constructor. | |
ValSelBase (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
EmptyValSelChoice | choice (Space &home) |
Return choice. | |
EmptyValSelChoice | choice (const Space &home, Archive &e) |
Return choice. | |
void | commit (Space &home, const EmptyValSelChoice &c, unsigned a) |
Commit to choice. | |
void | update (Space &home, bool share, ValSelBase &vs) |
Updating during cloning. | |
void | dispose (Space &home) |
Delete value selection. |
Additional Inherited Members | |
![]() | |
typedef SetView | View |
View type. | |
typedef int | Val |
Value type. | |
typedef EmptyValSelChoice | Choice |
Choice type. | |
![]() | |
static const unsigned int | alternatives |
Number of alternatives. |
Class for selecting median value (rounding downwards)
All value selection classes require
|
inline |
Default constructor.
Definition at line 68 of file select-val.hpp.
|
inline |
Constructor for initialization.
Definition at line 71 of file select-val.hpp.
|
inline |
Return minimum value of view x.
Definition at line 75 of file select-val.hpp.
|
inline |
Tell (a = 0) or
(a = 1)
Definition at line 93 of file select-val.hpp.