27 #ifndef HH_MARKERS_HH_
28 #define HH_MARKERS_HH_
32 #include <boost/serialization/serialization.hpp>
34 #include <feel/feelcore/feel.hpp>
35 #include <boost/detail/identifier.hpp>
40 class Marker1 :
public boost::detail::identifier< size_type, Marker1 >
43 typedef boost::detail::identifier< size_type, Marker1 >::value_type value_type;
44 Marker1() : boost::detail::identifier<
size_type,Marker1>( 0 ) {}
45 explicit Marker1( value_type v ) : boost::detail::identifier<
size_type,Marker1>( v ) {}
51 bool isOn()
const {
return value() != 0; }
52 bool isOff()
const {
return value() == 0; }
56 friend class boost::serialization::access;
60 template<
class Archive>
61 void save( Archive & ar,
const unsigned int version )
const
67 template<
class Archive>
68 void load( Archive & ar,
const unsigned int version )
75 BOOST_SERIALIZATION_SPLIT_MEMBER()
79 class Marker2 :
public boost::detail::identifier< size_type, Marker2 >
82 typedef boost::detail::identifier< size_type, Marker2 >::value_type value_type;
83 Marker2() : boost::detail::identifier<
size_type,Marker2>( 0 ) {}
84 explicit Marker2( value_type v ) : boost::detail::identifier<
size_type,Marker2>( v ) {}
90 bool isOn()
const {
return value() != 0; }
91 bool isOff()
const {
return value() == 0; }
95 friend class boost::serialization::access;
99 template<
class Archive>
100 void save( Archive & ar,
const unsigned int version )
const
106 template<
class Archive>
107 void load( Archive & ar,
const unsigned int version )
114 BOOST_SERIALIZATION_SPLIT_MEMBER()
117 class Marker3 :
public boost::detail::identifier< size_type, Marker3 >
120 typedef boost::detail::identifier< size_type, Marker3 >::value_type value_type;
121 Marker3() : boost::detail::identifier<
size_type,Marker3>( 0 ) {}
122 explicit Marker3( value_type v ) : boost::detail::identifier<
size_type,Marker3>( v ) {}
128 bool isOn()
const {
return value() != 0; }
129 bool isOff()
const {
return value() == 0; }
133 friend class boost::serialization::access;
137 template<
class Archive>
138 void save( Archive & ar,
const unsigned int version )
const
144 template<
class Archive>
145 void load( Archive & ar,
const unsigned int version )
152 BOOST_SERIALIZATION_SPLIT_MEMBER()
160 struct by_marker2 {};
161 struct by_marker3 {};
162 struct by_interprocessdomain {};
163 struct by_location {};
165 struct by_element {};
167 struct by_ghostcell {};
size_t size_type
Indices (starting from 0)
Definition: feelcore/feel.hpp:319
Elements & operator=(Elements const &e)
Definition: elements.hpp:335