~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/ConstNode.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: ConstNode.h,v 1.13 2000/12/11 12:21:47 zeller Exp $
 
1
// $Id$
2
2
// Constants
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
29
29
#ifndef _DDD_ConstNode_h
30
30
#define _DDD_ConstNode_h
31
31
 
32
 
#ifdef __GNUG__
33
 
#pragma interface
34
 
#endif
35
 
 
36
 
 
37
32
// A ConstNode returns a constant box upon run-time
38
33
 
39
34
 
40
35
#include "assert.h"
41
 
#include <iostream.h>
 
36
#include <iostream>
42
37
 
43
38
#include "VSLNode.h"
44
39
#include "Box.h"
57
52
        VSLNode(node), _box(node._box->link())
58
53
    {}
59
54
    
60
 
    void dump(ostream& s) const;
61
 
    void _dumpTree(ostream& s) const;
 
55
    void dump(std::ostream& s) const;
 
56
    void _dumpTree(std::ostream& s) const;
62
57
 
63
58
    bool matches(const VSLNode& node) const
64
59
    {
65
60
        return VSLNode::matches(node) &&
66
 
                *_box == *(((ConstNode *)&node)->_box); // dirty trick
 
61
                *_box == *(((const ConstNode *)&node)->_box); // dirty trick
67
62
    }
68
63
 
69
64
private:
70
 
    ConstNode& operator = (const ConstNode&)
71
 
    {
72
 
        assert(0); return *this;
73
 
    }
 
65
    ConstNode& operator = (const ConstNode&);
74
66
 
75
67
public:
76
68
    // Constructor