ROSE  0.9.10.2
Public Member Functions | Public Attributes | List of all members
RegisterNames Class Reference

Description

Prints a register name even when no dictionary is available or when the dictionary doesn't contain an entry for the specified descriptor.

Definition at line 354 of file Registers.h.

#include <Registers.h>

Collaboration diagram for RegisterNames:
Collaboration graph
[legend]

Public Member Functions

 RegisterNames (const RegisterDictionary *dict=NULL)
 Constructor. More...
 
std::string operator() (RegisterDescriptor, const RegisterDictionary *dict=NULL) const
 Obtain a name for a register descriptor. More...
 

Public Attributes

const RegisterDictionarydflt_dict
 Dictionary supplied to the constructor. More...
 
std::string prefix
 The leading part of a register name. More...
 
std::string suffix
 String to print at the very end of the generated name. More...
 
int show_offset
 0=>never show offset; positive=>always show; negative=>show only when non-zero
 
std::string offset_prefix
 String printed before the offset when the offset is shown. More...
 
std::string offset_suffix
 String printed after the offset when the offset is shown. More...
 
int show_size
 0=>never; positive=>always; negative=>when offset is non-zero
 
std::string size_prefix
 String printed prior to the size when the size is printed. More...
 
std::string size_suffix
 String printed after the size when the size is printed. More...
 

Constructor & Destructor Documentation

RegisterNames::RegisterNames ( const RegisterDictionary dict = NULL)
inlineexplicit

Constructor.

A RegisterDictionary can be supplied to the constructor, or to each operator() call.

Definition at line 357 of file Registers.h.

Member Function Documentation

std::string RegisterNames::operator() ( RegisterDescriptor  ,
const RegisterDictionary dict = NULL 
) const

Obtain a name for a register descriptor.

If a dictionary is supplied, then it will be used instead of the dictionary that was supplied to the constructor.

Member Data Documentation

const RegisterDictionary* RegisterNames::dflt_dict

Dictionary supplied to the constructor.

Definition at line 364 of file Registers.h.

std::string RegisterNames::prefix

The leading part of a register name.

Definition at line 365 of file Registers.h.

std::string RegisterNames::suffix

String to print at the very end of the generated name.

Definition at line 366 of file Registers.h.

std::string RegisterNames::offset_prefix

String printed before the offset when the offset is shown.

Definition at line 368 of file Registers.h.

std::string RegisterNames::offset_suffix

String printed after the offset when the offset is shown.

Definition at line 369 of file Registers.h.

std::string RegisterNames::size_prefix

String printed prior to the size when the size is printed.

Definition at line 371 of file Registers.h.

std::string RegisterNames::size_suffix

String printed after the size when the size is printed.

Definition at line 372 of file Registers.h.


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