vValue::Expr::Collection::ColIntersection Class Reference

#include <vCollection.h>

Inheritance diagram for vValue::Expr::Collection::ColIntersection:

Inheritance graph
[legend]
Collaboration diagram for vValue::Expr::Collection::ColIntersection:

Collaboration graph
[legend]

List of all members.

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 ()
Basecopy (void) const
 Returns an exact copy of this object.

Protected Member Functions

myCol _operation (void) const


Detailed Description

Definition at line 253 of file vCollection.h.


Constructor & Destructor Documentation

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,

Here is the caller graph for this function:

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]

Definition at line 265 of file vCollection.h.

00265 { };


Member Function Documentation

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

Returns:
a pointer to the newly created copy

Reimplemented from vValue::Expr::Collection::ColBinary.

Definition at line 267 of file vCollection.h.

References ColIntersection().

00267 { return new ColIntersection(*this); };

Here is the call graph for this function:

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 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:05:44 2008 for Armagetron Advanced by  doxygen 1.5.4