Class for selecting median value. More...
#include <branch.hh>
Public Member Functions | |
ValMed (void) | |
Default constructor. More... | |
ValMed (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. More... | |
int | val (Space &home, View x) const |
Return maximum value of view x. More... | |
ModEvent | tell (Space &home, unsigned int a, View x, int n) |
Tell ![]() ![]() | |
![]() | |
ValSelBase (void) | |
Default constructor. More... | |
ValSelBase (Space &home, const ValBranchOptions &vbo) | |
Constructor for initialization. More... | |
EmptyValSelChoice | choice (Space &home) |
Return choice. More... | |
EmptyValSelChoice | choice (const Space &home, Archive &e) |
Return choice. More... | |
void | commit (Space &home, const EmptyValSelChoice &c, unsigned a) |
Commit to choice. More... | |
void | update (Space &home, bool share, ValSelBase &vs) |
Updating during cloning. More... | |
void | dispose (Space &home) |
Delete value selection. More... | |
Additional Inherited Members | |
![]() | |
typedef View | View |
View type. More... | |
typedef int | Val |
Value type. More... | |
typedef EmptyValSelChoice | Choice |
Choice type. More... | |
![]() | |
static const unsigned int | alternatives |
Number of alternatives. More... | |
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.