top | up | prev | next

ConversionTableEntry Struct

Definition at line 16 of ConversionTable.hpp

Constructors

ConversionTableEntry(TypeSymbol* sourceType_, TypeSymbol* targetType_)

Member Functions

void CheckValid() const

Member Variables

TypeSymbol* sourceType
TypeSymbol* targetType

Constructor Details

ConversionTableEntry Constructor

cmajor::symbols::ConversionTableEntry::ConversionTableEntry(TypeSymbol * sourceType_, TypeSymbol * targetType_)

Definition at line 15 of ConversionTable.cpp :
15 : sourceType(sourceType_)targetType(targetType_)
16 {
20 }


Declaration at line 18 of ConversionTable.hpp


Member Function Details

CheckValid Member Function

void cmajor::symbols::ConversionTableEntry::CheckValid() const

Definition at line 26 of ConversionTable.cpp :
27 {
28     if (!sourceType || !targetType)
29     {
30         throw std::runtime_error("invalid conversion table entry: source type is null or target type is null");
31     }
32     if (!sourceType->BaseType() || !targetType->BaseType())
33     {
34         throw std::runtime_error("invalid conversion table entry: source base type is null or target base type is null");
35     }
36 }


Declaration at line 19 of ConversionTable.hpp

Calls: cmajor::symbols::TypeSymbol::BaseType

Called by: cmajor::symbols::ConversionTable::Check


top | up | prev | next