Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
lazy_rep Struct Reference

#include <formatter.hpp>

Inheritance diagram for lazy_rep:
Inheritance graph
[legend]
Collaboration diagram for lazy_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lazy_rep (lazy_type type2, path ip2)
virtual ~lazy_rep ()
virtual operator tree ()=0
virtual void append (lazy lz)
virtual lazy produce (lazy_type request, format fm)
virtual format query (lazy_type request, format fm)

Public Attributes

lazy_type type
path ip
int ref_count

Detailed Description

Definition at line 67 of file formatter.hpp.


Constructor & Destructor Documentation

lazy_rep::lazy_rep ( lazy_type  type2,
path  ip2 
) [inline]

Definition at line 71 of file formatter.hpp.

                                              : type (type2), ip (ip2) {
    TM_DEBUG (lazy_count++); }

Here is the call graph for this function:

virtual lazy_rep::~lazy_rep ( ) [inline, virtual]

Definition at line 73 of file formatter.hpp.

                               {
    TM_DEBUG (lazy_count--); }

Here is the call graph for this function:


Member Function Documentation

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

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");
}
virtual lazy_rep::operator tree ( ) [pure virtual]
lazy lazy_rep::produce ( lazy_type  request,
format  fm 
) [virtual]

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]

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 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 files: