@@ -21,7 +21,7 @@ | |||||
#ifndef __utl_impl_crtp_h__ | #ifndef __utl_impl_crtp_h__ | ||||
#define __utl_impl_crtp_h__ | #define __utl_impl_crtp_h__ | ||||
#include <utl/impl/version.h> | |||||
#include <utl/impl/impl.h> | |||||
/*! | /*! | ||||
* \defgroup crtp CRTP idiom support header | * \defgroup crtp CRTP idiom support header |
@@ -21,8 +21,6 @@ | |||||
#ifndef __utl_impl_concepts_h__ | #ifndef __utl_impl_concepts_h__ | ||||
#define __utl_impl_concepts_h__ | #define __utl_impl_concepts_h__ | ||||
#include <utl/impl/version.h> | |||||
/*! | /*! | ||||
* utl inner concept preprecessor flag | * utl inner concept preprecessor flag | ||||
* \defgroup crtp | * \defgroup crtp | ||||
@@ -0,0 +1,34 @@ | |||||
/*! | |||||
* \file /utl/impl/impl.h | |||||
* \brief Implementation detail main header | |||||
* | |||||
* Copyright (C) 2018 Christos Choutouridis | |||||
* | |||||
* This program is free software: you can redistribute it and/or modify | |||||
* it under the terms of the GNU Lesser General Public License as | |||||
* published by the Free Software Foundation, either version 3 | |||||
* of the License, or (at your option) any later version. | |||||
* | |||||
* This program is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU Lesser General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU Lesser General Public License | |||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||||
* | |||||
*/ | |||||
#ifndef __utl_impl_impl_h__ | |||||
#define __utl_impl_impl_h__ | |||||
// Include implementation details once | |||||
#include <utl/impl/version.h> | |||||
#include <utl/impl/concepts.h> | |||||
#include <utl/impl/types.h> | |||||
// STL dependency | |||||
#include <type_traits> | |||||
#endif /* __utl_impl_impl_h__ */ |
@@ -0,0 +1,32 @@ | |||||
/*! | |||||
* \file /utl/impl/types.h | |||||
* \brief Basic type alias support | |||||
* | |||||
* Copyright (C) 2018 Christos Choutouridis | |||||
* | |||||
* This program is free software: you can redistribute it and/or modify | |||||
* it under the terms of the GNU Lesser General Public License as | |||||
* published by the Free Software Foundation, either version 3 | |||||
* of the License, or (at your option) any later version. | |||||
* | |||||
* This program is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU Lesser General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU Lesser General Public License | |||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||||
* | |||||
*/ | |||||
#ifndef __utl_impl_types_h__ | |||||
#define __utl_impl_types_h__ | |||||
#include <stdint.h> | |||||
typedef uint8_t byte_t; /*!< 8 bits wide */ | |||||
typedef uint16_t word_t; /*!< 16 bits wide */ | |||||
typedef uint32_t dword_t; /*!< 32 bits wide */ | |||||
#endif /* __utl_impl_types_h__ */ |
@@ -18,8 +18,8 @@ | |||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
* | * | ||||
*/ | */ | ||||
#ifndef __utl_impl_crtp_h__ | |||||
#define __utl_impl_crtp_h__ | |||||
#ifndef __utl_impl_version_h__ | |||||
#define __utl_impl_version_h__ | |||||
//!\defgroup version version | //!\defgroup version version | ||||
//! Definitions of the utl version | //! Definitions of the utl version | ||||
@@ -37,4 +37,4 @@ | |||||
#error "Sorry. uTL requires C++11" | #error "Sorry. uTL requires C++11" | ||||
#endif | #endif | ||||
#endif /* __utl_impl_crtp_h__ */ | |||||
#endif /* __utl_impl_version_h__ */ |