65 std::cout << std::endl;
66 std::cout <<
"Printing array initialized = " <<
myarray->
toString() << std::endl;
85 std::vector<std::size_t>
pos;
101 myarray1->
insert(mypoint, pos);
103 CPPUNIT_ASSERT(p1 = mypoint);
109 myarray1->
insert(mypolygon, pos);
111 CPPUNIT_ASSERT(pol1 = mypolygon);
113 std::cout <<
"Printing array with point and polygon " << myarray1->
toString() << std::endl;
148 CPPUNIT_ASSERT_MESSAGE(
"It is allowed to declare 'te::dt::Array b(3,te::dt::INT32_TYPE)', but it does not allow insert elements of type te::dt::INT32_TYPE", 1 == 2);
162 std::cout << std::endl;
176 std::cout << std::endl;
180 std::vector<std::size_t> npos;
189 CPPUNIT_ASSERT(p5 = newpoint);
192 std::cout << std::endl;
247 std::cout << std::endl;
248 std::cout <<
"Cloned Array= " << myclone->
toString() << std::endl;
void push_back(Curve *ring)
It adds the curve to the curve polygon.
void tcClone()
Test Case: It creates a new clone of the array.
AbstractData * clone() const
It creates a new clone of the array.
int getElementsTypeCode()
Returns the data type of the elements of the array.
void tcGetElementsTypeCode()
Test Case: Returns the data type of the elements of the array.
CPPUNIT_TEST_SUITE_REGISTRATION(TsArray)
void tcOperatorBraket()
Test Case: Access data in i index.
A LinearRing is a LineString that is both closed and simple.
void tcGetTypeCode()
Test Case: Copy Constructor.
virtual std::string toString() const =0
It returns the data value in a string notation.
The type for variable-length multidimensional arrays.
const double & getY() const
It returns the Point y-coordinate value.
A point with x and y coordinate values.
void setPoint(std::size_t i, const double &x, const double &y)
It sets the value of the specified point.
std::size_t getDimension() const
Returns the numbe of dimensions of the array.
Test suite for the Array class.
std::string toString() const
Return a string with all the data inside array.
A base class for values that can be retrieved from the data access module.
void tcGetDimension()
Test Case: Returns the number of dimensions of the array.
void tcGetDimensionSize()
Test Case: Gets the number of elements in the i-th dimension.
void tcInsert()
Test Case: Inserts data into specified position.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
te::dt::AbstractData * getData(const std::vector< std::size_t > &i)
Returns data from specified position.
void tcToString()
Test Case: It returns an string representation of Array.
std::vector< std::size_t > pos
int getTypeCode() const
Returns the type code for array data: ARRAY_TYPE.
void tcArray()
Test Case: Multi-dimensional array constructor.
std::size_t getDimensionSize(std::size_t i) const
Gets the number of elements in the i-th dimension.
void tcGetData()
Test Case: Returns data from specified position.
Test suite for the Array Class.
void insert(te::dt::AbstractData *data, const std::vector< std::size_t > &pos)
Inserts data into specified position.
const double & getX() const
It returns the Point x-coordinate value.
virtual bool equals(const Geometry *const rhs, const bool exact=false) const _NOEXCEPT_OP(false)
It returns true if the geometry object is spatially equal to rhs geometry.