// Filename: pmap.h // Created by: drose (05Jun01) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://www.panda3d.org/license.txt . // // To contact the maintainers of this program write to // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// #ifndef PMAP_H #define PMAP_H #include "dtoolbase.h" #include "pallocator.h" #include #ifdef NO_STYLE_ALLOCATOR // If we're not using custom allocators, just use the standard class // definition. #define pmap map #define pmultimap multimap #else //////////////////////////////////////////////////////////////////// // Class : pmap // Description : This is our own Panda specialization on the default // STL map. Its main purpose is to call the hooks // for MemoryUsage to properly track STL-allocated // memory. //////////////////////////////////////////////////////////////////// template > class pmap : public map > { public: pmap() : map >() { } pmap(const pmap ©) : map >(copy) { } pmap(const Compare &comp) : map >(comp) { } }; //////////////////////////////////////////////////////////////////// // Class : pmultimap // Description : This is our own Panda specialization on the default // STL multimap. Its main purpose is to call the hooks // for MemoryUsage to properly track STL-allocated // memory. //////////////////////////////////////////////////////////////////// template > class pmultimap : public multimap > { public: pmultimap() : multimap >() { } pmultimap(const pmultimap ©) : multimap >(copy) { } pmultimap(const Compare &comp) : multimap >(comp) { } }; #endif // NO_STYLE_ALLOCATOR #endif