10 #include <gtest/gtest.h> 23 ptr1.
reset(
new int());
34 EXPECT_FALSE(*ptr1 == *ptr2);
42 EXPECT_FALSE(*ptr1 == *ptr2);
53 std::vector<str2d_ptr> v;
54 for (
int i = 0; i < 10; i++)
56 v.push_back(str2d_ptr(
new str2d_ptr::value_type));
85 EXPECT_FALSE(*ptr1 == *ptr2);
93 EXPECT_FALSE(*ptr1 == *ptr2);
104 std::vector<str2d_ptr> v;
105 for (
int i = 0; i < 10; i++)
107 v.push_back(str2d_ptr(
new str2d_ptr::value_type));
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
internal::generic_copier_ptr< T, internal::CopyCloner< T > > poly_ptr
Smart pointer for polymorphic classes with a clone() method.
double x() const
Common members of all points & poses classes.
TEST(copy_ptr, SimpleOps)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void x_incr(const double v)
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
internal::generic_copier_ptr< T, internal::CopyStatic< T > > copy_ptr
Smart pointer for non-polymorphic classes.
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)
void reset(T *ptr=nullptr)