20 #ifndef ORO_DATASOURCE_FIXTURE_HPP_ 21 #define ORO_DATASOURCE_FIXTURE_HPP_ 23 #include <rtt-config.h> 27 #include <boost/array.hpp> 28 #include <boost/serialization/vector.hpp> 32 using namespace boost;
43 AType(
bool ini) {
if (ini) init();
else clear(); }
67 boost::array<int, 5>
ai;
88 BType(
bool ini) {
if (ini) init();
else clear(); }
92 for(
int i = 0; i<10; ++i) c[i] = 0;
94 for(
int i = 0; i<5; ++i) ai[i] = 3;
96 for(
int i = 0; i<10; ++i) vd[i] = 5;
102 for(
int i = 0; i<10; ++i) c[i] = 0;
103 for(
int i = 0; i<5; ++i) ai[i] = 0;
104 for(
int i = 0; i<10; ++i) vd[i] = 0;
129 CType(
bool ini) {
if (ini) init();
else clear(); }
158 namespace serialization {
160 template<
class Archive>
163 ar & make_nvp(
"a", g.
a);
164 ar & make_nvp(
"b", g.
b);
165 ar & make_nvp(
"c", g.
c );
166 ar & make_nvp(
"ai", g.
ai );
167 ar & make_nvp(
"vd", g.
vd );
170 template<
class Archive>
173 ar & make_nvp(
"a", g.
a);
174 ar & make_nvp(
"b", g.
b);
175 ar & make_nvp(
"c", make_array(g.
c,10) );
176 ar & make_nvp(
"ai", make_array(g.
ai,5) );
177 ar & make_nvp(
"vd", make_array(g.
vd,10) );
182 template<
class Archive>
185 ar & make_nvp(
"a", g.
a);
186 ar & make_nvp(
"b", g.
b);
187 ar & make_nvp(
"av", g.
av );
188 ar & make_nvp(
"bv", g.
bv );
201 :
public DataSource<T>
212 typedef boost::intrusive_ptr<UpdatedReferenceDataSource<T> >
shared_ptr;
virtual UpdatedReferenceDataSource< T > * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
boost::intrusive_ptr< UpdatedReferenceDataSource< T > > shared_ptr
~UpdatedReferenceDataSource()
boost::call_traits< value_t >::reference reference_t
DataSource< T >::result_t value() const
virtual UpdatedReferenceDataSource< T > * clone() const
std::vector< BType > BTypes
std::vector< AType > ATypes
DataSource< T >::value_t mcopy
static bool operator==(const ConnPolicy &, const ConnPolicy &)
std::ostream & operator<<(std::ostream &os, const BufferPolicy &bp)
std::vector< CType > CTypes
boost::array< int, 5 > ai
DataSource< T >::const_reference_t rvalue() const
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
UpdatedReferenceDataSource(typename AssignableDataSource< T >::reference_t ref)
void serialize(Archive &ar, CType &g, const unsigned int version)
details::GetConstRef< T >::type const_reference_t
AssignableDataSource< T >::reference_t mref