Skip to content

Object

class Object

Represents an object.

DEFINITION
class Object;

constructor Object

DEFINITION
Object ( ObjectFile * owner,
const Token & name,
const std::shared_ptr< StructuredValue > & definition );
PARAMETERDESCRIPTION
owner
name
definition

constructor Object

DEFINITION
Object ( ObjectFile * owner,
const MemoryMap::Section * section,
Visibility  visibility,
bool  default_only,
const Token & name );
PARAMETERDESCRIPTION
owner
section
visibility
default_only
name

method emptyconst

DEFINITION
bool  empty ( ) const;
RETURNSDESCRIPTION
bool

method evaluate_innervirtual

DEFINITION
virtual void  evaluate_inner ( EvaluationContext & context );
PARAMETERDESCRIPTION
context

method has_addressconst

DEFINITION
bool  has_address ( ) const;
RETURNSDESCRIPTION
bool

method is_reservationconst

DEFINITION
bool  is_reservation ( ) const;
RETURNSDESCRIPTION
bool

method less_pointersstatic

DEFINITION
static bool  less_pointers ( const Object * a,
const Object * b );
PARAMETERDESCRIPTION
a
b
RETURNSDESCRIPTION
bool

method operator<const

DEFINITION
bool  operator< ( const Object & other ) const;
PARAMETERDESCRIPTION
other
RETURNSDESCRIPTION
bool

method reservationconst

DEFINITION
std::optional< uint64_t >  reservation ( ) const;
RETURNSDESCRIPTION
std::optional< uint64_t >

method serializeconst

DEFINITION
void  serialize ( std::ostream & stream ) const;
PARAMETERDESCRIPTION
stream

method size_rangeconst

DEFINITION
SizeRange  size_range ( ) const;
RETURNSDESCRIPTION
SizeRange

method uses

DEFINITION
void  uses ( Symbol  name );
PARAMETERDESCRIPTION
name

member address

DEFINITION
std::optional< Address >  address;

member alignment

DEFINITION
uint64_t  alignment;

member body

DEFINITION
Body  body;

member explicitly_used_objects

DEFINITION
std::set< Symbol >  explicitly_used_objects;

member reservation_expression

DEFINITION
std::optional< Expression >  reservation_expression;

member section

DEFINITION
const MemoryMap::Section * section;