~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/removeoverlap/variable.cpp

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \brief Remove overlaps function
 
3
 *
 
4
 * Authors:
 
5
 *   Tim Dwyer <tgdwyer@gmail.com>
 
6
 *
 
7
 * Copyright (C) 2005 Authors
 
8
 *
 
9
 * Released under GNU GPL.  Read the file 'COPYING' for more information.
 
10
 */
 
11
#include "variable.h"
 
12
std::ostream& operator <<(std::ostream &os, const Variable &v) {
 
13
        os << "(" << v.id << "=" << v.position() << ")";
 
14
        return os;
 
15
}
 
16
 
 
17
#include "block.h"
 
18
double Variable::position() const {
 
19
        return block->posn+offset;
 
20
}