Changeset b57a3ee in mainline for uspace/lib/cpp/include/__bits/adt


Ignore:
Timestamp:
2018-07-05T21:41:24Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c735afb
Parents:
4f461384
git-author:
Dzejrou <dzejrou@…> (2018-06-25 16:58:08)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: refactored the library layout, everything from the impl directory was moved to the bits directory for the sake of consistency, updated copyright notices and include guards

Location:
uspace/lib/cpp/include/__bits/adt
Files:
24 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/adt/array.hpp

    r4f461384 rb57a3ee  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef LIBCPP_ARRAY
    30 #define LIBCPP_ARRAY
     29#ifndef LIBCPP_BITS_ADT_ARRAY
     30#define LIBCPP_BITS_ADT_ARRAY
    3131
    3232#include <iterator>
  • uspace/lib/cpp/include/__bits/adt/bitset.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITSET
    30 #define LIBCPP_BITSET
     29#ifndef LIBCPP_BITS_ADT_BITSET
     30#define LIBCPP_BITS_ADT_BITSET
    3131
    3232#include <iosfwd>
  • uspace/lib/cpp/include/__bits/adt/deque.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_DEQUE
    30 #define LIBCPP_DEQUE
    31 
     29#ifndef LIBCPP_BITS_ADT_DEQUE
     30#define LIBCPP_BITS_ADT_DEQUE
     31
     32#include <__bits/insert_iterator.hpp>
    3233#include <algorithm>
    3334#include <initializer_list>
    34 #include <__bits/insert_iterator.hpp>
    3535#include <iterator>
    3636#include <memory>
  • uspace/lib/cpp/include/__bits/adt/forward_list.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_FORWARD_LIST
    30 #define LIBCPP_FORWARD_LIST
     29#ifndef LIBCPP_BITS_ADT_FORWARD_LIST
     30#define LIBCPP_BITS_ADT_FORWARD_LIST
    3131
    3232#error "<forward_list> is not implemented"
  • uspace/lib/cpp/include/__bits/adt/hash_table.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_HASH_TABLE
    30 #define LIBCPP_BITS_HASH_TABLE
    31 
     29#ifndef LIBCPP_BITS_ADT_HASH_TABLE
     30#define LIBCPP_BITS_ADT_HASH_TABLE
     31
     32#include <__bits/adt/list_node.hpp>
     33#include <__bits/adt/key_extractors.hpp>
     34#include <__bits/adt/hash_table_iterators.hpp>
     35#include <__bits/adt/hash_table_policies.hpp>
    3236#include <cstdlib>
    33 #include <__bits/list_node.hpp>
    34 #include <__bits/key_extractors.hpp>
    35 #include <__bits/hash_table_iterators.hpp>
    36 #include <__bits/hash_table_policies.hpp>
    3737#include <iterator>
    3838#include <limits>
  • uspace/lib/cpp/include/__bits/adt/hash_table_bucket.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_HASH_TABLE_BUCKET
    30 #define LIBCPP_BITS_HASH_TABLE_BUCKET
     29#ifndef LIBCPP_BITS_ADT_HASH_TABLE_BUCKET
     30#define LIBCPP_BITS_ADT_HASH_TABLE_BUCKET
    3131
    32 #include <__bits/list_node.hpp>
     32#include <__bits/adt/list_node.hpp>
    3333
    3434namespace std::aux
  • uspace/lib/cpp/include/__bits/adt/hash_table_iterators.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_HASH_TABLE_ITERATORS
    30 #define LIBCPP_BITS_HASH_TABLE_ITERATORS
    31 
    32 #include <__bits/iterator.hpp>
    33 #include <__bits/list_node.hpp>
    34 #include <__bits/hash_table_bucket.hpp>
     29#ifndef LIBCPP_BITS_ADT_HASH_TABLE_ITERATORS
     30#define LIBCPP_BITS_ADT_HASH_TABLE_ITERATORS
     31
     32#include <__bits/adt/list_node.hpp>
     33#include <__bits/adt/hash_table_bucket.hpp>
     34#include <__bits/iterator_helpers.hpp>
    3535#include <iterator>
    3636
  • uspace/lib/cpp/include/__bits/adt/hash_table_policies.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_HASH_TABLE_POLICIES
    30 #define LIBCPP_BITS_HASH_TABLE_POLICIES
     29#ifndef LIBCPP_BITS_ADT_HASH_TABLE_POLICIES
     30#define LIBCPP_BITS_ADT_HASH_TABLE_POLICIES
    3131
    3232#include <tuple>
  • uspace/lib/cpp/include/__bits/adt/initializer_list.hpp

    r4f461384 rb57a3ee  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef LIBCPP_INITIALIZER_LIST
    30 #define LIBCPP_INITIALIZER_LIST
     29#ifndef LIBCPP_BITS_ADT_INITIALIZER_LIST
     30#define LIBCPP_BITS_ADT_INITIALIZER_LIST
    3131
    3232#include <cstdlib>
  • uspace/lib/cpp/include/__bits/adt/key_extractors.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_KEY_EXTRACTORS
    30 #define LIBCPP_BITS_KEY_EXTRACTORS
     29#ifndef LIBCPP_BITS_ADT_KEY_EXTRACTORS
     30#define LIBCPP_BITS_ADT_KEY_EXTRACTORS
    3131
    3232#include <utility>
  • uspace/lib/cpp/include/__bits/adt/list.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_LIST
    30 #define LIBCPP_LIST
    31 
     29#ifndef LIBCPP_BITS_ADT_LIST
     30#define LIBCPP_BITS_ADT_LIST
     31
     32#include <__bits/adt/list_node.hpp>
    3233#include <__bits/insert_iterator.hpp>
    33 #include <__bits/list_node.hpp>
    3434#include <cstdlib>
    3535#include <iterator>
  • uspace/lib/cpp/include/__bits/adt/list_node.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_LIST_NODE
    30 #define LIBCPP_BITS_LIST_NODE
     29#ifndef LIBCPP_BITS_ADT_LIST_NODE
     30#define LIBCPP_BITS_ADT_LIST_NODE
    3131
    3232namespace std::aux
  • uspace/lib/cpp/include/__bits/adt/map.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_MAP
    30 #define LIBCPP_MAP
    31 
     29#ifndef LIBCPP_BITS_ADT_MAP
     30#define LIBCPP_BITS_ADT_MAP
     31
     32#include <__bits/adt/rbtree.hpp>
    3233#include <functional>
    33 #include <__bits/rbtree.hpp>
    3434#include <iterator>
    3535#include <memory>
  • uspace/lib/cpp/include/__bits/adt/queue.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_QUEUE
    30 #define LIBCPP_QUEUE
     29#ifndef LIBCPP_BITS_ADT_QUEUE
     30#define LIBCPP_BITS_ADT_QUEUE
    3131
    3232#include <algorithm>
  • uspace/lib/cpp/include/__bits/adt/rbtree.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_RBTREE
    30 #define LIBCPP_BITS_RBTREE
    31 
    32 #include <__bits/key_extractors.hpp>
    33 #include <__bits/rbtree_iterators.hpp>
    34 #include <__bits/rbtree_node.hpp>
    35 #include <__bits/rbtree_policies.hpp>
     29#ifndef LIBCPP_BITS_ADT_RBTREE
     30#define LIBCPP_BITS_ADT_RBTREE
     31
     32#include <__bits/adt/key_extractors.hpp>
     33#include <__bits/adt/rbtree_iterators.hpp>
     34#include <__bits/adt/rbtree_node.hpp>
     35#include <__bits/adt/rbtree_policies.hpp>
    3636
    3737namespace std::aux
  • uspace/lib/cpp/include/__bits/adt/rbtree_iterators.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_RBTREE_ITERATORS
    30 #define LIBCPP_BITS_RBTREE_ITERATORS
    31 
    32 #include <__bits/iterator.hpp>
    33 #include <__bits/rbtree_node.hpp>
     29#ifndef LIBCPP_BITS_ADT_RBTREE_ITERATORS
     30#define LIBCPP_BITS_ADT_RBTREE_ITERATORS
     31
     32#include <__bits/adt/rbtree_node.hpp>
     33#include <__bits/iterator_helpers.hpp>
    3434#include <iterator>
    3535
  • uspace/lib/cpp/include/__bits/adt/rbtree_node.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_RBTREE_NODE
    30 #define LIBCPP_BITS_RBTREE_NODE
     29#ifndef LIBCPP_BITS_ADT_RBTREE_NODE
     30#define LIBCPP_BITS_ADT_RBTREE_NODE
    3131
    3232#include <cassert>
  • uspace/lib/cpp/include/__bits/adt/rbtree_policies.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_BITS_RBTREE_POLICIES
    30 #define LIBCPP_BITS_RBTREE_POLICIES
    31 
    32 #include <__bits/rbtree_node.hpp>
     29#ifndef LIBCPP_BITS_ADT_RBTREE_POLICIES
     30#define LIBCPP_BITS_ADT_RBTREE_POLICIES
     31
     32#include <__bits/adt/rbtree_node.hpp>
    3333#include <utility>
    3434
  • uspace/lib/cpp/include/__bits/adt/set.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_SET
    30 #define LIBCPP_SET
    31 
     29#ifndef LIBCPP_BITS_ADT_SET
     30#define LIBCPP_BITS_ADT_SET
     31
     32#include <__bits/adt/rbtree.hpp>
    3233#include <functional>
    33 #include <__bits/rbtree.hpp>
    3434#include <iterator>
    3535#include <memory>
  • uspace/lib/cpp/include/__bits/adt/stack.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_STACK
    30 #define LIBCPP_STACK
     29#ifndef LIBCPP_BITS_ADT_STACK
     30#define LIBCPP_BITS_ADT_STACK
    3131
    3232#include <deque>
     
    3636namespace std
    3737{
    38 
    3938    /**
    4039     * 23.5.6.2, stack:
  • uspace/lib/cpp/include/__bits/adt/unordered_map.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_UNORDERED_MAP
    30 #define LIBCPP_UNORDERED_MAP
    31 
     29#ifndef LIBCPP_BITS_ADT_UNORDERED_MAP
     30#define LIBCPP_BITS_ADT_UNORDERED_MAP
     31
     32#include <__bits/adt/hash_table.hpp>
    3233#include <initializer_list>
    33 #include <__bits/hash_table.hpp>
    3434#include <functional>
    3535#include <memory>
  • uspace/lib/cpp/include/__bits/adt/unordered_set.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_UNORDERED_SET
    30 #define LIBCPP_UNORDERED_SET
    31 
     29#ifndef LIBCPP_BITS_ADT_UNORDERED_SET
     30#define LIBCPP_BITS_ADT_UNORDERED_SET
     31
     32#include <__bits/adt/hash_table.hpp>
    3233#include <initializer_list>
    33 #include <__bits/hash_table.hpp>
    3434#include <functional>
    3535#include <memory>
  • uspace/lib/cpp/include/__bits/adt/valarray.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_VALARRAY
    30 #define LIBCPP_VALARRAY
     29#ifndef LIBCPP_BITS_ADT_VALARRAY
     30#define LIBCPP_BITS_ADT_VALARRAY
    3131
    3232#error "<valarray> is not implemented"
  • uspace/lib/cpp/include/__bits/adt/vector.hpp

    r4f461384 rb57a3ee  
    2727 */
    2828
    29 #ifndef LIBCPP_VECTOR
    30 #define LIBCPP_VECTOR
     29#ifndef LIBCPP_BITS_ADT_VECTOR
     30#define LIBCPP_BITS_ADT_VECTOR
    3131
    3232#include <algorithm>
Note: See TracChangeset for help on using the changeset viewer.