diff options
-rw-r--r-- | ACEXML/ChangeLog | 6 | ||||
-rw-r--r-- | ACEXML/parser/parser/Entity_Manager.cpp | 25 | ||||
-rw-r--r-- | ACEXML/parser/parser/Parser.cpp | 20 |
3 files changed, 51 insertions, 0 deletions
diff --git a/ACEXML/ChangeLog b/ACEXML/ChangeLog index 338ed132219..3ea4581ef10 100644 --- a/ACEXML/ChangeLog +++ b/ACEXML/ChangeLog @@ -1,3 +1,9 @@ +Sun Jun 1 09:09:22 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu> + + * parser/parser/Parser.cpp: + * parser/parser/Entity_Manager.cpp: Added explicit template + instantiations. + Fri May 30 14:16:33 2003 Krishnakumar B <kitty@spam.invalid.domain> * examples/svcconf/.depend.Makefile.Svcconf: diff --git a/ACEXML/parser/parser/Entity_Manager.cpp b/ACEXML/parser/parser/Entity_Manager.cpp index 0b781b6f0e4..2d1e0201b92 100644 --- a/ACEXML/parser/parser/Entity_Manager.cpp +++ b/ACEXML/parser/parser/Entity_Manager.cpp @@ -18,3 +18,28 @@ ACEXML_Entity_Manager::ACEXML_Entity_Manager (void) ACEXML_Entity_Manager::~ACEXML_Entity_Manager (void) { } + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + // Instantiations for the Hash Map +template class ACE_Equal_To<ACEXML_String>; +template class ACE_Hash<ACEXML_String>; +template class ACE_Hash_Map_Entry<ACEXML_String, ACEXML_String>; +template class ACE_Hash_Map_Manager_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Iterator_Base_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Iterator_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Reverse_Iterator_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>; +template class ACE_Hash_Map_Bucket_Iterator<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#pragma instantiate ACE_Equal_To<ACEXML_String> +#pragma instantiate ACE_Hash<ACEXML_String> +#pragma instantiate ACE_Hash_Map_Entry<ACEXML_String, ACEXML_String> +#pragma instantiate ACE_Hash_Map_Manager_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex> +#pragma instantiate ACE_Hash_Map_Bucket_Iterator<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex> + +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/ACEXML/parser/parser/Parser.cpp b/ACEXML/parser/parser/Parser.cpp index eecf7149ebe..65d4723b91a 100644 --- a/ACEXML/parser/parser/Parser.cpp +++ b/ACEXML/parser/parser/Parser.cpp @@ -3322,3 +3322,23 @@ ACEXML_Parser::reset (void) this->external_dtd_ = 0; this->internal_dtd_ = 0; } + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + +template class ACE_Unbounded_Stack<ACEXML_Parser_Context*>; +template class ACE_Unbounded_Set_Iterator<ACEXML_Parser_Context*>; +template class ACE_Node<ACEXML_Parser_Context*>; +template class ACE_Unbounded_Stack<ACEXML_Char *>; +template class ACE_Node<ACEXML_Char *>; +template class ACE_Unbounded_Set_Iterator<ACEXML_Char*>; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#pragma instantiate ACE_Unbounded_Stack<ACEXML_Parser_Context*> +#pragma instantiate ACE_Unbounded_Set_Iterator<ACEXML_Parser_Context*>; +#pragma instantiate ACE_Node<ACEXML_Parser_Context*> +#pragma instantiate ACE_Unbounded_Stack<ACEXML_Char*> +#pragma instantiate ACE_Unbounded_Set_Iterator<ACEXML_Char*>; +#pragma instantiate ACE_Node<ACEXML_Char *> + +#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ |