CeedVector

int CeedVectorHasValidArray(CeedVector vec, bool *has_valid_array)

Check for valid data in a CeedVector.

Backend Developer Functions

Parameters
  • vec – CeedVector to check validity

  • has_valid_array[out] Variable to store validity

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorHasBorrowedArrayOfType(CeedVector vec, CeedMemType mem_type, bool *has_borrowed_array_of_type)

Check for borrowed array of a specific CeedMemType in a CeedVector.

Backend Developer Functions

Parameters
  • vec – CeedVector to check

  • mem_type – Memory type to check

  • has_borrowed_array_of_type[out] Variable to store result

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorGetState(CeedVector vec, uint64_t *state)

Get the state of a CeedVector.

Backend Developer Functions

Parameters
  • vec – CeedVector to retrieve state

  • state[out] Variable to store state

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorAddReference(CeedVector vec)

Add a reference to a CeedVector.

Backend Developer Functions

Parameters
  • vec[out] CeedVector to increment reference counter

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorGetData(CeedVector vec, void *data)

Get the backend data of a CeedVector.

Backend Developer Functions

Parameters
  • vec – CeedVector to retrieve state

  • data[out] Variable to store data

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorSetData(CeedVector vec, void *data)

Set the backend data of a CeedVector.

Backend Developer Functions

Parameters
  • vec[out] CeedVector to retrieve state

  • data – Data to set

Returns

An error code: 0 - success, otherwise - failure

int CeedVectorReference(CeedVector vec)

Increment the reference counter for a CeedVector.

Backend Developer Functions

Parameters
  • vec – CeedVector to increment the reference counter

Returns

An error code: 0 - success, otherwise - failure