[top][index]
search for:

Net -- the class of all nets and strings

The type Net is a member of the class Type. Each object of class Net is called a net.

Types of net :

  • String -- the class of all strings
  • A net is a generalization of a string which is designed to facilitate two-dimensional printing on ascii terminals. It consists of a rectangular array of characters subdivided horizontally by an imaginary baseline.

    Operations on nets also accept strings by interpreting a string as a rectangle of height one with the baseline just below it. In fact, the parent of String is Net.

    Multiple nets per line can be sent to an output file with << but care must be taken to use endl to end lines, for nets with new line characters embedded in them will be displayed in an unexpected way.

    Warning: if so many characters are written to a file that an internal buffer is filled before the line ends or first net is seen, then the buffer will be flushed, and writing a net subsequently will produce an unexpected result.

    Functions and methods returning a a net :

  • betti -- display degrees
  • horizontalJoin -- join nets or strings horizontally
  • horizontalJoin BasicList
  • Net ^ ZZ -- raise a net
  • Net | Net -- join strings or nets
  • Net || Net -- join nets or strings vertically
  • net -- convert to net
  • peek -- examine contents of an object
  • peek2 -- examine contents of an object
  • stack -- join nets or string vertically
  • stack BasicList
  • String ^ Sequence
  • String ^ ZZ
  • Methods for using a net :

  • depth Net
  • expression Net
  • File << Net
  • height Net
  • Net == Net
  • Net == String
  • net Net
  • netRows Net
  • peek2(Net,ZZ)
  • precedence Net
  • String == Net
  • texMath Net
  • toExternalString Net
  • toString Net
  • width Net

  • [top][index]
    search for: