Skip to content

jamesyoung/ASCS-DLL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapping(bytes32 => uint) store; bytes32[] attributes uint attrSortIndex

constructor(bytes32[] _attributes, uint _attrSortIndex)

getAttribute(uint curr, bytes32 attrName) returns (uint)

setAttribute(uint curr, bytes32 attrName, uint attrValue)

insert(uint prev, uint curr, uint[] attrValues)

remove(uint curr) Replaces prev and next pointers with curr, and modifies adjacent nodes accordingly

reset(uint curr) Resets all attribute values to default (zero)

validate(uint prev, uint curr, uint sortAttrValue)

Foresight Notes: Look into abstracting out sorting through an inherited (non-sorted) DLL contract

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%