Menu

DseLineString

struct DseLineString

Public Functions

DseLineString *dse_line_string_new()

Creates a new line string.

Return

Returns a line string that must be freed.

See

dse_line_string_free()

void dse_line_string_free(DseLineString *line_string)

Frees a line string instance.

Parameters
  • line_string:

void dse_line_string_reset(DseLineString *line_string)

Resets a line string so that it can be reused.

Parameters
  • line_string:

void dse_line_string_reserve(DseLineString *line_string, cass_uint32_t num_points)

Reserves enough memory to contain the provided number of points. This can be use to reduce memory allocations, but it is not required.

Parameters
  • line_string:

  • num_points:

CassError dse_line_string_add_point(DseLineString *line_string, cass_double_t x, cass_double_t y)

Adds a point to the line string.

Return

CASS_OK if successful, otherwise an error occurred.

Parameters
  • line_string:

  • x:

  • y:

CassError dse_line_string_finish(DseLineString *line_string)

Finishes the contruction of a line string.

Return

CASS_OK if successful, otherwise an error occurred.

Parameters
  • line_string: