ProducedMaterials

Git Source

State Variables

_tableId

ResourceId constant _tableId = ResourceId.wrap(0x7462000000000000000000000000000050726f64756365644d6174657269616c);

_fieldLayout

FieldLayout constant _fieldLayout = FieldLayout.wrap(0x0000000100000000000000000000000000000000000000000000000000000000);

_keySchema

Schema constant _keySchema = Schema.wrap(0x002001005f000000000000000000000000000000000000000000000000000000);

_valueSchema

Schema constant _valueSchema = Schema.wrap(0x00000001af000000000000000000000000000000000000000000000000000000);

Functions

getKeyNames

Get the table's key field names.

function getKeyNames() internal pure returns (string[] memory keyNames);

Returns

NameTypeDescription
keyNamesstring[]An array of strings with the names of key fields.

getFieldNames

Get the table's value field names.

function getFieldNames() internal pure returns (string[] memory fieldNames);

Returns

NameTypeDescription
fieldNamesstring[]An array of strings with the names of value fields.

register

Register the table with its config.

function register() internal;

_register

Register the table with its config.

function _register() internal;

getValue

Get value.

function getValue(bytes32 id) internal view returns (bytes14[] memory value);

_getValue

Get value.

function _getValue(bytes32 id) internal view returns (bytes14[] memory value);

get

Get value.

function get(bytes32 id) internal view returns (bytes14[] memory value);

_get

Get value.

function _get(bytes32 id) internal view returns (bytes14[] memory value);

setValue

Set value.

function setValue(bytes32 id, bytes14[] memory value) internal;

_setValue

Set value.

function _setValue(bytes32 id, bytes14[] memory value) internal;

set

Set value.

function set(bytes32 id, bytes14[] memory value) internal;

_set

Set value.

function _set(bytes32 id, bytes14[] memory value) internal;

lengthValue

Get the length of value.

function lengthValue(bytes32 id) internal view returns (uint256);

_lengthValue

Get the length of value.

function _lengthValue(bytes32 id) internal view returns (uint256);

length

Get the length of value.

function length(bytes32 id) internal view returns (uint256);

_length

Get the length of value.

function _length(bytes32 id) internal view returns (uint256);

getItemValue

Get an item of value.

Reverts with Store_IndexOutOfBounds if _index is out of bounds for the array.

function getItemValue(bytes32 id, uint256 _index) internal view returns (bytes14);

_getItemValue

Get an item of value.

Reverts with Store_IndexOutOfBounds if _index is out of bounds for the array.

function _getItemValue(bytes32 id, uint256 _index) internal view returns (bytes14);

getItem

Get an item of value.

Reverts with Store_IndexOutOfBounds if _index is out of bounds for the array.

function getItem(bytes32 id, uint256 _index) internal view returns (bytes14);

_getItem

Get an item of value.

Reverts with Store_IndexOutOfBounds if _index is out of bounds for the array.

function _getItem(bytes32 id, uint256 _index) internal view returns (bytes14);

pushValue

Push an element to value.

function pushValue(bytes32 id, bytes14 _element) internal;

_pushValue

Push an element to value.

function _pushValue(bytes32 id, bytes14 _element) internal;

push

Push an element to value.

function push(bytes32 id, bytes14 _element) internal;

_push

Push an element to value.

function _push(bytes32 id, bytes14 _element) internal;

popValue

Pop an element from value.

function popValue(bytes32 id) internal;

_popValue

Pop an element from value.

function _popValue(bytes32 id) internal;

pop

Pop an element from value.

function pop(bytes32 id) internal;

_pop

Pop an element from value.

function _pop(bytes32 id) internal;

updateValue

Update an element of value at _index.

function updateValue(bytes32 id, uint256 _index, bytes14 _element) internal;

_updateValue

Update an element of value at _index.

function _updateValue(bytes32 id, uint256 _index, bytes14 _element) internal;

update

Update an element of value at _index.

function update(bytes32 id, uint256 _index, bytes14 _element) internal;

_update

Update an element of value at _index.

function _update(bytes32 id, uint256 _index, bytes14 _element) internal;

deleteRecord

Delete all data for given keys.

function deleteRecord(bytes32 id) internal;

_deleteRecord

Delete all data for given keys.

function _deleteRecord(bytes32 id) internal;

encodeLengths

Tightly pack dynamic data lengths using this table's schema.

function encodeLengths(bytes14[] memory value) internal pure returns (EncodedLengths _encodedLengths);

Returns

NameTypeDescription
_encodedLengthsEncodedLengthsThe lengths of the dynamic fields (packed into a single bytes32 value).

encodeDynamic

Tightly pack dynamic (variable length) data using this table's schema.

function encodeDynamic(bytes14[] memory value) internal pure returns (bytes memory);

Returns

NameTypeDescription
<none>bytesThe dynamic data, encoded into a sequence of bytes.

encode

Encode all of a record's fields.

function encode(bytes14[] memory value) internal pure returns (bytes memory, EncodedLengths, bytes memory);

Returns

NameTypeDescription
<none>bytesThe static (fixed length) data, encoded into a sequence of bytes.
<none>EncodedLengthsThe lengths of the dynamic fields (packed into a single bytes32 value).
<none>bytesThe dynamic (variable length) data, encoded into a sequence of bytes.

encodeKeyTuple

Encode keys as a bytes32 array using this table's field layout.

function encodeKeyTuple(bytes32 id) internal pure returns (bytes32[] memory);