9 std::vector<bool> value_;
17 std::vector<bool>& res = *(std::vector<bool>*)result;
20 void setValue(
void* value)
22 value_ = *(std::vector<bool>*)value;
44 std::vector<bool>& vOr = *(std::vector<bool>*)result;
45 uint size = (uint) vOr.size();
47 std::vector<bool> arg1(size), arg2(size);
52 for(uint i = 0; i < size; i++)
53 vOr[i] = arg1[i] || arg2[i];
71 std::vector<bool>& vOr = *(std::vector<bool>*)result;
72 uint size = (uint)vOr.size();
74 std::vector<bool> arg1(size), arg2(size);
79 for (uint i = 0; i < size; i++)
81 vOr[i] = (!arg1[i]) && (!arg2[i]);
100 std::vector<bool>& vXor = *(std::vector<bool>*)result;
101 uint size = (uint) vXor.size();
103 std::vector<bool> arg1(size), arg2(size);
108 for(uint i = 0; i < size; i++)
109 vXor[i] = (arg1[i] && !arg2[i]) || (!arg1[i] && arg2[i]);
128 std::vector<bool>& vXNor = *(std::vector<bool>*)result;
129 uint size = (uint) vXNor.size();
131 std::vector<bool> arg1(size), arg2(size);
136 for(uint i = 0; i < size; i++)
137 vXNor[i] = (!(arg1[i] && !arg2[i]) || (!arg1[i] && arg2[i]));
156 std::vector<bool>& vAnd = *(std::vector<bool>*)result;
157 uint size = (uint) vAnd.size();
159 std::vector<bool> arg1(size), arg2(size);
164 for(uint i = 0; i < size; i++)
165 vAnd[i] = arg1[i] && arg2[i];
184 std::vector<bool>& vAnd = *(std::vector<bool>*)result;
185 uint size = (uint)vAnd.size();
187 std::vector<bool> arg1(size), arg2(size);
192 for (uint i = 0; i < size; i++)
193 vAnd[i] = (!arg1[i]) || (!arg2[i]);
211 std::vector<bool>& vAnd2 = *(std::vector<bool>*)result;
212 uint size = (uint) vAnd2.size();
214 std::vector<bool> arg1(size), arg2(size);
219 for(uint i = 0; i < size; i++)
220 vAnd2[i] = arg1[i] && (!arg2[i]);
239 std::vector<bool>& vNot = *(std::vector<bool>*)result;
240 uint size = (uint) vNot.size();
242 std::vector<bool> arg1(size);
245 for(uint i = 0; i < size; i++)
265 std::vector<bool>& res = *(std::vector<bool>*)result;
266 uint size = (uint) res.size();
268 std::vector<bool> arg(size), res1(size), res2(size);
273 for(uint i = 0; i < size; i++)
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
Base primitive class (Tree genotype).
void getNextArgument(void *result, Tree &tree)
Execute next child node's primitive (execute next subtree).
Tree class - implements genotype as a tree.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.
void execute(void *result, Tree::Tree &tree)
Execute the primitive.