summaryrefslogtreecommitdiff
path: root/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tao/Bounded_Reference_Allocation_Traits_T.h
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/tao/Bounded_Reference_Allocation_Traits_T.h')
-rw-r--r--TAO/tao/Bounded_Reference_Allocation_Traits_T.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h b/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
deleted file mode 100644
index b5ff17fca98..00000000000
--- a/TAO/tao/Bounded_Reference_Allocation_Traits_T.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#ifndef guard_bounded_reference_allocation_traits_hpp
-#define guard_bounded_reference_allocation_traits_hpp
-/**
- * @file
- *
- * @brief Details can be found in the documentation for
- * TAO::details::generic_sequence
- *
- * $Id$
- *
- * @author Carlos O'Ryan
- */
-
-#include "tao/Basic_Types.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
-namespace details
-{
-
-template<typename T, class ref_traits, CORBA::ULong MAX, bool dummy>
-struct bounded_reference_allocation_traits
-{
- typedef T value_type;
- typedef ref_traits reference_traits;
-
- inline static CORBA::ULong default_maximum()
- {
- return MAX;
- }
-
- inline static value_type * default_buffer_allocation()
- {
- return allocbuf(MAX);
- }
-
- inline static value_type * allocbuf(CORBA::ULong /* maximum */)
- {
- value_type * buffer = new value_type[MAX];
- // no throw
- reference_traits::zero_range(buffer, buffer + MAX);
-
- return buffer;
- }
-
- inline static void freebuf(value_type * buffer)
- {
- reference_traits::release_range(buffer, buffer + MAX);
- delete[] buffer;
- }
-
- inline static CORBA::ULong maximum()
- {
- return MAX;
- }
-};
-
-} // namespace details
-} // namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif // guard_bounded_reference_allocation_traits_hpp