Class for selecting median value. More...
#include <branch.hh>
Public Member Functions | |
ValMed (void) | |
Default constructor. | |
ValMed (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. | |
int | val (Space &home, View x) const |
Return maximum value of view x. | |
ModEvent | tell (Space &home, unsigned int a, View x, int n) |
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 View | 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.
Requires
|
inline |
Default constructor.
Definition at line 60 of file select-val.hpp.
|
inline |
Constructor for initialization.
Definition at line 63 of file select-val.hpp.
|
inline |
Return maximum value of view x.
Definition at line 67 of file select-val.hpp.
|
inline |
Tell (a = 0) or
(a = 1)
Definition at line 72 of file select-val.hpp.