{"id":22654228,"url":"https://github.com/stevencyb/securedlinkedlist","last_synced_at":"2026-04-02T02:46:41.766Z","repository":{"id":131259296,"uuid":"211895281","full_name":"StevenCyb/SecuredLinkedList","owner":"StevenCyb","description":"A Linked List implementation for Arduino, ESP 32 / 8266.","archived":false,"fork":false,"pushed_at":"2024-05-14T08:18:15.000Z","size":513,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T07:43:03.938Z","etag":null,"topics":["arduino","esp32","esp8266","library","linked-list","linkedlist","thread-safe"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StevenCyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-30T15:42:24.000Z","updated_at":"2024-10-09T14:29:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"487497fe-500d-4e13-8d34-759c20b7c575","html_url":"https://github.com/StevenCyb/SecuredLinkedList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2FSecuredLinkedList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2FSecuredLinkedList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2FSecuredLinkedList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2FSecuredLinkedList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenCyb","download_url":"https://codeload.github.com/StevenCyb/SecuredLinkedList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243394446,"owners_count":20283962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","esp32","esp8266","library","linked-list","linkedlist","thread-safe"],"created_at":"2024-12-09T09:35:55.303Z","updated_at":"2025-12-28T15:14:41.648Z","avatar_url":"https://github.com/StevenCyb.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secured Linked List\nThe `SecuredLinkedList` is a library that provides the functionality of a linked list (like in Java or C#). Furthermore, the implementation is thread-safe, see demo `two_core_demo.ino`.\nThe following figure illustrates the available functions. A detailed description of the functions can be found below.\n\n\u003cimg src=\".media/operations_illustration.png\" alter=\"Operations\" width=\"500\"\u003e\n\n# Functions\n- [Secured Linked List](#secured-linked-list)\n- [Functions](#functions)\n  - [SecuredLinkedList()](#securedlinkedlist)\n  - [void push(T t)](#void-pusht-t)\n  - [T pop()](#t-pop)\n  - [void add(unsigned int index, T t)](#void-addunsigned-int-index-t-t)\n  - [void remove(unsigned int index)](#void-removeunsigned-int-index)\n  - [T get(unsigned int index)](#t-getunsigned-int-index)\n  - [void unshift(T t)](#void-unshiftt-t)\n  - [T shift()](#t-shift)\n  - [unsigned int size()](#unsigned-int-size)\n  - [void clear()](#void-clear)\n\n## SecuredLinkedList()\nThe `SecuredLinkedList` can be instantiated as follows.\n```\nSecuredLinkedList\u003cint\u003e listA = SecuredLinkedList\u003cint\u003e();\nSecuredLinkedList\u003cint\u003e *listB = new SecuredLinkedList\u003cint\u003e();\n```\n\n## void push(T t)\nAdds an element to the end of the list.\n```\nint t = 4;\nlistA.push(t);\nlistB-\u003epush(t);\n```\n\n## T pop()\nTakes the last element from the list.\nThe list no longer contains the element.\n```\nSerial.println(listA.pop());\nSerial.println(listB-\u003epop());\n```\n\n## void add(unsigned int index, T t)\nInserts an element into the according index.\n```\nint t = 2;\nlistA.push(3, t);\nlistB-\u003epush(3, t);\n```\n\n## void remove(unsigned int index)\nRemove an element on index.\n```\nlistA.remove(3);\nlistB-\u003eremove(3);\n```\n\n## T get(unsigned int index)\nFetches the element from the according index.\nThe list still contains the element.\n```\nSerial.println(listA.get(2));\nSerial.println(listB-\u003eget()2);\n```\n\n## void unshift(T t)\nAdds an element to the beginning of the list.\n```\nint t = 3;\nlistA.unshift(t);\nlistB-\u003eunshift(t);\n```\n\n## T shift()\nTakes the first element from the list.\nThe list no longer contains the element.\n```\nSerial.println(listA.shift());\nSerial.println(listB-\u003eshift());\n```\n\n## unsigned int size()\nReturns the number of elements.\n```\nSerial.println(listA.size());\nSerial.println(listB-\u003esize());\n```\n\n## void clear()\nDeletes all items from the list.\n```\nlistA.clear();\nlistB-\u003eclear();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fsecuredlinkedlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevencyb%2Fsecuredlinkedlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Fsecuredlinkedlist/lists"}