#include <vCollection.h>
Public Member Functions | |
ColUnion (BaseExt *r_value=new BaseExt, BaseExt *l_value=new BaseExt) | |
ColUnion (BasePtr &r_value, BasePtr &l_value) | |
ColUnion (const ColBinary &other) | |
virtual | ~ColUnion () |
Base * | copy (void) const |
Returns an exact copy of this object. | |
Protected Member Functions | |
myCol | _operation (void) const |
Definition at line 233 of file vCollection.h.
vValue::Expr::Collection::ColUnion::ColUnion | ( | BasePtr & | r_value, | |
BasePtr & | l_value | |||
) | [inline] |
vValue::Expr::Collection::ColUnion::ColUnion | ( | const ColBinary & | other | ) | [inline] |
virtual vValue::Expr::Collection::ColUnion::~ColUnion | ( | ) | [inline, virtual] |
Base* vValue::Expr::Collection::ColUnion::copy | ( | void | ) | const [inline, virtual] |
Returns an exact copy of this object.
This should be overwritten in any derived class or they will mysteriously vanish if you use the tValue::Set container, for example
Reimplemented from vValue::Expr::Collection::ColBinary.
Definition at line 246 of file vCollection.h.
References ColUnion().
00246 { return new ColUnion(*this); };
myCol vValue::Expr::Collection::ColUnion::_operation | ( | void | ) | const [protected, virtual] |
Reimplemented from vValue::Expr::Collection::ColBinary.
Definition at line 189 of file vCollection.cpp.
References a, b, vValue::Expr::Collection::getCol(), vValue::Expr::Collection::ColBinary::l_child, and vValue::Expr::Collection::ColBinary::r_child.
00189 { 00190 myCol res; 00191 00192 myCol a = getCol(ColBinary::r_child); 00193 myCol b = getCol(ColBinary::l_child); 00194 00195 set_union(a.begin(), 00196 a.end(), 00197 b.begin(), 00198 b.end(), 00199 inserter(res, res.begin()), 00200 FooPtrOps()); 00201 00202 return res; 00203 }