--- /dev/null
+/*---------------------------------------------------------------------\
+| ____ _ __ __ ___ |
+| |__ / \ / / . \ . \ |
+| / / \ V /| _/ _/ |
+| / /__ | | | | | | |
+| /_____||_| |_| |_| |
+| |
+\---------------------------------------------------------------------*/
+/** \file zypp/Bitmap.h
+ *
+*/
+#ifndef ZYPP_BITMAP_H
+#define ZYPP_BITMAP_H
+
+#include "zypp/sat/Map.h"
+///////////////////////////////////////////////////////////////////
+namespace zypp
+{
+ typedef sat::Map Bitmap;
+} // namespace zypp
+///////////////////////////////////////////////////////////////////
+#endif // ZYPP_BITMAP_H
#include "zypp/base/String.h"
#include "zypp/sat/Map.h"
+#include "zypp/sat/Pool.h"
using std::endl;
: _pimpl( new ::_Map )
{ ::map_init( _pimpl.get(), size_r ); }
+ Map::Map( PoolSizeType )
+ : _pimpl( new ::_Map )
+ { ::map_init( _pimpl.get(), Pool::instance().capacity() ); }
+
Map::~Map()
{ ::map_free( _pimpl.get() ); }
public:
typedef unsigned long size_type;
+ /** Type to indicate the bitmap should match the current pools capacity. */
+ struct PoolSizeType {};
+ /** An object indicating the bitmap should match the current pools capacity. */
+ static constexpr PoolSizeType poolSize = PoolSizeType();
+
public:
/** Default ctor: empty Map */
Map();
/** Ctor taking the Map size */
explicit Map( size_type size_r );
+ /** Ctor creating a Map matching the current pools capacity */
+ Map( PoolSizeType );
+
/** Dtor */
~Map();
/** \relates Map Clone function for RWCOW_pointer */
template<> struct ::_Map * rwcowClone<struct ::_Map>( const struct ::_Map * rhs );
+ typedef sat::Map Bitmap;
+
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_SAT_MAP_H