20 lines
461 B
C++
20 lines
461 B
C++
|
#include <elna/source/types.hpp>
|
||
|
|
||
|
namespace elna::source
|
||
|
{
|
||
|
type::type(const std::size_t byte_size)
|
||
|
: byte_size(byte_size)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
primitive_type::primitive_type(const std::string& type_name, const std::size_t byte_size)
|
||
|
: type(byte_size), type_name(type_name)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
pointer_type::pointer_type(std::shared_ptr<const type> base_type, const std::size_t byte_size)
|
||
|
: type(byte_size), base_type(base_type)
|
||
|
{
|
||
|
}
|
||
|
}
|