Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
lazy_box_rep Struct Reference
Inheritance diagram for lazy_box_rep:
Inheritance graph
[legend]
Collaboration diagram for lazy_box_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lazy_box_rep (box b2)
 operator tree ()
virtual void append (lazy lz)
virtual lazy produce (lazy_type request, format fm)
virtual format query (lazy_type request, format fm)

Public Attributes

box b
lazy_type type
path ip
int ref_count

Detailed Description

Definition at line 98 of file formatter.cpp.


Constructor & Destructor Documentation

lazy_box_rep::lazy_box_rep ( box  b2) [inline]

Definition at line 100 of file formatter.cpp.

: lazy_rep (LAZY_BOX, b2->ip), b (b2) {}

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_box_rep::operator tree ( ) [inline, virtual]

Implements lazy_rep.

Definition at line 101 of file formatter.cpp.

{ return (tree) b; }
lazy lazy_rep::produce ( lazy_type  request,
format  fm 
) [virtual, inherited]

Reimplemented in lazy_table_rep, lazy_ornament_rep, lazy_paragraph_rep, lazy_surround_rep, lazy_canvas_rep, lazy_vstream_rep, and lazy_document_rep.

Definition at line 61 of file formatter.cpp.

                                               {
  if (request == type) return this;

  if ((request == LAZY_BOX) && (fm->type == FORMAT_CELL)) {
    format_cell fc= (format_cell) fm;
    lazy tmp= produce (LAZY_VSTREAM, make_format_vstream (fc->width, 0, 0));
    return tmp->produce (request, fm);
  }

  if ((request == LAZY_BOX) && (fm->type == FORMAT_WIDTH)) {
    format_width fw= (format_width) fm;
    lazy tmp= produce (LAZY_VSTREAM, make_format_vstream (fw->width, 0, 0));
    return tmp->produce (request, fm);
  }

  cout << "\nThe lazy structure was " << ((tree) (*this)) << "\n";
  cout << "The format was " << ((tree) fm) << "\n";
  FAILED ("invalid production");
  return lazy ();
}

Here is the call graph for this function:

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

Reimplemented in lazy_table_rep, lazy_ornament_rep, lazy_paragraph_rep, lazy_surround_rep, lazy_canvas_rep, and lazy_document_rep.

Definition at line 83 of file formatter.cpp.

                                             {
  (void) request;
  cout << "\nThe lazy structure was " << ((tree) (*this)) << "\n";
  cout << "The format was " << ((tree) fm) << "\n";
  FAILED ("invalid query");
  return format ();
}

Member Data Documentation

Definition at line 99 of file formatter.cpp.

path lazy_rep::ip [inherited]

Definition at line 69 of file formatter.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 file: