Back to index

texmacs  1.0.7.15
Classes | Functions
space.hpp File Reference
#include "tree.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  space_rep
class  space

Functions

 CONCRETE_CODE (space)
bool operator== (space spc1, space spc2)
bool operator!= (space spc1, space spc2)
tm_ostreamoperator<< (tm_ostream &out, space spc)
space copy (space spc)
space operator+ (space spc1, space spc2)
space operator- (space spc1, space spc2)
space operator* (int i, space spc)
space operator/ (space spc, int i)
space max (space spc1, space spc2)

Function Documentation

space copy ( space  spc)

Definition at line 70 of file space.cpp.

                 {
  return space (spc->min, spc->def, spc->max);
}
space max ( space  spc1,
space  spc2 
)

Definition at line 99 of file space.cpp.

                             {
  return space (max (spc1->min, spc2->min),
              max (spc1->def, spc2->def),
              max (spc1->max, spc2->max));
}
bool operator!= ( space  spc1,
space  spc2 
)

Definition at line 56 of file space.cpp.

                                     {
  return
    (spc1->min != spc2->min) ||
    (spc1->def != spc2->def) ||
    (spc1->max != spc2->max);
}
space operator* ( int  i,
space  spc 
)

Definition at line 89 of file space.cpp.

                              {
  return space (i*spc->min, i*spc->def, i*spc->max);
}
space operator+ ( space  spc1,
space  spc2 
)

Definition at line 75 of file space.cpp.

                                    {
  return space (spc1->min + spc2->min,
              spc1->def + spc2->def,
              spc1->max + spc2->max);
}
space operator- ( space  spc1,
space  spc2 
)

Definition at line 82 of file space.cpp.

                                    {
  return space (spc1->min - spc2->min,
              spc1->def - spc2->def,
              spc1->max - spc2->max);
}
space operator/ ( space  spc,
int  i 
)

Definition at line 94 of file space.cpp.

                              {
  return space (spc->min/i, spc->def/i, spc->max/i);
}
tm_ostream& operator<< ( tm_ostream out,
space  spc 
)

Definition at line 64 of file space.cpp.

                                         {
  out << "[ " << spc->min << ", " << spc->def << ", " << spc->max << " ]";
  return out;
}
bool operator== ( space  spc1,
space  spc2 
)

Definition at line 48 of file space.cpp.

                                     {
  return
    (spc1->min == spc2->min) &&
    (spc1->def == spc2->def) &&
    (spc1->max == spc2->max);
}