Files
revng-revng/include/revng/Model/Segment.h
Filippo Cremonese 74217b4fe5 Generate C++ model from YAML definition
Model classes are now described by a YAML document, which is used to
generate C++ headers containing classes and all the boilerplate
required for YAML serialization/deserialization, usage in
SortedVectors, etc. See the README in include/revng/Model for more
info.
2022-01-13 14:34:11 +01:00

54 lines
1.1 KiB
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/Model/Identifier.h"
#include "revng/Model/VerifyHelper.h"
#include "revng/Support/MetaAddress.h"
/* TUPLE-TREE-YAML
name: Segment
type: struct
fields:
- name: StartAddress
type: MetaAddress
- name: EndAddress
type: MetaAddress
- name: StartOffset
type: uint64_t
- name: EndOffset
type: uint64_t
- name: IsReadable
type: bool
- name: IsWriteable
type: bool
- name: IsExecutable
type: bool
- name: CustomName
type: Identifier
optional: true
key:
- StartAddress
- EndAddress
TUPLE-TREE-YAML */
#include "revng/Model/Generated/Early/Segment.h"
class model::Segment : public model::generated::Segment {
public:
using generated::Segment::Segment;
public:
Identifier name() const;
public:
bool verify() const debug_function;
bool verify(bool Assert) const debug_function;
bool verify(VerifyHelper &VH) const;
void dump() const debug_function;
};
#include "revng/Model/Generated/Late/Segment.h"