## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# XercesAttributeBridgeAllocator.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *     http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 #if !defined(XERCESATTRIBUTEBRIDGEALLOCATOR_INCLUDE_GUARD_12455133)
    00018 #define XERCESATTRIBUTEBRIDGEALLOCATOR_INCLUDE_GUARD_12455133
    00019
    00020
    00021
    00022 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
    00023
    00024
    00025
    00026 #include <xalanc/PlatformSupport/ArenaAllocator.hpp>
    00027
    00028
    00029
    00030 #include <xalanc/XercesParserLiaison/Deprecated/XercesAttrBridge.hpp>
    00031
    00032
    00033
    00034 XALAN_CPP_NAMESPACE_BEGIN
    00035
    00036
    00042 class XALAN_XERCESPARSERLIAISON_EXPORT XercesAttributeBridgeAllocator
    00043 {
    00044 public:
    00045
    00046     typedef XercesAttrBridge                        ObjectType;
    00047
    00048 #if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
    00049     typedef ArenaBlock<ObjectType>                  ArenaBlockType;
    00050
    00051     typedef ArenaAllocator<ObjectType,
    00052                            ArenaBlockType>          ArenaAllocatorType;
    00053 #else
    00054     typedef ArenaAllocator<ObjectType>              ArenaAllocatorType;
    00055 #endif
    00056
    00057     typedef ArenaAllocatorType::size_type           size_type;
    00058
    00064     XercesAttributeBridgeAllocator(size_type    theBlockCount);
    00065
    00066     ~XercesAttributeBridgeAllocator();
    00067
    00076     ObjectType*
    00077     create(
    00078             const DOM_AttrType&             theXercesAttr,
    00079             const XercesBridgeNavigator&    theNavigator);
    00080
    00084     void
    00085     reset();
    00086
    00093     size_type
    00094     getBlockCount() const
    00095     {
    00096         return m_allocator.getBlockCount();
    00097     }
    00098
    00104     size_type
    00105     getBlockSize() const
    00106     {
    00107         return m_allocator.getBlockSize();
    00108     }
    00109
    00110 private:
    00111
    00112     // Not implemented...
    00113     XercesAttributeBridgeAllocator(const XercesAttributeBridgeAllocator&);
    00114
    00115     XercesAttributeBridgeAllocator&
    00116     operator=(const XercesAttributeBridgeAllocator&);
    00117
    00118     // Data members...
    00119     ArenaAllocatorType  m_allocator;
    00120 };
    00121
    00122
    00123
    00124 XALAN_CPP_NAMESPACE_END
    00125
    00126
    00127
    00128 #endif  // XERCESATTRIBUTEBRIDGEALLOCATOR_INCLUDE_GUARD_12455133

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.