From: khizmax Date: Sat, 27 Sep 2014 19:14:04 +0000 (+0400) Subject: Move michael_set_base.h from cds/container to cds/container/details X-Git-Tag: v2.0.0~260 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=32129f0b2ac01e0cf9c0479ea43e756c79198c42;p=libcds.git Move michael_set_base.h from cds/container to cds/container/details --- diff --git a/cds/container/details/michael_map_base.h b/cds/container/details/michael_map_base.h index 976f2def..6f3a5d63 100644 --- a/cds/container/details/michael_map_base.h +++ b/cds/container/details/michael_map_base.h @@ -1,9 +1,9 @@ //$$CDS-header$$ -#ifndef __CDS_CONTAINER_MICHAEL_MAP_BASE_H -#define __CDS_CONTAINER_MICHAEL_MAP_BASE_H +#ifndef __CDS_CONTAINER_DETAILS_MICHAEL_MAP_BASE_H +#define __CDS_CONTAINER_DETAILS_MICHAEL_MAP_BASE_H -#include +#include namespace cds { namespace container { @@ -33,4 +33,4 @@ namespace cds { namespace container { }} // namespace cds::container -#endif // ifndef __CDS_CONTAINER_MICHAEL_MAP_BASE_H +#endif // ifndef __CDS_CONTAINER_DETAILS_MICHAEL_MAP_BASE_H diff --git a/cds/container/details/michael_set_base.h b/cds/container/details/michael_set_base.h new file mode 100644 index 00000000..8eb808ba --- /dev/null +++ b/cds/container/details/michael_set_base.h @@ -0,0 +1,44 @@ +//$$CDS-header$$ + +#ifndef __CDS_CONTAINER_DETAILS_MICHAEL_SET_BASE_H +#define __CDS_CONTAINER_DETAILS_MICHAEL_SET_BASE_H + +#include + +namespace cds { namespace container { + + /// MichaelHashSet related definitions + /** @ingroup cds_nonintrusive_helper + */ + namespace michael_set { + + /// Type traits for MichaelHashSet class (typedef for cds::intrusive::michael_set::type_traits) + typedef intrusive::michael_set::type_traits type_traits; + + /// Metafunction converting option list to traits struct + /** + This is a synonym for intrusive::michael_set::make_traits + */ + template + struct make_traits { + typedef typename intrusive::michael_set::make_traits::type type ; ///< Result of metafunction + }; + + //@cond + namespace details { + using intrusive::michael_set::details::init_hash_bitmask; + using intrusive::michael_set::details::list_iterator_selector; + using intrusive::michael_set::details::iterator; + } + //@endcond + } + + //@cond + // Forward declarations + template + class MichaelHashSet; + //@endcond + +}} // namespace cds::container + +#endif // #ifndef __CDS_CONTAINER_DETAILS_MICHAEL_SET_BASE_H diff --git a/cds/container/michael_set.h b/cds/container/michael_set.h index a4155486..18e8a7b7 100644 --- a/cds/container/michael_set.h +++ b/cds/container/michael_set.h @@ -3,7 +3,7 @@ #ifndef __CDS_CONTAINER_MICHAEL_SET_H #define __CDS_CONTAINER_MICHAEL_SET_H -#include +#include #include namespace cds { namespace container { diff --git a/cds/container/michael_set_base.h b/cds/container/michael_set_base.h deleted file mode 100644 index 29544473..00000000 --- a/cds/container/michael_set_base.h +++ /dev/null @@ -1,44 +0,0 @@ -//$$CDS-header$$ - -#ifndef __CDS_CONTAINER_MICHAEL_SET_BASE_H -#define __CDS_CONTAINER_MICHAEL_SET_BASE_H - -#include - -namespace cds { namespace container { - - /// MichaelHashSet related definitions - /** @ingroup cds_nonintrusive_helper - */ - namespace michael_set { - - /// Type traits for MichaelHashSet class (typedef for cds::intrusive::michael_set::type_traits) - typedef intrusive::michael_set::type_traits type_traits; - - /// Metafunction converting option list to traits struct - /** - This is a synonym for intrusive::michael_set::make_traits - */ - template - struct make_traits { - typedef typename intrusive::michael_set::make_traits::type type ; ///< Result of metafunction - }; - - //@cond - namespace details { - using intrusive::michael_set::details::init_hash_bitmask; - using intrusive::michael_set::details::list_iterator_selector; - using intrusive::michael_set::details::iterator; - } - //@endcond - } - - //@cond - // Forward declarations - template - class MichaelHashSet; - //@endcond - -}} // namespace cds::container - -#endif // #ifndef __CDS_CONTAINER_MICHAEL_SET_BASE_H diff --git a/cds/container/michael_set_nogc.h b/cds/container/michael_set_nogc.h index 8cbe4f57..0f241260 100644 --- a/cds/container/michael_set_nogc.h +++ b/cds/container/michael_set_nogc.h @@ -3,7 +3,7 @@ #ifndef __CDS_CONTAINER_MICHAEL_SET_NOGC_H #define __CDS_CONTAINER_MICHAEL_SET_NOGC_H -#include +#include #include #include diff --git a/cds/container/michael_set_rcu.h b/cds/container/michael_set_rcu.h index 65e08632..9001e37f 100644 --- a/cds/container/michael_set_rcu.h +++ b/cds/container/michael_set_rcu.h @@ -3,7 +3,7 @@ #ifndef __CDS_CONTAINER_MICHAEL_SET_RCU_H #define __CDS_CONTAINER_MICHAEL_SET_RCU_H -#include +#include #include namespace cds { namespace container { diff --git a/projects/Win/vc12/cds.vcxproj b/projects/Win/vc12/cds.vcxproj index dc442b0f..3acd3fe5 100644 --- a/projects/Win/vc12/cds.vcxproj +++ b/projects/Win/vc12/cds.vcxproj @@ -665,6 +665,7 @@ + @@ -976,7 +977,6 @@ - diff --git a/projects/Win/vc12/cds.vcxproj.filters b/projects/Win/vc12/cds.vcxproj.filters index fb3587cc..821a2153 100644 --- a/projects/Win/vc12/cds.vcxproj.filters +++ b/projects/Win/vc12/cds.vcxproj.filters @@ -680,9 +680,6 @@ Header Files\cds\container - - Header Files\cds\container - Header Files\cds\container @@ -1283,5 +1280,8 @@ Header Files\cds\container\details + + Header Files\cds\container\details + \ No newline at end of file