OpenASIP
2.0
|
#include <SafePointer.hh>
Public Types | |
typedef std::list< SafePointer * > | SafePointerListType |
Type of the container to hold the SafePointers in. More... | |
typedef std::string::size_type | LengthType |
Type of the list length value. More... | |
Public Member Functions | |
SafePointerList () | |
SafePointerList (SafePointerList &aList) | |
virtual | ~SafePointerList () |
void | setReference (const SafePointable *obj) |
SafePointable * | reference () const |
void | append (SafePointer *newSafePointer) |
void | append (SafePointerList *anotherSafePointerList) |
SafePointer * | front () const |
void | cleanup () |
void | cleanupDead () |
LengthType | length () const |
Private Attributes | |
SafePointable * | reference_ |
Object that SafePointers in this list are pointing to. More... | |
SafePointerListType | list_ |
Container for SafePointers. More... | |
List of SafePointers that are all pointing to the same object.
Definition at line 71 of file SafePointer.hh.
typedef std::string::size_type TPEF::ReferenceManager::SafePointerList::LengthType |
Type of the list length value.
Definition at line 77 of file SafePointer.hh.
typedef std::list<SafePointer*> TPEF::ReferenceManager::SafePointerList::SafePointerListType |
Type of the container to hold the SafePointers in.
Definition at line 74 of file SafePointer.hh.
TPEF::ReferenceManager::SafePointerList::SafePointerList | ( | ) |
TPEF::ReferenceManager::SafePointerList::SafePointerList | ( | SafePointerList & | aList | ) |
|
virtual |
void TPEF::ReferenceManager::SafePointerList::append | ( | SafePointer * | newSafePointer | ) |
Appends a new SafePointer at the end of the list and sets it's reference to the reference of the list.
newSafePointer | The SafePointer to add. |
Definition at line 132 of file SafePointer.cc.
References list_, reference(), and TPEF::ReferenceManager::SafePointer::setPointer().
void TPEF::ReferenceManager::SafePointerList::append | ( | SafePointerList * | anotherSafePointerList | ) |
Appends another SafePointerList at the end of the list and sets it's reference to the reference of the list.
anotherSafePointerList | The SafePointerList to add. |
Definition at line 145 of file SafePointer.cc.
References list_, reference(), and setReference().
void TPEF::ReferenceManager::SafePointerList::cleanup | ( | ) |
Sets all SafePointers in the list NULL and clears the list.
Definition at line 164 of file SafePointer.cc.
References list_, and setReference().
Referenced by TPEF::ReferenceManager::SafePointer::notifyDeleted().
void TPEF::ReferenceManager::SafePointerList::cleanupDead | ( | ) |
Removes all dead (deleted) SafePointers from the list.
Definition at line 173 of file SafePointer.cc.
References TPEF::ReferenceManager::SafePointer::isAlive(), and list_.
Referenced by TPEF::ReferenceManager::SafePointer::isReferenced().
SafePointer* TPEF::ReferenceManager::SafePointerList::front | ( | ) | const |
Referenced by TPEF::ReferenceManager::SafePointer::resolve().
LengthType TPEF::ReferenceManager::SafePointerList::length | ( | ) | const |
Referenced by TPEF::ReferenceManager::SafePointer::isReferenced().
SafePointable* TPEF::ReferenceManager::SafePointerList::reference | ( | ) | const |
Referenced by append(), and TPEF::ReferenceManager::SafePointer::resolve().
void TPEF::ReferenceManager::SafePointerList::setReference | ( | const SafePointable * | obj | ) |
Sets the object all SafePointers in the list are pointing to.
obj | The pointer to the object all SafePointers in the list should be pointing to. |
Definition at line 113 of file SafePointer.cc.
References TPEF::ReferenceManager::SafePointer::isAlive(), list_, and reference_.
Referenced by append(), and cleanup().
|
private |
Container for SafePointers.
Definition at line 102 of file SafePointer.hh.
Referenced by append(), cleanup(), cleanupDead(), SafePointerList(), and setReference().
|
private |
Object that SafePointers in this list are pointing to.
Definition at line 99 of file SafePointer.hh.
Referenced by setReference().