Porytiles
Loading...
Searching...
No Matches
porytiles::MetatileAttributeInferenceResult Struct Reference

The result of an inference run. More...

#include <metatile_attribute_inference.hpp>

Collaboration diagram for porytiles::MetatileAttributeInferenceResult:
[legend]

Public Attributes

AttributeInferenceStatus status {AttributeInferenceStatus::not_provided}
 
std::vector< MetatileAttributeCandidateSetcandidates
 
std::string error_message
 
InferredAttributeDeclaration declaration
 
std::vector< std::string > unrecognized_defines
 

Detailed Description

The result of an inference run.

candidates is populated only when status is valid; a project with both bare and FRLG mask defines yields two sets (bare defines first). error_message carries the actionable diagnostic when status is invalid. declaration is the declared element width and the declaration it was read from; it is populated regardless of status, since the struct declaration is a project fact independent of whether a mask layout could be inferred. unrecognized_defines holds the METATILE_ATTR_ prefixed defines whose suffix is one inference does not read, in the order the scan supplied them. It is populated regardless of status as well: a dropped define may be exactly why a layout came out the way it did, so the caller reports it even on a run that fails for an unrelated reason.

Definition at line 214 of file metatile_attribute_inference.hpp.

Member Data Documentation

◆ candidates

std::vector<MetatileAttributeCandidateSet> porytiles::MetatileAttributeInferenceResult::candidates

Definition at line 216 of file metatile_attribute_inference.hpp.

◆ declaration

InferredAttributeDeclaration porytiles::MetatileAttributeInferenceResult::declaration

Definition at line 218 of file metatile_attribute_inference.hpp.

◆ error_message

std::string porytiles::MetatileAttributeInferenceResult::error_message

Definition at line 217 of file metatile_attribute_inference.hpp.

◆ status

AttributeInferenceStatus porytiles::MetatileAttributeInferenceResult::status {AttributeInferenceStatus::not_provided}

Definition at line 215 of file metatile_attribute_inference.hpp.

◆ unrecognized_defines

std::vector<std::string> porytiles::MetatileAttributeInferenceResult::unrecognized_defines

Definition at line 219 of file metatile_attribute_inference.hpp.


The documentation for this struct was generated from the following file: