Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Friends
child_info Struct Reference

#include <tag_info.hpp>

List of all members.

Public Member Functions

 child_info (bool frozen=false)
 child_info (tree t)
 ~child_info ()
 operator tree ()
bool operator== (const child_info &pi)
bool operator!= (const child_info &pi)

Public Attributes

unsigned type: 5
unsigned accessible: 2
unsigned writability: 2
unsigned block: 2
unsigned env: 16
unsigned freeze_type: 1
unsigned freeze_accessible: 1
unsigned freeze_writability: 1
unsigned freeze_block: 1
unsigned freeze_env: 1

Friends

tm_ostreamoperator<< (tm_ostream &out, child_info ci)

Detailed Description

Definition at line 161 of file tag_info.hpp.


Constructor & Destructor Documentation

child_info::child_info ( bool  frozen = false)

Definition at line 179 of file tag_info.cpp.

Here is the call graph for this function:

Definition at line 192 of file tag_info.cpp.

                              {
  int i= as_int (is_atomic (t)? t: t[N(t)-1]);
  get_bits (type              ,  5);
  get_bits (accessible        ,  2);
  get_bits (writability       ,  2);
  get_bits (block             ,  2);
  get_bits (freeze_type       ,  1);
  get_bits (freeze_accessible ,  1);
  get_bits (freeze_writability,  1);
  get_bits (freeze_block      ,  1);
  get_bits (freeze_env        ,  1);
  if (is_atomic (t)) env= drd_encode (tree (WITH));
  else env= drd_encode (t (0, N(t)-1));
}

Here is the call graph for this function:

Definition at line 175 of file tag_info.hpp.

{}

Member Function Documentation

child_info::operator tree ( )

Definition at line 207 of file tag_info.cpp.

                           {
  int i=0, offset=0;
  set_bits (type              ,  5);
  set_bits (accessible        ,  2);
  set_bits (writability       ,  2);
  set_bits (block             ,  2);
  set_bits (freeze_type       ,  1);
  set_bits (freeze_accessible ,  1);
  set_bits (freeze_writability,  1);
  set_bits (freeze_block      ,  1);
  set_bits (freeze_env        ,  1);
  if (drd_decode (env) == tree (WITH)) return as_string (i);
  else return drd_decode (env) * tree (WITH, as_string (i));
}

Here is the call graph for this function:

bool child_info::operator!= ( const child_info pi)

Definition at line 238 of file tag_info.cpp.

                                             {
  return !(operator == (ci));
}

Here is the call graph for this function:

bool child_info::operator== ( const child_info pi)

Definition at line 223 of file tag_info.cpp.

                                             {
  return
    (type               == ci.type              ) &&
    (accessible         == ci.accessible        ) &&
    (writability        == ci.writability       ) &&
    (block              == ci.block             ) &&
    (env                == ci.env               ) &&
    (freeze_type        == ci.freeze_type       ) &&
    (freeze_accessible  == ci.freeze_accessible ) &&
    (freeze_writability == ci.freeze_writability) &&
    (freeze_block       == ci.freeze_block      ) &&
    (freeze_env         == ci.freeze_env        );
}

Here is the caller graph for this function:


Friends And Related Function Documentation

tm_ostream& operator<< ( tm_ostream out,
child_info  ci 
) [friend]

Definition at line 243 of file tag_info.cpp.

                                             {
  return out << ((tree) ci);
}

Member Data Documentation

Definition at line 163 of file tag_info.hpp.

Definition at line 165 of file tag_info.hpp.

unsigned child_info::env

Definition at line 166 of file tag_info.hpp.

Definition at line 168 of file tag_info.hpp.

Definition at line 170 of file tag_info.hpp.

Definition at line 171 of file tag_info.hpp.

Definition at line 167 of file tag_info.hpp.

Definition at line 169 of file tag_info.hpp.

unsigned child_info::type

Definition at line 162 of file tag_info.hpp.

Definition at line 164 of file tag_info.hpp.


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