vValue::Expr::Collection::ColDifference Class Reference

#include <vCollection.h>

Inheritance diagram for vValue::Expr::Collection::ColDifference:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColDifference (BaseExt *r_value=new BaseExt, BaseExt *l_value=new BaseExt)
 ColDifference (BasePtr &r_value, BasePtr &l_value)
 ColDifference (const ColBinary &other)
virtual ~ColDifference ()
Basecopy (void) const
 Returns an exact copy of this object.

Protected Member Functions

myCol _operation (void) const


Detailed Description

Definition at line 275 of file vCollection.h.


Constructor & Destructor Documentation

vValue::Expr::Collection::ColDifference::ColDifference ( BaseExt r_value = new BaseExt,
BaseExt l_value = new BaseExt 
) [inline]

Definition at line 277 of file vCollection.h.

Referenced by copy().

00278                                                    :
00279             ColBinary(r_value, l_value)
00280     { };
    ColDifference(BasePtr &r_value,

Here is the caller graph for this function:

vValue::Expr::Collection::ColDifference::ColDifference ( BasePtr &  r_value,
BasePtr &  l_value 
) [inline]

Definition at line 281 of file vCollection.h.

00282                                    :
00283     ColBinary(r_value, l_value) { };
    ColDifference(const ColBinary &other) :

vValue::Expr::Collection::ColDifference::ColDifference ( const ColBinary other  )  [inline]

Definition at line 284 of file vCollection.h.

00284                                           :
00285     ColBinary(other) { };
    virtual ~ColDifference() { };

virtual vValue::Expr::Collection::ColDifference::~ColDifference (  )  [inline, virtual]

Definition at line 286 of file vCollection.h.

00286 { };


Member Function Documentation

Base* vValue::Expr::Collection::ColDifference::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 288 of file vCollection.h.

References ColDifference().

00288 { return new ColDifference(*this); };

Here is the call graph for this function:

myCol vValue::Expr::Collection::ColDifference::_operation ( void   )  const [protected, virtual]

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

Definition at line 224 of file vCollection.cpp.

References a, b, vValue::Expr::Collection::getCol(), vValue::Expr::Collection::ColBinary::l_child, and vValue::Expr::Collection::ColBinary::r_child.

00224                                           {
00225     myCol res;
00226     myCol a = getCol(ColBinary::r_child);
00227     myCol b = getCol(ColBinary::l_child);
00228 
00229     set_difference(a.begin(),
00230                    a.end(),
00231                    b.begin(),
00232                    b.end(),
00233                    inserter(res, res.begin()),
00234                    FooPtrOps());
00235 
00236     return res;
00237 }

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:45 2008 for Armagetron Advanced by  doxygen 1.5.4