OpenASIP  2.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
TTAProgram::NullInstructionReferenceManager Class Reference

#include <NullInstructionReferenceManager.hh>

Inheritance diagram for TTAProgram::NullInstructionReferenceManager:
Inheritance graph
Collaboration diagram for TTAProgram::NullInstructionReferenceManager:
Collaboration graph

Public Member Functions

virtual ~NullInstructionReferenceManager ()
 
- Public Member Functions inherited from TTAProgram::InstructionReferenceManager
 InstructionReferenceManager ()
 
virtual ~InstructionReferenceManager ()
 
InstructionReference createReference (Instruction &ins)
 
void replace (Instruction &insA, Instruction &insB)
 
void clearReferences ()
 
bool hasReference (Instruction &ins) const
 
unsigned int referenceCount (Instruction &ins) const
 
void referenceDied (Instruction *ins)
 
void validate ()
 
Iterator begin ()
 
Iterator end ()
 

Static Public Member Functions

static NullInstructionReferenceManagerinstance ()
 

Protected Member Functions

 NullInstructionReferenceManager ()
 

Private Member Functions

 NullInstructionReferenceManager (const NullInstructionReferenceManager &)
 Copying not allowed. More...
 
NullInstructionReferenceManageroperator= (const NullInstructionReferenceManager &)
 Assignment not allowed. More...
 

Static Private Attributes

static NullInstructionReferenceManager instance_
 Unique instance of NullInstructionReferenceManager. More...
 

Additional Inherited Members

- Public Types inherited from TTAProgram::InstructionReferenceManager
typedef std::map< Instruction *, InstructionReferenceImpl * > RefMap
 Map for instruction references. faster to search than list. More...
 

Detailed Description

A singleton class that represents a null global scope.

Definition at line 43 of file NullInstructionReferenceManager.hh.

Constructor & Destructor Documentation

◆ ~NullInstructionReferenceManager()

TTAProgram::NullInstructionReferenceManager::~NullInstructionReferenceManager ( )
virtual

The destructor.

Definition at line 54 of file NullInstructionReferenceManager.cc.

54  {
55 }

◆ NullInstructionReferenceManager() [1/2]

TTAProgram::NullInstructionReferenceManager::NullInstructionReferenceManager ( )
protected

The constructor.

Definition at line 47 of file NullInstructionReferenceManager.cc.

47  :
49 }

◆ NullInstructionReferenceManager() [2/2]

TTAProgram::NullInstructionReferenceManager::NullInstructionReferenceManager ( const NullInstructionReferenceManager )
private

Copying not allowed.

Member Function Documentation

◆ instance()

NullInstructionReferenceManager & TTAProgram::NullInstructionReferenceManager::instance ( )
static

Returns an instance of NullInstructionReferenceManager class (singleton).

Returns
Singleton instance of NullInstructionReferenceManager class.

Definition at line 63 of file NullInstructionReferenceManager.cc.

63  {
64  return instance_;
65 }

References instance_.

Referenced by TTAProgram::NullProgram::instructionReferenceManager().

◆ operator=()

NullInstructionReferenceManager& TTAProgram::NullInstructionReferenceManager::operator= ( const NullInstructionReferenceManager )
private

Assignment not allowed.

Member Data Documentation

◆ instance_

NullInstructionReferenceManager TTAProgram::NullInstructionReferenceManager::instance_
staticprivate

Unique instance of NullInstructionReferenceManager.

Definition at line 59 of file NullInstructionReferenceManager.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
TTAProgram::InstructionReferenceManager::InstructionReferenceManager
InstructionReferenceManager()
Definition: InstructionReferenceManager.cc:54
TTAProgram::NullInstructionReferenceManager::instance_
static NullInstructionReferenceManager instance_
Unique instance of NullInstructionReferenceManager.
Definition: NullInstructionReferenceManager.hh:59