pinapa::st_tree_deco_t Class Reference

#include <pinapa-tree-decoration.h>

List of all members.

Related location in source

Helps keeping location information after parsing completes, since gcc does not retain such information but for _decl nodes

static void set_location (tree t, const char *filename, int line)
bool has_location ()
const char * get_input_filename ()
int get_input_line ()

Public Member Functions

 st_tree_deco_t (sc_primitive_t sc_primitive, tree t)
 st_tree_deco_t (tree t)
sc_primitive_t get_primitive () const
sc_objectget_related_object (sc_process_b *h) const
void set_related_object (sc_object *o, sc_process_b *h)
dependant_deco get_dependant_deco () const
void set_dependant_deco (dependant_deco d)
const tree get_tree () const
void set_tree (tree t)
type_of_type get_type () const
void set_type (type_of_type t)
Backup type
Used to keep the node used before constant folding in GCC. This is sometimes usefull since constant folding destroys some information (in particular, typing).

tree get_old_node () const
void set_old_node (tree b)

Static Public Member Functions

static tree_deco get (tree body)
static sc_primitive_t get_primitive (tree body)
static void initialize (tree body)

Public Attributes

void * pinapa_decoration
dependant_deco m_deco

Private Attributes

const sc_primitive_t m_primitive
tree m_tree
type_of_type m_type
tree m_old_node

Static Private Attributes

static bool may_require_warning


Detailed Description

Data structure attached to the tree


Constructor & Destructor Documentation

st_tree_deco_t::st_tree_deco_t ( sc_primitive_t  sc_primitive,
tree  t 
)

Creates an empty tree decoration with the primitive sc_primitive. The decoration is stored in tree_decoration_map.

st_tree_deco_t::st_tree_deco_t ( tree  t  ) 

Warning:
This is the default constructor. It supposes that the primitive is a CPP_STANDARD


Member Function Documentation

tree_deco st_tree_deco_t::get ( tree  body  )  [static]

Warning:
May return NULL. This means it is a standard statement.

static sc_primitive_t pinapa::st_tree_deco_t::get_primitive ( tree  body  )  [inline, static]

static void pinapa::st_tree_deco_t::initialize ( tree  body  )  [inline, static]

Initialize non existent entries

sc_primitive_t pinapa::st_tree_deco_t::get_primitive (  )  const [inline]

sc_object* pinapa::st_tree_deco_t::get_related_object ( sc_process_b h  )  const [inline]

void pinapa::st_tree_deco_t::set_related_object ( sc_object o,
sc_process_b h 
) [inline]

dependant_deco pinapa::st_tree_deco_t::get_dependant_deco (  )  const [inline]

Field depending on of the primitive. (Pointer to a base class)

void pinapa::st_tree_deco_t::set_dependant_deco ( dependant_deco  d  )  [inline]

const tree pinapa::st_tree_deco_t::get_tree (  )  const [inline]

void pinapa::st_tree_deco_t::set_tree ( tree  t  )  [inline]

type_of_type pinapa::st_tree_deco_t::get_type (  )  const [inline]

void pinapa::st_tree_deco_t::set_type ( type_of_type  t  )  [inline]

tree pinapa::st_tree_deco_t::get_old_node (  )  const [inline]

void pinapa::st_tree_deco_t::set_old_node ( tree  b  )  [inline]

void st_tree_deco_t::set_location ( tree  t,
const char *  filename,
int  line 
) [static]

bool st_tree_deco_t::has_location (  ) 

const char * st_tree_deco_t::get_input_filename (  ) 

int st_tree_deco_t::get_input_line (  ) 


Member Data Documentation

bool st_tree_deco_t::may_require_warning [static, private]

void* pinapa::st_tree_deco_t::pinapa_decoration

To be able to insert more information if necessary. Use the pinapa-decoration-base.h mecanism.

const sc_primitive_t pinapa::st_tree_deco_t::m_primitive [private]

tree pinapa::st_tree_deco_t::m_tree [private]

type_of_type pinapa::st_tree_deco_t::m_type [private]

tree pinapa::st_tree_deco_t::m_old_node [private]

dependant_deco pinapa::st_tree_deco_t::m_deco


The documentation for this class was generated from the following files:
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page