Code Monkey home page Code Monkey logo

dreamystructures's Introduction

Dreamy Structures

This repository is now deprecated and therefore archived because it was nothing but me learning how to implement my own data structures and also early unwillingness to learn data structures from STL!


This is a small collection of custom made data structures (templates) that are easy to understand and use. Uses std::vector at its base (previously hasn't used it).

Includes:

  • DSArray - a standard array structure that allows the creation of resizable arrays of any type.
  • DSList - a list-type structure. Allows the creation of lists that can be filled with new entries or inserted/deleted from the middle of the list.
  • DSMap - a map-type structure that consists of a key-value pair of any types. Can contain different values under the same key name.
  • DSStack - a stack-type structure that allows pushing new values on top of the stack and popping them right back. Based on the DSList type and can use its functions.

Structures are templates and support any value types (even pointers, but they need to be manually deleted). Usage examples can be found in the UsageExample.cpp file that isn't required for the structures to work.

Building

In order to build a project with Dreamy Structures, the source files need to be included into the project (preferably in the headers folder) and need to have DataStructures.h file included into source files.

dreamystructures's People

Contributors

dreamycecil avatar

Watchers

 avatar

dreamystructures's Issues

Add linkable lists with nodes.

Linkable lists will contain pointers to nodes in other classes, and these nodes will have the pointer to that class as well.
On the other hand these classes can know what list and class they belong to through that node.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.