7 #ifndef RETDEC_LLVMIR2HLL_IR_STRING_TYPE_H
8 #define RETDEC_LLVMIR2HLL_IR_STRING_TYPE_H
A representation of a string type.
Definition: string_type.h:27
std::size_t charSize
How large are characters in the string (in bits)?
Definition: string_type.h:48
virtual void accept(Visitor *v) override
Visitor pattern implementation.
std::map< std::size_t, ShPtr< StringType > > SizeToStringTypeMap
Mapping of sizes into StringType instances.
Definition: string_type.h:44
static ShPtr< StringType > create(std::size_t charSize)
virtual ShPtr< Value > clone() override
Returns a clone of the value.
std::size_t getCharSize() const
static SizeToStringTypeMap createdTypes
Set of already created string types with characters of the given size.
Definition: string_type.h:51
StringType(std::size_t charSize)
virtual bool isEqualTo(ShPtr< Value > otherValue) const override
Returns true if this value is equal to otherValue, false otherwise.
A base class of all types.
Definition: type.h:20
A base class of all visitors.
Definition: visitor.h:95
A base class of all types.
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.