📄 psdl_node.cpp
字号:
TAO_PSDL_Type_Dcl::key_word (void) const
{
return this->key_word_;
}
TAO_PSDL_Node *
TAO_PSDL_Type_Dcl::type_of_type_dcl (void) const
{
return this->type_of_type_dcl_;
}
/// = The Node methods.
int
TAO_PSDL_Type_Dcl::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_type_dcl (this);
}
/// ****************************************************************
TAO_PSDL_Type_Declarator::TAO_PSDL_Type_Declarator (TAO_PSDL_Node *type_spec,
TAO_PSDL_Node *declarators)
: type_spec_ (type_spec),
declarators_ (declarators)
{
}
TAO_PSDL_Type_Declarator::~TAO_PSDL_Type_Declarator (void)
{
delete this->type_spec_;
delete this->declarators_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Type_Declarator::type_spec (void) const
{
return this->type_spec_;
}
TAO_PSDL_Node *
TAO_PSDL_Type_Declarator::declarators (void) const
{
return this->declarators_;
}
/// = The Node methods.
int
TAO_PSDL_Type_Declarator::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_type_declarator (this);
}
/// ****************************************************************
TAO_PSDL_Type_Spec::TAO_PSDL_Type_Spec (TAO_PSDL_Node *type_of_type_spec)
: type_of_type_spec_ (type_of_type_spec)
{
}
TAO_PSDL_Type_Spec::~TAO_PSDL_Type_Spec (void)
{
delete this->type_of_type_spec_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Type_Spec::type_of_type_spec (void) const
{
return this->type_of_type_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Type_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_type_spec (this);
}
/// ****************************************************************
TAO_PSDL_Simple_Type_Spec::TAO_PSDL_Simple_Type_Spec (TAO_PSDL_Node *type_of_simple_type_spec)
: type_of_simple_type_spec_ (type_of_simple_type_spec)
{
}
TAO_PSDL_Simple_Type_Spec::~TAO_PSDL_Simple_Type_Spec (void)
{
delete this->type_of_simple_type_spec_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Simple_Type_Spec::type_of_simple_type_spec (void) const
{
return this->type_of_simple_type_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Simple_Type_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_simple_type_spec (this);
}
/// ****************************************************************
TAO_PSDL_Base_Type_Spec::TAO_PSDL_Base_Type_Spec (
TAO_PSDL_Node *type_of_base_type_spec)
: type_of_base_type_spec_ (type_of_base_type_spec)
{
}
TAO_PSDL_Base_Type_Spec::~TAO_PSDL_Base_Type_Spec (void)
{
delete this->type_of_base_type_spec_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Base_Type_Spec::type_of_base_type_spec (void) const
{
return this->type_of_base_type_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Base_Type_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_base_type_spec (this);
}
/// ****************************************************************
TAO_PSDL_Template_Type_Spec::TAO_PSDL_Template_Type_Spec (
TAO_PSDL_Node *type_of_template_type_spec)
: type_of_template_type_spec_ (type_of_template_type_spec)
{
}
TAO_PSDL_Template_Type_Spec::~TAO_PSDL_Template_Type_Spec (void)
{
delete this->type_of_template_type_spec_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Template_Type_Spec::type_of_template_type_spec (void) const
{
return this->type_of_template_type_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Template_Type_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_template_type_spec (this);
}
/// ***********************************************************
TAO_PSDL_Constr_Type_Spec::TAO_PSDL_Constr_Type_Spec (
TAO_PSDL_Node *type_of_constr_type_spec)
: type_of_constr_type_spec_ (type_of_constr_type_spec)
{
}
TAO_PSDL_Constr_Type_Spec::~TAO_PSDL_Constr_Type_Spec (void)
{
delete this->type_of_constr_type_spec_;
}
TAO_PSDL_Node *
TAO_PSDL_Constr_Type_Spec::type_of_constr_type_spec (void) const
{
return this->type_of_constr_type_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Constr_Type_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_constr_type_spec (this);
}
/// ****************************************************************
TAO_PSDL_Declarators::TAO_PSDL_Declarators (TAO_PSDL_Node *declarator)
: declarator_ (declarator),
set_of_declarators_ (0)
{
}
TAO_PSDL_Declarators::TAO_PSDL_Declarators (TAO_PSDL_Node *declarator,
TAO_PSDL_Node *set_of_declarators)
: declarator_ (declarator),
set_of_declarators_ (set_of_declarators)
{
}
TAO_PSDL_Declarators::~TAO_PSDL_Declarators (void)
{
delete this->declarator_;
if (this->set_of_declarators_ != 0)
delete this->set_of_declarators_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Declarators::declarator (void) const
{
return this->declarator_;
}
TAO_PSDL_Node *
TAO_PSDL_Declarators::set_of_declarators (void) const
{
return this->set_of_declarators_;
}
/// = The Node methods.
int
TAO_PSDL_Declarators::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_declarators (this);
}
/// ****************************************************************
TAO_PSDL_Declarator::TAO_PSDL_Declarator (TAO_PSDL_Node *type_of_declarator)
: type_of_declarator_ (type_of_declarator)
{
}
TAO_PSDL_Declarator::~TAO_PSDL_Declarator (void)
{
delete this->type_of_declarator_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Declarator::type_of_declarator (void) const
{
return this->type_of_declarator_;
}
/// = The Node methods.
int
TAO_PSDL_Declarator::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_declarator (this);
}
/// ****************************************************************
TAO_PSDL_Simple_Declarator::TAO_PSDL_Simple_Declarator (
TAO_PSDL_Node *identifier)
: identifier_ (identifier),
simple_declarator_ (0)
{
}
TAO_PSDL_Simple_Declarator::TAO_PSDL_Simple_Declarator (
TAO_PSDL_Node *identifier,
TAO_PSDL_Node *simple_declarator)
: identifier_ (identifier),
simple_declarator_ (simple_declarator)
{
}
TAO_PSDL_Simple_Declarator::~TAO_PSDL_Simple_Declarator (void)
{
delete this->identifier_;
if (this->simple_declarator_ != 0)
delete this->simple_declarator_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Simple_Declarator::identifier (void) const
{
return this->identifier_;
}
TAO_PSDL_Node *
TAO_PSDL_Simple_Declarator::simple_declarator (void) const
{
return this->simple_declarator_;
}
/// = The Node methods.
int
TAO_PSDL_Simple_Declarator::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_simple_declarator (this);
}
/// ****************************************************************
TAO_PSDL_Simple_Declarator_List::TAO_PSDL_Simple_Declarator_List (
TAO_PSDL_Node *simple_declarator)
: simple_declarator_list_ (0),
simple_declarator_ (simple_declarator)
{
}
TAO_PSDL_Simple_Declarator_List::TAO_PSDL_Simple_Declarator_List (
TAO_PSDL_Node *simple_declarator_list,
TAO_PSDL_Node *simple_declarator)
: simple_declarator_list_ (simple_declarator_list),
simple_declarator_ (simple_declarator)
{
}
TAO_PSDL_Simple_Declarator_List::~TAO_PSDL_Simple_Declarator_List (void)
{
if (this->simple_declarator_list_ != 0)
delete this->simple_declarator_list_;
if (this->simple_declarator_ != 0)
delete this->simple_declarator_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Simple_Declarator_List::simple_declarator_list (void) const
{
return this->simple_declarator_list_;
}
TAO_PSDL_Node *
TAO_PSDL_Simple_Declarator_List::simple_declarator (void) const
{
return this->simple_declarator_;
}
/// = The Node methods.
int
TAO_PSDL_Simple_Declarator_List::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_simple_declarator_list (this);
}
/// ****************************************************************
TAO_PSDL_Complex_Declarator::TAO_PSDL_Complex_Declarator (TAO_PSDL_Node *array_declarator)
: array_declarator_ (array_declarator)
{
}
TAO_PSDL_Complex_Declarator::~TAO_PSDL_Complex_Declarator (void)
{
delete this->array_declarator_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Complex_Declarator::array_declarator (void) const
{
return this->array_declarator_;
}
/// = The Node methods.
int
TAO_PSDL_Complex_Declarator::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_complex_declarator (this);
}
/// ****************************************************************
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (int type_one)
: type_one_ (type_one),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (0),
type_of_variable_two_ (0),
type_of_variable_three_ (0)
{
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (int type_one,
int type_two)
: type_one_ (type_one),
type_two_ (type_two),
type_three_ (0),
type_of_variable_one_ (0),
type_of_variable_two_ (0),
type_of_variable_three_ (0)
{
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (int type_one,
int type_two,
int type_three)
: type_one_ (type_one),
type_two_ (type_two),
type_three_ (type_three),
type_of_variable_one_ (0),
type_of_variable_two_ (0),
type_of_variable_three_ (0)
{
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (int type_one,
TAO_PSDL_Node *type_of_variable_one)
: type_one_ (type_one),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (type_of_variable_one),
type_of_variable_two_ (0),
type_of_variable_three_ (0)
{
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (TAO_PSDL_Node *type_of_variable_one)
: type_one_ (0),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (type_of_variable_one),
type_of_variable_two_ (0),
type_of_variable_three_ (0)
{
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (TAO_PSDL_Node *type_of_variable_one,
TAO_PSDL_Node *type_of_variable_two)
: type_one_ (0),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (type_of_variable_one),
type_of_variable_two_ (type_of_variable_two),
type_of_variable_three_ (0)
{
this->psdl_scope_visitor ()->visit_predefined_type (this);
/*
this->psdl_scope ()->add_enum_decl (this->identifier_value_,
this->identifier_type_);
*/
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (int type_one,
TAO_PSDL_Node *type_of_variable_one,
TAO_PSDL_Node *type_of_variable_two)
: type_one_ (type_one),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (type_of_variable_one),
type_of_variable_two_ (type_of_variable_two),
type_of_variable_three_ (0)
{
// @@ I am not sure if it is needed. This is nto needed in case fo
// structs atleast. So, I will check it that it doesnt happen in
// case of structs. Or rather will comment it out and will check
// later if need arised by.
// this->psdl_scope_visitor ()->visit_predefined_type (this);
/* if (this->type_one_ == TAO_PSDL_ENUM)
{
this->psdl_scope ()->add_enum_decl (this->identifier_type_,
"enum");
}
*/
}
TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type (
TAO_PSDL_Node *type_of_variable_one,
TAO_PSDL_Node *type_of_variable_two,
TAO_PSDL_Node *type_of_variable_three)
: type_one_ (0),
type_two_ (0),
type_three_ (0),
type_of_variable_one_ (type_of_variable_one),
type_of_variable_two_ (type_of_variable_two),
type_of_variable_three_ (type_of_variable_three)
{
}
TAO_PSDL_Predefined_Type::~TAO_PSDL_Predefined_Type (void)
{
if (this->type_of_variable_one_ != 0)
delete this->type_of_variable_one_;
if (this->type_of_variable_two_ != 0)
delete this->type_of_variable_two_;
if (this->type_of_variable_three_ != 0)
delete this->type_of_variable_three_;
}
/// Get the value
int
TAO_PSDL_Predefined_Type::type_one (void) const
{
return this->type_one_;
}
int
TAO_PSDL_Predefined_Type::type_two (void) const
{
return this->type_two_;
}
int
TAO_PSDL_Predefined_Type::type_three (void) const
{
return this->type_three_;
}
TAO_PSDL_Node *
TAO_PSDL_Predefined_Type::type_of_variable_one (void) const
{
return this->type_of_variable_one_;
}
TAO_PSDL_Node *
TAO_PSDL_Predefined_Type::type_of_variable_two (void) const
{
return this->type_of_variable_two_;
}
TAO_PSDL_Node *
TAO_PSDL_Predefined_Type::type_of_variable_three (void) const
{
return this->type_of_variable_three_;
}
/// = The Nod
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -