summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_enum.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-02 20:06:33 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-02 20:06:33 +0000
commit02ffc4a4eb4232632b35e4d0ab883de3998b4ecf (patch)
tree78664e1c266d9f9c533696b13e9b32348f7ccefc /TAO/TAO_IDL/be/be_enum.cpp
parenta6bcb2b557cd1ea49e0ccd457f67b5c1a7d82645 (diff)
downloadATCD-02ffc4a4eb4232632b35e4d0ab883de3998b4ecf.tar.gz
ChangeLogTag: Mon Oct 2 14:59:44 2000 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_enum.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_enum.cpp45
1 files changed, 1 insertions, 44 deletions
diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp
index 474fa8b9838..0569da441f5 100644
--- a/TAO/TAO_IDL/be/be_enum.cpp
+++ b/TAO/TAO_IDL/be/be_enum.cpp
@@ -43,54 +43,11 @@ be_enum::be_enum (UTL_ScopedName *n,
p),
UTL_Scope (AST_Decl::NT_enum),
COMMON_Base (local,
- abstract),
- member_count_ (-1)
+ abstract)
{
this->size_type (be_decl::FIXED);
}
-// Compute total number of members.
-int
-be_enum::compute_member_count (void)
-{
- UTL_ScopeActiveIterator *si = 0;
-
- this->member_count_ = 0;
-
- // if there are elements in this scope
- if (this->nmembers () > 0)
- {
- // Instantiate a scope iterator.
- ACE_NEW_RETURN (si,
- UTL_ScopeActiveIterator (this,
- UTL_Scope::IK_decls),
- -1);
-
- while (!(si->is_done ()))
- {
- // Get the next AST decl node.
- this->member_count_++;
- si->next ();
- }
-
- delete si;
- }
-
- return 0;
-}
-
-// return the member count
-int
-be_enum::member_count (void)
-{
- if (this->member_count_ == -1)
- {
- this->compute_member_count ();
- }
-
- return this->member_count_;
-}
-
// Convert a numeric value to the string name
UTL_ScopedName *
be_enum::value_to_name (const unsigned long v)