summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
index f5ff581f3e3..add0becee4e 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
@@ -24,7 +24,7 @@ be_visitor_union_branch_public_ci::be_visitor_union_branch_public_ci (
}
// destructor
-be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci (void)
+be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci ()
{
}
@@ -32,7 +32,7 @@ be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci (void)
int
be_visitor_union_branch_public_ci::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -63,10 +63,10 @@ int
be_visitor_union_branch_public_ci::visit_array (be_array *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -131,7 +131,7 @@ be_visitor_union_branch_public_ci::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -186,7 +186,7 @@ be_visitor_union_branch_public_ci::visit_array (be_array *node)
*os << "/// Retrieve the member." << be_nl
<< "ACE_INLINE" << be_nl
<< fname << "_slice *" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -198,10 +198,10 @@ int
be_visitor_union_branch_public_ci::visit_enum (be_enum *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// heck if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -257,7 +257,7 @@ be_visitor_union_branch_public_ci::visit_enum (be_enum *node)
*os << "/// Retrieve the member." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -269,10 +269,10 @@ int
be_visitor_union_branch_public_ci::visit_interface (be_interface *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -347,7 +347,7 @@ be_visitor_union_branch_public_ci::visit_interface (be_interface *node)
*os << "/// Retrieve the member." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << "_ptr" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl
<< "}";
@@ -359,10 +359,10 @@ int
be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -437,7 +437,7 @@ be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node)
*os << "/// Retrieve the member." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << "_ptr" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl
<< "}";
@@ -467,10 +467,10 @@ int
be_visitor_union_branch_public_ci::emit_valuetype_common (be_type *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -532,7 +532,7 @@ be_visitor_union_branch_public_ci::emit_valuetype_common (be_type *node)
*os << "/// Retrieve the member." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << "*" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl
<< "}";
@@ -546,10 +546,10 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -681,7 +681,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "::" << bt->name () << "_ptr" << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void) const" << be_nl
+ << " () const" << be_nl
<< "{" << be_idt_nl;
*os << "return this->u_." << ub->local_name ()
<< "_->in ();" << be_uidt_nl;
@@ -694,7 +694,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "::" << bt->name () << "_ptr" << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void) const" << be_nl
+ << " () const" << be_nl
<< "{" << be_idt_nl;
*os << "return this->u_." << ub->local_name ()
<< "_;" << be_uidt_nl;
@@ -707,7 +707,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "::" << bt->name () << " *" << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void) const" << be_nl
+ << " () const" << be_nl
<< "{" << be_idt_nl;
*os << "return this->u_." << ub->local_name ()
<< "_;" << be_uidt_nl;
@@ -720,7 +720,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "const ::" << bt->name () << " &" << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void) const" << be_nl
+ << " () const" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}" << be_nl_2;
@@ -730,7 +730,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "::" << bt->name () << " &" << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void)" << be_nl
+ << " ()" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -743,7 +743,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
<< "ACE_INLINE" << be_nl
<< "::" << bt->name () << be_nl
<< bu->name () << "::" << ub->local_name ()
- << " (void) const" << be_nl
+ << " () const" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -758,10 +758,10 @@ int
be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -819,7 +819,7 @@ be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node)
*os << "/// Readonly get method." << be_nl
<< "ACE_INLINE" << be_nl
<< "const " << bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}" << be_nl_2;
@@ -828,7 +828,7 @@ be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node)
*os << "/// Read/write get method." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void)" << be_nl
+ << bu->name () << "::" << ub->local_name () << " ()" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -840,11 +840,11 @@ int
be_visitor_union_branch_public_ci::visit_string (be_string *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_ci::"
@@ -999,7 +999,7 @@ be_visitor_union_branch_public_ci::visit_string (be_string *node)
}
*os << bu->name () << "::" << ub->local_name ()
- << " (void) const // get method" << be_nl
+ << " () const // get method" << be_nl
<< "{" << be_idt_nl
<< "return this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -1011,10 +1011,10 @@ int
be_visitor_union_branch_public_ci::visit_structure (be_structure *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -1106,7 +1106,7 @@ be_visitor_union_branch_public_ci::visit_structure (be_structure *node)
*os << "// Readonly get method." << be_nl
<< "ACE_INLINE" << be_nl
<< "const " << bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl;
if (bt->size_type () == be_type::VARIABLE
@@ -1125,7 +1125,7 @@ be_visitor_union_branch_public_ci::visit_structure (be_structure *node)
*os << "// Read/write get method." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void)" << be_nl
+ << bu->name () << "::" << ub->local_name () << " ()" << be_nl
<< "{" << be_idt_nl;
if (bt->size_type () == be_type::VARIABLE
@@ -1147,7 +1147,7 @@ int
be_visitor_union_branch_public_ci::visit_structure_fwd (be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -1170,7 +1170,7 @@ be_visitor_union_branch_public_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -1178,10 +1178,10 @@ int
be_visitor_union_branch_public_ci::visit_union (be_union *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -1263,7 +1263,7 @@ be_visitor_union_branch_public_ci::visit_union (be_union *node)
*os << "// Readonly get method." << be_nl
<< "ACE_INLINE" << be_nl
<< "const " << bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl
+ << bu->name () << "::" << ub->local_name () << " () const" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}" << be_nl_2;
@@ -1272,7 +1272,7 @@ be_visitor_union_branch_public_ci::visit_union (be_union *node)
*os << "// Read/write get method." << be_nl
<< "ACE_INLINE" << be_nl
<< bt->name () << " &" << be_nl
- << bu->name () << "::" << ub->local_name () << " (void)" << be_nl
+ << bu->name () << "::" << ub->local_name () << " ()" << be_nl
<< "{" << be_idt_nl
<< "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl
<< "}";
@@ -1284,7 +1284,7 @@ int
be_visitor_union_branch_public_ci::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}