Back to index

Public Member Functions | Public Attributes
lazy_surround_rep Struct Reference

#include <lazy_typeset.hpp>

Inheritance diagram for lazy_surround_rep:
Inheritance graph
Collaboration diagram for lazy_surround_rep:
Collaboration graph

List of all members.

Public Member Functions

 lazy_surround_rep (edit_env env, tree t, path ip)
 lazy_surround_rep (array< line_item > a, array< line_item > b, lazy p, path ip)
 operator tree ()
lazy produce (lazy_type request, format fm)
format query (lazy_type request, format fm)
virtual void append (lazy lz)

Public Attributes

array< line_itema
array< line_itemb
lazy par
lazy_type type
path ip
int ref_count

Detailed Description

Definition at line 33 of file lazy_typeset.hpp.

Constructor & Destructor Documentation

Definition at line 99 of file lazy_typeset.cpp.

  lazy_rep (LAZY_SURROUND, ip)
  a  = typeset_concat (env, t[0], descend (ip, 0));
  b  = typeset_concat (env, t[1], descend (ip, 1));
  par= make_lazy (env, t[2], descend (ip, 2));

Here is the call graph for this function:

Definition at line 107 of file lazy_typeset.cpp.

  lazy_rep (LAZY_SURROUND, ip), a (a2), b (b2), par (par2) {}

Member Function Documentation

void lazy_rep::append ( lazy  lz) [virtual, inherited]

Definition at line 92 of file formatter.cpp.

  (void) lz;
  cout << "\nThe lazy structure was " << ((tree) (*this)) << "\n";
  FAILED ("lazy structure is not a stream");
lazy_surround_rep::operator tree ( ) [inline, virtual]

Implements lazy_rep.

Definition at line 40 of file lazy_typeset.hpp.

{ return "Surround"; }
lazy lazy_surround_rep::produce ( lazy_type  request,
format  fm 
) [virtual]

Reimplemented from lazy_rep.

Definition at line 126 of file lazy_typeset.cpp.

  if (request == type) return this;
  if (request == LAZY_VSTREAM) {
    SI               width = 1;
    array<line_item> before= a;
    array<line_item> after = b;
    if (fm->type == FORMAT_VSTREAM) {
      format_vstream fs= (format_vstream) fm;
      width = fs->width ;
      before= join (fs->before, before);
      after = join (after, fs->after);
    format ret_fm= make_format_vstream (width, before, after);
    return par->produce (request, ret_fm);
  return lazy_rep::produce (request, fm);

Here is the call graph for this function:

format lazy_surround_rep::query ( lazy_type  request,
format  fm 
) [virtual]

Reimplemented from lazy_rep.

Definition at line 112 of file lazy_typeset.cpp.

  if ((request == LAZY_BOX) && (fm->type == QUERY_VSTREAM_WIDTH)) {
    query_vstream_width qvw= (query_vstream_width) fm;
    array<line_item> before= qvw->before;
    array<line_item> after = qvw->after;
    if (N(a) != 0) before= join (before, a);
    if (N(b) != 0) after = join (b, after);
    format tmp_fm= make_query_vstream_width (before, after);
    return par->query (request, tmp_fm);
  return lazy_rep::query (request, fm);

Here is the call graph for this function:

Member Data Documentation

Definition at line 34 of file lazy_typeset.hpp.

Definition at line 35 of file lazy_typeset.hpp.

path lazy_rep::ip [inherited]

Definition at line 69 of file formatter.hpp.

Definition at line 36 of file lazy_typeset.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 68 of file formatter.hpp.

The documentation for this struct was generated from the following files: