#include <vCollection.h>
Public Member Functions | |
ColIntersection (BaseExt *r_value=new BaseExt, BaseExt *l_value=new BaseExt) | |
ColIntersection (BasePtr &r_value, BasePtr &l_value) | |
ColIntersection (const ColBinary &other) | |
virtual | ~ColIntersection () |
Base * | copy (void) const |
Returns an exact copy of this object. | |
Protected Member Functions | |
myCol | _operation (void) const |
Definition at line 253 of file vCollection.h.
vValue::Expr::Collection::ColIntersection::ColIntersection | ( | BaseExt * | r_value = new BaseExt , |
|
BaseExt * | l_value = new BaseExt | |||
) | [inline] |
Definition at line 256 of file vCollection.h.
Referenced by copy().
00257 : 00258 ColBinary(r_value, l_value) 00259 { }; ColIntersection(BasePtr &r_value,
vValue::Expr::Collection::ColIntersection::ColIntersection | ( | BasePtr & | r_value, | |
BasePtr & | l_value | |||
) | [inline] |
Definition at line 260 of file vCollection.h.
00261 : 00262 ColBinary(r_value, l_value) { }; ColIntersection(const ColBinary &other) :
vValue::Expr::Collection::ColIntersection::ColIntersection | ( | const ColBinary & | other | ) | [inline] |
Definition at line 263 of file vCollection.h.
00263 : 00264 ColBinary(other) { }; virtual ~ColIntersection() { };
virtual vValue::Expr::Collection::ColIntersection::~ColIntersection | ( | ) | [inline, virtual] |
Base* vValue::Expr::Collection::ColIntersection::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 267 of file vCollection.h.
References ColIntersection().
00267 { return new ColIntersection(*this); };
myCol vValue::Expr::Collection::ColIntersection::_operation | ( | void | ) | const [protected, virtual] |
Reimplemented from vValue::Expr::Collection::ColBinary.
Definition at line 206 of file vCollection.cpp.
References a, b, vValue::Expr::Collection::getCol(), vValue::Expr::Collection::ColBinary::l_child, and vValue::Expr::Collection::ColBinary::r_child.
00206 { 00207 myCol res; 00208 myCol a = getCol(ColBinary::r_child); 00209 myCol b = getCol(ColBinary::l_child); 00210 00211 set_intersection(a.begin(), 00212 a.end(), 00213 b.begin(), 00214 b.end(), 00215 inserter(res, res.begin()), 00216 FooPtrOps()); 00217 00218 return res; 00219 }