OpenASIP  2.0
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
NullGPRGuardEncoding Class Reference

#include <NullGPRGuardEncoding.hh>

Inheritance diagram for NullGPRGuardEncoding:
Inheritance graph
Collaboration diagram for NullGPRGuardEncoding:
Collaboration graph

Static Public Member Functions

static NullGPRGuardEncodinginstance ()
 

Private Member Functions

 NullGPRGuardEncoding ()
 
virtual ~NullGPRGuardEncoding ()
 

Static Private Attributes

static NullGPRGuardEncoding instance_
 The only instance of this class. More...
 
static GuardField guardField_
 The parent guard field. More...
 
static MoveSlot moveSlot_
 The parent move slot. More...
 
static BinaryEncoding bem_
 The parent binary encoding. More...
 

Additional Inherited Members

- Public Member Functions inherited from GPRGuardEncoding
 GPRGuardEncoding (const std::string &regFile, int index, bool inverted, unsigned int encoding, GuardField &parent)
 
 GPRGuardEncoding (const ObjectState *state, GuardField &parent)
 
virtual ~GPRGuardEncoding ()
 
std::string registerFile () const
 
int registerIndex () const
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from GuardEncoding
virtual ~GuardEncoding ()
 
GuardFieldparent () const
 
bool isGuardInverted () const
 
unsigned int encoding () const
 
- Static Public Attributes inherited from GPRGuardEncoding
static const std::string OSNAME_GPR_GUARD_ENCODING
 ObjectState name for GPR guard encoding. More...
 
static const std::string OSKEY_RF_NAME = "rf_name"
 ObjectState attribute key for the name of the register file. More...
 
static const std::string OSKEY_REGISTER_INDEX = "reg_index"
 ObjectState attribute key for register index. More...
 
- Static Public Attributes inherited from GuardEncoding
static const std::string OSNAME_GUARD_ENCODING = "guard_encoding"
 ObjectState name for guard encoding. More...
 
static const std::string OSKEY_INVERTED = "inverted"
 ObjectState attribute key for invert flag. More...
 
static const std::string OSKEY_ENCODING = "encoding"
 ObjectState attribute key for encoding. More...
 
- Protected Member Functions inherited from GuardEncoding
 GuardEncoding (bool inverted, unsigned int encoding)
 
 GuardEncoding (const ObjectState *state)
 
void setParent (GuardField *parent)
 

Detailed Description

A null version of GPRGuardEncoding class.

Definition at line 44 of file NullGPRGuardEncoding.hh.

Constructor & Destructor Documentation

◆ NullGPRGuardEncoding()

NullGPRGuardEncoding::NullGPRGuardEncoding ( )
private

The constructor.

Definition at line 46 of file NullGPRGuardEncoding.cc.

46  :
47  GPRGuardEncoding("NULL", 0, false, 0, guardField_) {
48 }

◆ ~NullGPRGuardEncoding()

NullGPRGuardEncoding::~NullGPRGuardEncoding ( )
privatevirtual

The destructor.

Definition at line 54 of file NullGPRGuardEncoding.cc.

54  {
55 }

Member Function Documentation

◆ instance()

NullGPRGuardEncoding & NullGPRGuardEncoding::instance ( )
static

Returns the instance of NullGPRGuardEncoding.

Returns
The instance.

Definition at line 64 of file NullGPRGuardEncoding.cc.

64  {
65  return instance_;
66 }

References instance_.

Referenced by CodeCompressorPlugin::addBitsForGuardField(), and GuardField::gprGuardEncoding().

Member Data Documentation

◆ bem_

BinaryEncoding NullGPRGuardEncoding::bem_
staticprivate

The parent binary encoding.

Definition at line 59 of file NullGPRGuardEncoding.hh.

◆ guardField_

GuardField NullGPRGuardEncoding::guardField_
staticprivate

The parent guard field.

Definition at line 55 of file NullGPRGuardEncoding.hh.

◆ instance_

NullGPRGuardEncoding NullGPRGuardEncoding::instance_
staticprivate

The only instance of this class.

Definition at line 53 of file NullGPRGuardEncoding.hh.

Referenced by instance().

◆ moveSlot_

MoveSlot NullGPRGuardEncoding::moveSlot_
staticprivate

The parent move slot.

Definition at line 57 of file NullGPRGuardEncoding.hh.


The documentation for this class was generated from the following files:
GPRGuardEncoding::GPRGuardEncoding
GPRGuardEncoding(const std::string &regFile, int index, bool inverted, unsigned int encoding, GuardField &parent)
Definition: GPRGuardEncoding.cc:63
NullGPRGuardEncoding::instance_
static NullGPRGuardEncoding instance_
The only instance of this class.
Definition: NullGPRGuardEncoding.hh:53
NullGPRGuardEncoding::guardField_
static GuardField guardField_
The parent guard field.
Definition: NullGPRGuardEncoding.hh:55