Range Class Reference

#include <ranges.h>

Inheritance diagram for Range:

Value List of all members.

Public Member Functions

 Range (Reference *f, Reference *t)
 Range (Token compound)
virtual QString toString ()
virtual Data getSaveDescription (QString)
virtual bool equals_same_type (Value *other)

Public Attributes

Referencefrom
Referenceto

Detailed Description

Definition at line 6 of file ranges.h.


Constructor & Destructor Documentation

Range::Range Reference f,
Reference t
 

Definition at line 3 of file ranges.cpp.

References from, and to.

00004 {
00005   from = f;
00006   to = t;
00007 }

Range::Range Token  compound  ) 
 

Definition at line 9 of file ranges.cpp.

References from, and to.

00010 {
00011   from = new Reference(compound["from"]);
00012   to = new Reference(compound["to"]);
00013 }


Member Function Documentation

bool Range::equals_same_type Value other  )  [virtual]
 

Implements Value.

Definition at line 29 of file ranges.cpp.

References Reference::equals_same_type(), from, and to.

00030 {
00031   return from->equals_same_type(((Range*)other)->from) &&
00032     to->equals_same_type(((Range*)other)->to);
00033 };

Data Range::getSaveDescription QString   )  [virtual]
 

Implements Value.

Definition at line 15 of file ranges.cpp.

References from, Reference::getSaveDescription(), and to.

00016 {
00017   Token compound;
00018   compound["type"]=Symbol("range");
00019   compound["from"]=from->getSaveDescription(ignore);
00020   compound["to"]=to->getSaveDescription(ignore);
00021   return compound;
00022 };

QString Range::toString  )  [virtual]
 

Implements Value.

Definition at line 24 of file ranges.cpp.

References from, to, and Reference::toString().

00025 {
00026   return from->toString()+":"+to->toString();
00027 }


Member Data Documentation

Reference* Range::from
 

Definition at line 9 of file ranges.h.

Referenced by ValueCopier::copyRange(), equals_same_type(), IisCell::gather_inputs(), getSaveDescription(), IisCell::lookup(), Range(), and toString().

Reference* Range::to
 

Definition at line 10 of file ranges.h.

Referenced by ValueCopier::copyRange(), equals_same_type(), getSaveDescription(), IisCell::lookup(), Range(), and toString().


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 22:08:43 2006 for iis by  doxygen 1.4.6