@@ -49,25 +49,25 @@ PWMap UnordPWMapFact::createPWMap(const Map& m) const
4949// OrdPWMap Factory ------------------------------------------------------------
5050// //////////////////////////////////////////////////////////////////////////////
5151
52- // OrdPWMapFact::OrdPWMapFact() {}
53- //
54- // PWMap OrdPWMapFact::createPWMap() const
55- // {
56- // return PWMap(std::make_unique<OrdPWMap>()) ;
57- // }
58- //
59- // PWMap OrdPWMapFact::createPWMap(const Set & s) const
60- // {
61- // return PWMap(std::make_unique<OrdPWMap>(s)) ;
62- // }
63- //
64- // PWMap OrdPWMapFact::createPWMap(const Map & m) const
65- // {
66- // return PWMap(std::make_unique<OrdPWMap>(m)) ;
67- // }
68- //
52+ OrdPWMapFact::OrdPWMapFact () {}
53+
54+ PWMap OrdPWMapFact::createPWMap () const
55+ {
56+ return PWMap{PWMapKind:: kOrdered } ;
57+ }
58+
59+ PWMap OrdPWMapFact::createPWMap (const Set& s) const
60+ {
61+ return PWMap{PWMapKind:: kOrdered , s} ;
62+ }
63+
64+ PWMap OrdPWMapFact::createPWMap (const Map& m) const
65+ {
66+ return PWMap{PWMapKind:: kOrdered , m} ;
67+ }
68+
6969// ////////////////////////////////////////////////////////////////////////////////
70- // // DomOrdPWMap Factory ------------------------------------------------------------
70+ // // DomOrdPWMap Factory ---------------------------------------------------------
7171// ////////////////////////////////////////////////////////////////////////////////
7272//
7373// DomOrdPWMapFact::DomOrdPWMapFact() {}
@@ -104,18 +104,19 @@ const PWMapKind& PWMapFactory::kind() const { return _kind; }
104104
105105void PWMapFactory::set_pwmap_fact (PWMapKind kind)
106106{
107+ _kind = kind;
107108 switch (kind) {
108109 case PWMapKind::kUnordered : {
109- _kind = kind;
110110 _impl = UnordPWMapFact{};
111111 break ;
112112 }
113113
114- // case SetKind::kOrdered: {
115- // _impl = OrdPWMapFact{};
116- // }
114+ case PWMapKind::kOrdered : {
115+ _impl = OrdPWMapFact{};
116+ break ;
117+ }
117118
118- // case SetKind::OrdUnidimDense : {
119+ // case PWMapKind::kDomOrdered : {
119120 // _impl = DomOrdPWMapFact{};
120121 // }
121122
0 commit comments