#include <PointerCache.h>
Definition at line 35 of file PointerCache.h.
Public Member Functions | |
PointerCache () | |
virtual | ~PointerCache () |
PointerCache & | operator= (_PtrType *ptr) |
PointerCache & | operator= (const PointerCache &) |
Not implemented to make this illegal. | |
_PtrType * | ptr () |
| |
_PtrType & | operator * () const |
referencing operations will resurrect pointers if need be | |
_PtrType * | operator-> () const |
referencing operations will resurrect pointers if need be | |
Protected Member Functions | |
virtual void | restore_and_update_ptr ()=0 |
virtual bool | at_limit (_PtrType *ptr)=0 |
virtual void | evict ()=0 |
virtual void | register_ptr (_PtrType *ptr)=0 |
virtual void | unregister_ptr (_PtrType *ptr)=0 |
void | set_ptr (_PtrType *ptr) |
Protected Attributes | |
_PtrType * | ptr_ |
oasys::PointerCache< _Name, _PtrType >::PointerCache | ( | ) | [inline] |
Adds the pointer to the cache.
Definition at line 40 of file PointerCache.h.
virtual oasys::PointerCache< _Name, _PtrType >::~PointerCache | ( | ) | [inline, virtual] |
Unregisters the contained pointer from the cache.
Definition at line 53 of file PointerCache.h.
_PtrType& oasys::PointerCache< _Name, _PtrType >::operator * | ( | ) | const [inline] |
referencing operations will resurrect pointers if need be
Definition at line 64 of file PointerCache.h.
References oasys::PointerCache< _Name, _PtrType >::ptr_, and oasys::PointerCache< _Name, _PtrType >::restore_and_update_ptr().
_PtrType* oasys::PointerCache< _Name, _PtrType >::operator-> | ( | ) | const [inline] |
referencing operations will resurrect pointers if need be
Definition at line 68 of file PointerCache.h.
References oasys::PointerCache< _Name, _PtrType >::ptr_, and oasys::PointerCache< _Name, _PtrType >::restore_and_update_ptr().
PointerCache& oasys::PointerCache< _Name, _PtrType >::operator= | ( | _PtrType * | ptr | ) | [inline] |
Set the contained pointer to something else. Replaces the contained pointer in the cache with the new pointer.
Definition at line 78 of file PointerCache.h.
References oasys::PointerCache< _Name, _PtrType >::set_ptr().
PointerCache& oasys::PointerCache< _Name, _PtrType >::operator= | ( | const PointerCache< _Name, _PtrType > & | ) |
Not implemented to make this illegal.
_PtrType* oasys::PointerCache< _Name, _PtrType >::ptr | ( | ) | [inline] |
Definition at line 87 of file PointerCache.h.
References oasys::PointerCache< _Name, _PtrType >::ptr_, and oasys::PointerCache< _Name, _PtrType >::restore_and_update_ptr().
virtual void oasys::PointerCache< _Name, _PtrType >::restore_and_update_ptr | ( | ) | [protected, pure virtual] |
virtual bool oasys::PointerCache< _Name, _PtrType >::at_limit | ( | _PtrType * | ptr | ) | [protected, pure virtual] |
Referenced by oasys::PointerCache< _Name, _PtrType >::set_ptr().
virtual void oasys::PointerCache< _Name, _PtrType >::evict | ( | ) | [protected, pure virtual] |
Referenced by oasys::PointerCache< _Name, _PtrType >::set_ptr().
virtual void oasys::PointerCache< _Name, _PtrType >::register_ptr | ( | _PtrType * | ptr | ) | [protected, pure virtual] |
Referenced by oasys::PointerCache< _Name, _PtrType >::set_ptr().
virtual void oasys::PointerCache< _Name, _PtrType >::unregister_ptr | ( | _PtrType * | ptr | ) | [protected, pure virtual] |
Referenced by oasys::PointerCache< _Name, _PtrType >::set_ptr().
void oasys::PointerCache< _Name, _PtrType >::set_ptr | ( | _PtrType * | ptr | ) | [inline, protected] |
Definition at line 102 of file PointerCache.h.
References ASSERT, oasys::PointerCache< _Name, _PtrType >::at_limit(), oasys::PointerCache< _Name, _PtrType >::evict(), oasys::PointerCache< _Name, _PtrType >::ptr_, oasys::PointerCache< _Name, _PtrType >::register_ptr(), and oasys::PointerCache< _Name, _PtrType >::unregister_ptr().
Referenced by oasys::PointerCache< _Name, _PtrType >::operator=().
_PtrType* oasys::PointerCache< _Name, _PtrType >::ptr_ [protected] |
Definition at line 93 of file PointerCache.h.
Referenced by oasys::PointerCache< _Name, _PtrType >::operator *(), oasys::PointerCache< _Name, _PtrType >::operator->(), oasys::PointerCache< _Name, _PtrType >::ptr(), and oasys::PointerCache< _Name, _PtrType >::set_ptr().