CMake CodeFactor Codacy Badge

Data Sctructures Impelemented in C++

Linked List Class

  • getSize
  • push_back
  • push_front
  • print_list
  • search
  • deleteLast
  • deleteFirst
  • deleteIndex
  • searchReturnAddr
  • deleteValue
  • insertAfterIndex

Vector Class

  • get_capacity
  • get_index
  • push_back
  • push_front
  • pop_back
  • isFind
  • print_vector
  • getValueInIndex
  • getFirstItem
  • getLastItem
  • sizeVector
  • returnBeginAddress
  • returnLastElementAddress
  • printWithAddress
  • indexValueChange
  • insertUsingIndex
  • operator[]
  • reset_vector
  • clear_vector
  • capacity_control
  • deleteSpesificIndex

Compile

  • git submodule update --init --recursive get gtest library
  • mkdir build
  • cd build
  • cmake ..
  • make all

Run Tests

  • cd /build/tst
  • ./LinkedList_tst

Run main

  • cd /build/src
  • ./LinkedList_run

Development Environment

  • System Version: macOS 14.0 (23A344)
  • Kernel Version: Darwin 23.0.0
  • Apple clang version 15.0.0 (clang-1500.0.40.1)
  • cmake version 3.24.4
  • Google Test v1.14.0

License

This project is licensed under the terms of the MIT License

Copyright © 2023