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

#include <NullGuardField.hh>

Inheritance diagram for NullGuardField:
Inheritance graph
Collaboration diagram for NullGuardField:
Collaboration graph

Static Public Member Functions

static NullGuardFieldinstance ()
 

Private Member Functions

 NullGuardField ()
 
virtual ~NullGuardField ()
 

Static Private Attributes

static NullGuardField instance_
 The only instance of NullGuardField. 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 GuardField
 GuardField (MoveSlot &parent)
 
 GuardField (const ObjectState *state, MoveSlot &parent)
 
virtual ~GuardField ()
 
MoveSlotparent () const
 
void addGuardEncoding (GPRGuardEncoding &encoding)
 
void removeGuardEncoding (GPRGuardEncoding &encoding)
 
void addGuardEncoding (FUGuardEncoding &encoding)
 
void removeGuardEncoding (FUGuardEncoding &encoding)
 
void addGuardEncoding (UnconditionalGuardEncoding &encoding)
 
void removeUnconditionalGuardEncoding (UnconditionalGuardEncoding &encoding)
 
int gprGuardEncodingCount () const
 
GPRGuardEncodinggprGuardEncoding (int index) const
 
bool hasGPRGuardEncoding (const std::string &regFile, int index, bool inverted) const
 
GPRGuardEncodinggprGuardEncoding (const std::string &regFile, int index, bool inverted) const
 
int fuGuardEncodingCount () const
 
FUGuardEncodingfuGuardEncoding (int index) const
 
bool hasFUGuardEncoding (const std::string &fu, const std::string &port, bool inverted) const
 
FUGuardEncodingfuGuardEncoding (const std::string &fu, const std::string &port, bool inverted) const
 
bool hasUnconditionalGuardEncoding (bool inverted) const
 
UnconditionalGuardEncodingunconditionalGuardEncoding (bool inverted) const
 
virtual int childFieldCount () const
 
virtual InstructionFieldchildField (int) const
 
virtual int width () const
 
virtual void loadState (const ObjectState *state)
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from InstructionField
virtual ~InstructionField ()
 
InstructionFieldparent () const
 
int bitPosition () const
 
int relativePosition () const
 
virtual void setRelativePosition (int position)
 
void setExtraBits (int bits)
 
int extraBits () const
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
- Static Public Attributes inherited from GuardField
static const std::string OSNAME_GUARD_FIELD = "guard_field"
 ObjectState name for guard field. More...
 
- Static Public Attributes inherited from InstructionField
static const std::string OSNAME_INSTRUCTION_FIELD = "instr_field"
 ObjectState name for instruction field. More...
 
static const std::string OSKEY_EXTRA_BITS = "extra_bits"
 ObjectState attribute key for the number of extra bits. More...
 
static const std::string OSKEY_POSITION = "position"
 ObjectState attribute key for the relative position of the field. More...
 
- Protected Member Functions inherited from InstructionField
 InstructionField (InstructionField *parent)
 
 InstructionField (const ObjectState *state, InstructionField *parent)
 
void setParent (InstructionField *parent)
 
- Static Protected Member Functions inherited from InstructionField
static void reorderSubfields (ObjectState *state)
 

Detailed Description

A null version of the GuardField class.

Definition at line 43 of file NullGuardField.hh.

Constructor & Destructor Documentation

◆ NullGuardField()

NullGuardField::NullGuardField ( )
private

The constructor.

Definition at line 44 of file NullGuardField.cc.

45 }

◆ ~NullGuardField()

NullGuardField::~NullGuardField ( )
privatevirtual

The destructor.

Definition at line 51 of file NullGuardField.cc.

51  {
52 }

Member Function Documentation

◆ instance()

NullGuardField & NullGuardField::instance ( )
static

Returns the instance of NullGuardField.

Returns
The instance.

Definition at line 61 of file NullGuardField.cc.

61  {
62  return instance_;
63 }

References instance_.

Referenced by MoveSlot::guardField().

Member Data Documentation

◆ bem_

BinaryEncoding NullGuardField::bem_
staticprivate

The parent binary encoding.

Definition at line 56 of file NullGuardField.hh.

◆ instance_

NullGuardField NullGuardField::instance_
staticprivate

The only instance of NullGuardField.

Definition at line 52 of file NullGuardField.hh.

Referenced by instance().

◆ moveSlot_

MoveSlot NullGuardField::moveSlot_
staticprivate

The parent move slot.

Definition at line 54 of file NullGuardField.hh.


The documentation for this class was generated from the following files:
GuardField::GuardField
GuardField(MoveSlot &parent)
Definition: GuardField.cc:60
NullGuardField::instance_
static NullGuardField instance_
The only instance of NullGuardField.
Definition: NullGuardField.hh:52
NullGuardField::moveSlot_
static MoveSlot moveSlot_
The parent move slot.
Definition: NullGuardField.hh:54