~ubuntu-branches/ubuntu/precise/epix1/precise

« back to all changes in this revision

Viewing changes to edge_data.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Gilbey
  • Date: 2009-10-26 18:02:06 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091026180206-gwyuymyzl4fl4gpc
Tags: 1.2.6-1
* New upstream release
* Fix (Build-)Depends lines to depend on ghostscript rather than gs
  (Closes: #539653)
* Fix regex in epix1.el elisp start file to match \.xp$ rather than \.xp
  etc. (Closes: #513744)
* Upgrade standards-version
* Regenerate all autoconf and automake files during the build

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * This file is part of ePiX, a C++ library for creating high-quality 
5
5
 * figures in LaTeX 
6
6
 *
7
 
 * Version 1.1.17
8
 
 * Last Change: September 13, 2007
 
7
 * Version 1.2.5
 
8
 * Last Change: May 06, 2008
9
9
 *
10
10
 * 
11
 
 * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
11
 * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12
12
 * Andrew D. Hwang <rot 13 nujnat at zngupf dot ubylpebff dot rqh>
13
13
 * Department of Mathematics and Computer Science
14
14
 * College of the Holy Cross
49
49
    bool is_seen() const { return m_seen; }
50
50
    bool is_null() const { return m_tail == m_head; }
51
51
 
 
52
    edge_data& shift(const T& dX)
 
53
      {
 
54
        m_tail += dX;
 
55
        m_head += dX;
 
56
        return *this;
 
57
      }
 
58
 
52
59
    edge_data& reverse()
53
60
      {
54
61
        std::swap(m_tail, m_head);