📄 psdl_node.cpp
字号:
{
return visitor->visit_storagetype_ref_type (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Scope::TAO_PSDL_Storagehome_Scope (TAO_PSDL_Node *storagehome_name)
: storagehome_name_ (storagehome_name)
{
}
TAO_PSDL_Storagehome_Scope::~TAO_PSDL_Storagehome_Scope (void)
{
delete this->storagehome_name_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Scope::storagehome_name (void) const
{
return this->storagehome_name_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Scope::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_scope (this);
}
/// ****************************************************************
TAO_PSDL_Store_Directive::TAO_PSDL_Store_Directive (
TAO_PSDL_Node *simple_declarator,
TAO_PSDL_Node *psdl_concrete_state_type,
TAO_PSDL_Node *storagehome_scope)
: simple_declarator_ (simple_declarator),
psdl_concrete_state_type_ (psdl_concrete_state_type),
storagehome_scope_ (storagehome_scope)
{
}
TAO_PSDL_Store_Directive::TAO_PSDL_Store_Directive (
TAO_PSDL_Node *simple_declarator,
TAO_PSDL_Node *psdl_concrete_state_type)
: simple_declarator_ (simple_declarator),
psdl_concrete_state_type_ (psdl_concrete_state_type),
storagehome_scope_ (0)
{
}
TAO_PSDL_Store_Directive::~TAO_PSDL_Store_Directive (void)
{
delete this->simple_declarator_;
delete this->psdl_concrete_state_type_;
if (this->storagehome_scope_ != 0)
delete this->storagehome_scope_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Store_Directive::simple_declarator (void) const
{
return this->simple_declarator_;
}
TAO_PSDL_Node *
TAO_PSDL_Store_Directive::psdl_concrete_state_type (void) const
{
return this->psdl_concrete_state_type_;
}
TAO_PSDL_Node *
TAO_PSDL_Store_Directive::storagehome_scope (void) const
{
return this->storagehome_scope_;
}
/// = The Node methods.
int
TAO_PSDL_Store_Directive::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_store_directive (this);
}
/// ****************************************************************
TAO_PSDL_Psdl_Concrete_State_Type::TAO_PSDL_Psdl_Concrete_State_Type (TAO_PSDL_Node *storagetype)
: storagetype_ (storagetype)
{
}
TAO_PSDL_Psdl_Concrete_State_Type::~TAO_PSDL_Psdl_Concrete_State_Type (void)
{
delete this->storagetype_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Psdl_Concrete_State_Type::storagetype (void) const
{
return this->storagetype_;
}
/// = The Node methods.
int
TAO_PSDL_Psdl_Concrete_State_Type::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_psdl_concrete_state_type (this);
}
/// ****************************************************************
TAO_PSDL_Ref_Rep_Directive::TAO_PSDL_Ref_Rep_Directive (TAO_PSDL_Node *simple_declarator)
: simple_declarator_ (simple_declarator)
{
}
TAO_PSDL_Ref_Rep_Directive::~TAO_PSDL_Ref_Rep_Directive (void)
{
delete this->simple_declarator_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Ref_Rep_Directive::simple_declarator (void) const
{
return this->simple_declarator_;
}
/// = The Node methods.
int
TAO_PSDL_Ref_Rep_Directive::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_ref_rep_directive (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome::TAO_PSDL_Storagehome (TAO_PSDL_Node *storagehome_header)
: storagehome_header_ (storagehome_header),
storagehome_body_ (0)
{
}
TAO_PSDL_Storagehome::TAO_PSDL_Storagehome (TAO_PSDL_Node *storagehome_header,
TAO_PSDL_Node *storagehome_body)
: storagehome_header_ (storagehome_header),
storagehome_body_ (storagehome_body)
{
}
TAO_PSDL_Storagehome::~TAO_PSDL_Storagehome (void)
{
delete this->storagehome_header_;
delete this->storagehome_body_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome::storagehome_header (void) const
{
return this->storagehome_header_;
}
TAO_PSDL_Node *
TAO_PSDL_Storagehome::storagehome_body (void) const
{
return this->storagehome_body_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Header::TAO_PSDL_Storagehome_Header (
TAO_PSDL_Node *identifier,
TAO_PSDL_Node *storagetype_name,
TAO_PSDL_Node *storagehome_inh_spec,
TAO_PSDL_Node *storagehome_impl_spec)
: identifier_ (identifier),
storagetype_name_ (storagetype_name),
storagehome_inh_spec_ (storagehome_inh_spec),
storagehome_impl_spec_ (storagehome_impl_spec)
{
}
TAO_PSDL_Storagehome_Header::TAO_PSDL_Storagehome_Header (
TAO_PSDL_Node *identifier,
TAO_PSDL_Node *storagetype_name,
TAO_PSDL_Node *storagehome_inh_spec)
: identifier_ (identifier),
storagetype_name_ (storagetype_name),
storagehome_inh_spec_ (storagehome_inh_spec),
storagehome_impl_spec_ (0)
{
}
TAO_PSDL_Storagehome_Header::TAO_PSDL_Storagehome_Header (
TAO_PSDL_Node *identifier,
TAO_PSDL_Node *storagetype_name)
: identifier_ (identifier),
storagetype_name_ (storagetype_name),
storagehome_inh_spec_ (0),
storagehome_impl_spec_ (0)
{
}
TAO_PSDL_Storagehome_Header::~TAO_PSDL_Storagehome_Header (void)
{
delete this->identifier_;
delete this->storagetype_name_;
delete this->storagehome_inh_spec_;
delete this->storagehome_impl_spec_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Header::identifier (void) const
{
return this->identifier_;
}
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Header::storagetype_name (void) const
{
return this->storagetype_name_;
}
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Header::storagehome_inh_spec (void) const
{
return this->storagehome_inh_spec_;
}
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Header::storagehome_impl_spec (void) const
{
return this->storagehome_impl_spec_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Header::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_header (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Body::TAO_PSDL_Storagehome_Body ()
: storagehome_member_ (0),
storagehome_body_ (0)
{
}
TAO_PSDL_Storagehome_Body::TAO_PSDL_Storagehome_Body (
TAO_PSDL_Node *storagehome_member)
: storagehome_member_ (storagehome_member),
storagehome_body_ (0)
{
}
TAO_PSDL_Storagehome_Body::TAO_PSDL_Storagehome_Body (
TAO_PSDL_Node *storagehome_member,
TAO_PSDL_Node *storagehome_body)
: storagehome_member_ (storagehome_member),
storagehome_body_ (storagehome_body)
{
}
TAO_PSDL_Storagehome_Body::~TAO_PSDL_Storagehome_Body (void)
{
delete this->storagehome_member_;
delete this->storagehome_body_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Body::storagehome_member (void) const
{
return this->storagehome_member_;
}
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Body::storagehome_body (void) const
{
return this->storagehome_body_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Body::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_body (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Member::TAO_PSDL_Storagehome_Member (
TAO_PSDL_Node *key_dcl)
: key_dcl_ (key_dcl)
{
}
TAO_PSDL_Storagehome_Member::~TAO_PSDL_Storagehome_Member (void)
{
delete this->key_dcl_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Member::key_dcl (void) const
{
return this->key_dcl_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Member::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_member (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Inh_Spec::TAO_PSDL_Storagehome_Inh_Spec (TAO_PSDL_Node *storagehome_name)
: storagehome_name_ (storagehome_name)
{
}
TAO_PSDL_Storagehome_Inh_Spec::~TAO_PSDL_Storagehome_Inh_Spec (void)
{
delete this->storagehome_name_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Inh_Spec::storagehome_name (void) const
{
return this->storagehome_name_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Inh_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_inh_spec (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Name::TAO_PSDL_Storagehome_Name (TAO_PSDL_Node *scoped_name)
: scoped_name_ (scoped_name)
{
}
TAO_PSDL_Storagehome_Name::~TAO_PSDL_Storagehome_Name (void)
{
delete this->scoped_name_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Name::scoped_name (void) const
{
return this->scoped_name_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Name::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_name (this);
}
/// ****************************************************************
TAO_PSDL_Storagehome_Impl_Spec::TAO_PSDL_Storagehome_Impl_Spec (
TAO_PSDL_Node *abstract_storagehome_name)
: abstract_storagehome_name_ (abstract_storagehome_name)
{
}
TAO_PSDL_Storagehome_Impl_Spec::~TAO_PSDL_Storagehome_Impl_Spec (void)
{
delete this->abstract_storagehome_name_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Storagehome_Impl_Spec::abstract_storagehome_name (void) const
{
return this->abstract_storagehome_name_;
}
/// = The Node methods.
int
TAO_PSDL_Storagehome_Impl_Spec::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_storagehome_impl_spec (this);
}
/// ****************************************************************
TAO_PSDL_Primary_Key_Dcl::TAO_PSDL_Primary_Key_Dcl ()
: identifier_ (0)
{
}
TAO_PSDL_Primary_Key_Dcl::TAO_PSDL_Primary_Key_Dcl (TAO_PSDL_Node *identifier)
: identifier_ (identifier)
{
}
TAO_PSDL_Primary_Key_Dcl::~TAO_PSDL_Primary_Key_Dcl (void)
{
delete this->identifier_;
}
/// Get the value
TAO_PSDL_Node *
TAO_PSDL_Primary_Key_Dcl::identifier (void) const
{
return this->identifier_;
}
/// = The Node methods.
int
TAO_PSDL_Primary_Key_Dcl::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_primary_key_dcl (this);
}
/// ****************************************************************
TAO_PSDL_Identifier::TAO_PSDL_Identifier (char *value)
: value_ (CORBA::string_dup (value)),
value_type_ (0)
{
TAO_PSDL_Scope::instance ()->save_identifier (value);
}
TAO_PSDL_Identifier::TAO_PSDL_Identifier (int value_type)
: value_type_ (value_type)
{
}
TAO_PSDL_Identifier::~TAO_PSDL_Identifier (void)
{
if (this->value_ != 0)
delete this->value_;
}
/// Get the value
char *
TAO_PSDL_Identifier::value (void) const
{
return this->value_;
}
int
TAO_PSDL_Identifier::value_type (void) const
{
return this->value_type_;
}
/// = The Node methods.
int
TAO_PSDL_Identifier::accept (TAO_PSDL_Node_Visitor *visitor)
{
return visitor->visit_identifier (this);
}
/// ****************************************************************
TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl (TAO_PSDL_Node *type_of_type_dcl)
: key_word_ (0),
type_of_type_dcl_ (type_of_type_dcl)
{
}
TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl (int key_word,
TAO_PSDL_Node *type_of_type_dcl)
: key_word_ (key_word),
type_of_type_dcl_ (type_of_type_dcl)
{
this->type_ = key_word;
this->psdl_scope_visitor ()->visit_type_dcl (this);
// @@ why this if loop
if (ACE_OS::strcmp (this->identifiers_[0].c_str (), "") == 0)
{
this->identifiers_[0] = this->psdl_scope_visitor ()->get_scoped_type ();
}
if (key_word != TAO_PSDL_TYPEDEF)
{
this->psdl_scope ()->check_name_in_scope (this->identifiers_[0],
this->psdl_scope ());
}
this->psdl_scope ()->add_typedef (this->identifiers_[1],
this->identifiers_[0]);
// We dont these values of the identifiers anymore as they have been
// added to the corresponding AST. So, set count to 'zero' again.
this->count_ = 0;
}
TAO_PSDL_Type_Dcl::~TAO_PSDL_Type_Dcl (void)
{
delete this->type_of_type_dcl_;
}
/// Get the value
int
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -