Dev Essential  1.6.3
Loading...
Searching...
No Matches
dd_predefined_datatypes.h File Reference
#include <a_util/preprocessor/detail/disable_warnings.h>
#include <ddl/dd/datamodel/datamodel_types.h>
#include <ddl/dd/dd_common_types.h>
#include <ddl/utilities/std_to_string.h>
#include <limits>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <vector>
Include dependency graph for dd_predefined_datatypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ddl::DataType< T >
 Generator template to create DataType for the plain c-types. More...
 
class  ddl::DataType< bool >
 The datatype for bool. More...
 
class  ddl::DataType< char >
 The datatype for char. More...
 
class  ddl::DataType< float >
 The datatype for float. More...
 
class  ddl::DataType< double >
 The datatype for double. More...
 
class  ddl::PredefinedDataTypes
 Predefined types of the DataDefinition. These types can be used without explicitely adding it to a dd::DataDefinition! More...
 

Namespaces

namespace  ddl
 definition of the ddl namespace
 

Macros

#define DDL_DATA_TYPE_INT(type, default_name)
 

Detailed Description

OO DataDefinition DataTypes header for template based DataType usages and the predefined types

Macro Definition Documentation

◆ DDL_DATA_TYPE_INT

#define DDL_DATA_TYPE_INT ( type,
default_name )
Value:
namespace ddl { \
template <> \
class DataType<type> : public dd::datamodel::DataType { \
public: \
DataType(const std::string& name) \
: dd::datamodel::DataType(name, \
sizeof(type) * 8, \
std::string("Predefined DataType for ") + name, \
1, \
"", \
std::to_string((std::numeric_limits<type>::min)()), \
std::to_string((std::numeric_limits<type>::max)()), \
alignof(type)) \
{ \
} \
DataType() : DataType(default_name) \
{ \
} \
}; \
} /* namespace ddl */ \
static_assert(true, "Simply to make sure a closing semicolon ';' is used for the macro")
definition of the ddl namespace
Definition codec.h:21

Expands to DataType<type> inheriting from dd::datamodel::DataType

Parameters
typeType to create the specialized template for
default_nameName to use for the type by default