LLPointer< Type > Class Template Reference

#include <llmemory.h>

Inheritance diagram for LLPointer< Type >:

Inheritance graph
[legend]
Collaboration diagram for LLPointer< Type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPointer ()
 LLPointer (Type *ptr)
 LLPointer (const LLPointer< Type > &ptr)
template<typename Subclass>
 LLPointer (const LLPointer< Subclass > &ptr)
 ~LLPointer ()
Type * get () const
const Type * operator-> () const
Type * operator-> ()
const Type & operator * () const
Type & operator * ()
 operator BOOL () const
 operator bool () const
bool operator! () const
bool isNull () const
bool notNull () const
 operator Type * () const
 operator const Type * () const
bool operator!= (Type *ptr) const
bool operator== (Type *ptr) const
bool operator== (const LLPointer< Type > &ptr) const
bool operator< (const LLPointer< Type > &ptr) const
bool operator> (const LLPointer< Type > &ptr) const
LLPointer< Type > & operator= (Type *ptr)
LLPointer< Type > & operator= (const LLPointer< Type > &ptr)
template<typename Subclass>
LLPointer< Type > & operator= (const LLPointer< Subclass > &ptr)

Static Public Member Functions

static void swap (LLPointer< Type > &a, LLPointer< Type > &b)

Protected Member Functions

void ref ()
void unref ()

Protected Attributes

Type * mPointer

Detailed Description

template<class Type>
class LLPointer< Type >

Definition at line 111 of file llmemory.h.


Constructor & Destructor Documentation

template<class Type>
LLPointer< Type >::LLPointer (  )  [inline]

Definition at line 115 of file llmemory.h.

template<class Type>
LLPointer< Type >::LLPointer ( Type *  ptr  )  [inline]

Definition at line 120 of file llmemory.h.

template<class Type>
LLPointer< Type >::LLPointer ( const LLPointer< Type > &  ptr  )  [inline]

Definition at line 126 of file llmemory.h.

template<class Type>
template<typename Subclass>
LLPointer< Type >::LLPointer ( const LLPointer< Subclass > &  ptr  )  [inline]

Definition at line 134 of file llmemory.h.

template<class Type>
LLPointer< Type >::~LLPointer (  )  [inline]

Definition at line 140 of file llmemory.h.


Member Function Documentation

template<class Type>
Type* LLPointer< Type >::get (  )  const [inline]

Definition at line 145 of file llmemory.h.

Referenced by LLViewerObject::hideExtraDisplayItems(), LLFloaterEventLog::logObject(), LLDrawInfo::CompareBump::operator()(), LLDrawInfo::CompareTexturePtr::operator()(), LLPointer< LLVOPartGroup >::operator=(), LLPipeline::pickObject(), LLDrawPoolAvatar::renderAvatars(), LLDrawPoolAvatar::renderForSelect(), LLDrawPoolTree::renderTree(), LLSpatialBridge::setVisible(), LLPipeline::stateSort(), LLHUDEffectSpiral::triggerLocal(), and LLViewerPartSourceSpiral::updatePart().

template<class Type>
bool LLPointer< Type >::isNull (  )  const [inline]

Definition at line 154 of file llmemory.h.

Referenced by LLViewerImage::bind(), LLSpatialPartition::buildOcclusion(), LLAgent::calcCameraMinDistance(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLVOVolume::calcLOD(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToThirdPerson(), LLInventoryAddedObserver::changed(), LLMediaEngine::createImageRaw(), LLNetMap::createObjectImage(), LLAgent::createStandardWearables(), LLViewerImage::createTexture(), LLTextureFetchWorker::decodeImage(), LLSky::destroyGL(), LLVolumeImplFlexible::doIdleUpdate(), LLViewerImage::doLoadedCallbacks(), LLVolumeImplFlexible::doUpdateGeometry(), LLTextureFetchWorker::doWork(), LLImageWorker::doWork(), LLTextureCtrl::draw(), LLNetMap::draw(), LLComboBox::draw(), LLButton::draw(), LLButton::drawBorder(), LLViewerJointMesh::drawShape(), LLXMLNode::getAttribute(), LLXMLNode::getChild(), LLXMLNode::getChildren(), LLAgent::getHeadRotation(), LLViewerImageList::getImageFromUUID(), LLHoverView::getLastHoverObject(), LLVOAvatar::getOffObject(), LLAgent::getPositionAgent(), LLAgent::getPositionGlobal(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLSurface::getWaterHeight(), LLVOVolume::idleUpdate(), LLVOAvatar::idleUpdate(), LLFontGL::init(), LLXMLNode::isFullyDefault(), LLHoverView::isHoveringObject(), LLViewerObject::isParticleSource(), LLViewerJointShape::isTransparent(), ll_create_sd_from_inventory_category(), ll_create_sd_from_inventory_item(), LLLiveLSLEditor::loadAsset(), LLFont::loadFace(), LLInventoryModel::loadFromFile(), LLAgent::lookAtObject(), LLAgent::makeNewOutfit(), LLHUDEffectPointAt::markDead(), LLPanelActiveSpeakers::onClickMuteTextCommit(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLDrawInfo::CompareBump::operator()(), LLDrawInfo::CompareTexturePtr::operator()(), LLAlertDialog::parseAlerts(), LLNotifyBox::parseNotify(), LLSpatialPartition::processImagery(), LLTracker::purgeBeaconText(), LLVolumeGeometryManager::rebuildGeom(), LLSpatialPartition::rebuildGeom(), LLInventoryCallbackManager::registerCB(), LLTexLayerParamAlpha::render(), LLHUDEffectSpiral::render(), LLHUDConnector::render(), LLDrawPoolAvatar::renderAvatars(), LLFace::renderForSelect(), LLDrawPoolAvatar::renderForSelect(), LLHUDIcon::renderIcon(), LLFace::renderIndexed(), LLFace::renderSelected(), LLHUDText::renderText(), LLLiveLSLEditor::saveIfNeeded(), LLFolderView::scrollToShowItem(), LLAgent::sendAgentSetAppearance(), LLPanelObject::sendPosition(), LLPanelObject::sendRotation(), LLPanelObject::sendScale(), LLPanelObject::sendSculpt(), LLViewerJointAttachment::setAttachmentVisibility(), LLAgent::setAvatarObject(), LLViewerObject::setDrawableParent(), LLAgent::setFocusGlobal(), LLAgent::setFocusOnAvatar(), LLAgent::setPositionAgent(), LLSurface::setWaterHeight(), LLVOAvatar::sitOnObject(), LLTextureFetchWorker::startWork(), LLImageWorker::startWork(), LLHUDEffectSpiral::triggerLocal(), LLHUDEffectPointAt::unpackData(), LLHUDEffectLookAt::unpackData(), LLViewerObject::unpackParticleSource(), LLViewerPartSourceChat::update(), LLViewerPartSourceBeam::update(), LLViewerPartSourceSpiral::update(), LLViewerPartSourceScript::update(), LLHUDEffectPointAt::update(), LLHUDEffectLookAt::update(), LLAgent::updateCamera(), LLXMLNode::updateDefault(), LLViewerImage::updateFetch(), LLVOVolume::updateGeometry(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOVolume::updateLOD(), LLVOAvatar::updateLOD(), LLAgent::updateLookAt(), LLDrawable::updateMove(), LLViewerPartSourceSpiral::updatePart(), LLVOVolume::updateRadius(), LLVOTree::updateRadius(), LLSelectMgr::updateSilhouettes(), LLVOStars::updateStarGeometry(), LLVOVolume::updateTextures(), LLVOAvatar::updateVisibility(), LLSurfacePatch::updateVisibility(), LLVOVolume::writeCAL3D(), and LLXMLNode::writeToOstream().

template<class Type>
bool LLPointer< Type >::notNull (  )  const [inline]

Definition at line 155 of file llmemory.h.

Referenced by LLObservable::addListener(), LLViewerJointAttachment::addObject(), LLViewerWindow::analyzeHit(), LLAgent::calcCameraFOVZoomFactor(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLAgent::cameraOrbitIn(), LLPreviewTexture::canSaveAs(), LLAgent::clearFocusObject(), LLHUDEffectLookAt::clearLookAtTarget(), LLViewerInventoryItem::clone(), LLImageRaw::createFromFile(), LLViewerImage::createRawImage(), LLTextureFetchWorker::decodeImage(), LLVOVolume::deleteFaces(), LLInventoryModel::deleteFromServer(), LLViewerObject::deleteParticleSource(), LLViewerImage::doLoadedCallbacks(), LLTextureFetchWorker::doWork(), LLImageWorker::doWork(), LLManipRotate::drag(), LLResizeHandle::draw(), LLPreviewTexture::draw(), LLIconCtrl::draw(), LLFolderViewItem::draw(), LLSnapshotLivePreview::draw(), LLFloaterPostcard::draw(), LLFloaterImport::draw(), LLFloaterImagePreview::draw(), LLFloaterAuction::draw(), LLColorSwatchCtrl::draw(), LLButton::draw(), LLViewerJointMesh::drawShape(), LLViewerObject::dump(), LLViewerObjectList::findOrphans(), LLViewerObjectList::findReferences(), LLTextureCacheWorker::finishWork(), LLObservable::fireEvent(), LLTabContainerCommon::fromXML(), LLScrollListCtrl::fromXML(), LLScrollableContainerView::fromXML(), LLRadioGroup::fromXML(), LLLayoutStack::fromXML(), LLNameListCtrl::fromXML(), LLMenuBarGL::fromXML(), LLMenuGL::fromXML(), LLComboBox::fromXML(), LLPreviewTexture::getAssetStatus(), LLViewerObject::getBinRadius(), LLViewerObject::getBoundingBoxAgent(), LLAgent::getCameraZoomFraction(), LLVOAvatar::getCharacterPosition(), LLTextureFetch::getFetchState(), LLFace::getGeometry(), LLFace::getGeometryAvatar(), LLFace::getGeometryTerrain(), LLFace::getGeometryVolume(), LLSelectMgr::getGrid(), LLInventoryModel::getItem(), LLFace::getLOD(), LLViewerObject::getNumIndices(), LLViewerObject::getNumVertices(), LLHUDEffectPointAt::getPointAtPosGlobal(), LLViewerObject::getPositionAgent(), LLAgent::getReferenceUpVector(), LLDrawable::getSpatialPartition(), LLSurface::getSTexture(), LLViewerObject::getVObjRadius(), LLSurface::getWaterTexture(), LLManipTranslate::handleHover(), LLMediaEngine::handleSizeChangedRequest(), LLViewerObject::hideExtraDisplayItems(), LLVOAvatar::idleUpdate(), init_start_screen(), LLPanel::initChildrenXML(), LLPieMenu::initXML(), LLDrawable::isAvatar(), LLVOAvatar::isVisible(), LLDrawable::isVisible(), LLLiveLSLEditor::loadAsset(), LLDrawable::makeActive(), LLSpatialGroup::makeStatic(), LLDrawable::makeStatic(), LLViewerObject::markDead(), LLHUDEffectLookAt::markDead(), LLViewerObject::markForUpdate(), LLAgent::onAnimStop(), LLPreviewNotecard::onSaveComplete(), LLDrawInfo::CompareBump::operator()(), LLDrawInfo::CompareTexturePtr::operator()(), LLViewerObjectList::orphanize(), LLVOVolume::parameterChanged(), LLMenuGL::parseChildXML(), LLAgent::pitch(), LLFloaterImagePreview::postBuild(), LLViewerObject::processUpdateMessage(), LLInventoryModel::purgeDescendentsOf(), LLPanelVolume::refresh(), LLPanelObject::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), LLDynamicTexture::releaseGLTexture(), LLVOAvatar::releaseMeshData(), LLXMLNode::removeChild(), LLViewerObject::removeChild(), LLObservable::removeListener(), LLViewerJointAttachment::removeObject(), LLViewerPartGroup::removePart(), LLVisualParamHint::render(), LLTexLayerParamAlpha::render(), LLHUDEffectLookAt::render(), LLHUDEffectBeam::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), LLSpatialPartition::renderDebug(), LLViewerObjectList::renderObjectsForSelect(), LLVOAvatar::renderSkinned(), LLTextureFetchWorker::resetFormattedData(), LLPipeline::resetVertexBuffers(), LLAgent::resetView(), LLSelectNode::saveColors(), LLPreviewNotecard::saveItem(), LLSelectNode::saveTextures(), LLSelectNode::saveTextureScaleRatios(), LLVOVolume::sculpt(), LLSelectMgr::selectionResetRotation(), LLSelectMgr::selectionRotateAroundZ(), LLAgent::setCameraZoomFraction(), LLTextureCache::ReadResponder::setData(), LLObservable::setDispatcher(), LLAgent::setFlying(), LLAgent::setFocusGlobal(), LLAgent::setFocusObject(), LLVOVolume::setMaterial(), LLViewerObject::setNumTEs(), LLSurface::setOriginGlobal(), LLXMLNode::setParent(), LLViewerObject::setScale(), LLNetMap::setScale(), LLVOVolume::setSelected(), LLSpeakerMgr::setSpeaker(), LLSpeakerMgr::setSpeakerTyping(), LLViewerObject::setTEBumpmap(), LLViewerObject::setTEColor(), LLViewerObject::setTEFullbright(), LLViewerObject::setTEImage(), LLViewerObject::setTEMediaFlags(), LLViewerObject::setTEOffset(), LLViewerObject::setTEOffsetS(), LLViewerObject::setTEOffsetT(), LLViewerObject::setTERotation(), LLViewerObject::setTEScale(), LLViewerObject::setTEScaleS(), LLViewerObject::setTEScaleT(), LLViewerObject::setTETextureCore(), LLUICtrlFactory::setupPaths(), LLAgent::setupSitCamera(), LLDrawable::setVisible(), LLVOVolume::setVolume(), LLPrimitive::setVolume(), LLViewerObjectList::shiftObjects(), LLVOAvatar::slamPosition(), LLSpeakerMgr::speakerChatted(), LLPipeline::stateSort(), LLViewerPartSourceScript::unpackPSS(), LLViewerPartSourceScript::update(), LLDrawable::updateBinRadius(), LLAgent::updateCamera(), LLVOAvatar::updateCharacter(), LLPipeline::updateCull(), LLSky::updateCull(), LLVOGrass::updateDrawable(), LLVOClouds::updateDrawable(), LLStaticViewerObject::updateDrawable(), LLViewerObject::updateDrawable(), LLDrawable::updateFaceSize(), LLViewerImage::updateFetch(), LLAgent::updateFocusOffset(), LLViewerJointMesh::updateGeometry(), LLDrawable::updateGeometry(), LLVOAvatar::updateHeadOffset(), LLFloaterTexturePicker::updateImageStats(), LLVOAvatar::updateMeshData(), LLXMLNode::updateNode(), LLViewerPartGroup::updateParticles(), LLSelectMgr::updateSilhouettes(), LLDrawable::updateSpatialExtents(), LLVOVolume::updateTEData(), LLViewerObject::updateText(), LLVOVolume::updateTextures(), LLAgent::validateFocusObject(), LLDebugBeacon::~LLDebugBeacon(), and LLObservable::~LLObservable().

template<class Type>
Type& LLPointer< Type >::operator * (  )  [inline]

Definition at line 149 of file llmemory.h.

template<class Type>
const Type& LLPointer< Type >::operator * (  )  const [inline]

Definition at line 148 of file llmemory.h.

template<class Type>
LLPointer< Type >::operator bool (  )  const [inline]

Definition at line 152 of file llmemory.h.

template<class Type>
LLPointer< Type >::operator BOOL (  )  const [inline]

Definition at line 151 of file llmemory.h.

template<class Type>
LLPointer< Type >::operator const Type * (  )  const [inline]

Definition at line 158 of file llmemory.h.

References LLPointer< Type >::mPointer.

template<class Type>
LLPointer< Type >::operator Type * (  )  const [inline]

Definition at line 157 of file llmemory.h.

References LLPointer< Type >::mPointer.

template<class Type>
bool LLPointer< Type >::operator! (  )  const [inline]

Definition at line 153 of file llmemory.h.

template<class Type>
bool LLPointer< Type >::operator!= ( Type *  ptr  )  const [inline]

Definition at line 159 of file llmemory.h.

template<class Type>
Type* LLPointer< Type >::operator-> (  )  [inline]

Definition at line 147 of file llmemory.h.

template<class Type>
const Type* LLPointer< Type >::operator-> (  )  const [inline]

Definition at line 146 of file llmemory.h.

template<class Type>
bool LLPointer< Type >::operator< ( const LLPointer< Type > &  ptr  )  const [inline]

Definition at line 162 of file llmemory.h.

template<class Type>
template<typename Subclass>
LLPointer<Type>& LLPointer< Type >::operator= ( const LLPointer< Subclass > &  ptr  )  [inline]

Definition at line 190 of file llmemory.h.

template<class Type>
LLPointer<Type>& LLPointer< Type >::operator= ( const LLPointer< Type > &  ptr  )  [inline]

Definition at line 177 of file llmemory.h.

template<class Type>
LLPointer<Type>& LLPointer< Type >::operator= ( Type *  ptr  )  [inline]

Definition at line 165 of file llmemory.h.

template<class Type>
bool LLPointer< Type >::operator== ( const LLPointer< Type > &  ptr  )  const [inline]

Definition at line 161 of file llmemory.h.

template<class Type>
bool LLPointer< Type >::operator== ( Type *  ptr  )  const [inline]

Definition at line 160 of file llmemory.h.

template<class Type>
bool LLPointer< Type >::operator> ( const LLPointer< Type > &  ptr  )  const [inline]

Definition at line 163 of file llmemory.h.

template<class Type>
void LLPointer< Type >::ref (  )  [inline, protected]

Definition at line 210 of file llmemory.h.

Referenced by LLPointer< LLVOPartGroup >::LLPointer(), and LLPointer< LLVOPartGroup >::operator=().

template<class Type>
static void LLPointer< Type >::swap ( LLPointer< Type > &  a,
LLPointer< Type > &  b 
) [inline, static]

Definition at line 202 of file llmemory.h.

Referenced by LLViewerPartGroup::updateParticles().

template<class Type>
void LLPointer< Type >::unref (  )  [inline, protected]

Definition at line 218 of file llmemory.h.

Referenced by LLPointer< LLVOPartGroup >::operator=(), LLPointer< LLVOPartGroup >::unref(), and LLPointer< LLVOPartGroup >::~LLPointer().


Member Data Documentation

template<class Type>
Type* LLPointer< Type >::mPointer [protected]

Definition at line 234 of file llmemory.h.

Referenced by LLPointer< LLVOPartGroup >::get(), LLPointer< LLVOPartGroup >::isNull(), LLPointer< LLVOPartGroup >::notNull(), LLPointer< LLVOPartGroup >::operator *(), LLPointer< LLVOPartGroup >::operator bool(), LLPointer< LLVOPartGroup >::operator BOOL(), LLPointer< Type >::operator const Type *(), LLPointer< Type >::operator Type *(), LLPointer< LLVOPartGroup >::operator!(), LLPointer< LLVOPartGroup >::operator!=(), LLPointer< LLVOPartGroup >::operator->(), LLPointer< LLVOPartGroup >::operator<(), LLPointer< LLVOPartGroup >::operator=(), LLPointer< LLVOPartGroup >::operator==(), LLPointer< LLVOPartGroup >::operator>(), LLPointer< LLVOPartGroup >::ref(), and LLPointer< LLVOPartGroup >::unref().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:39 2010 for Second Life Viewer by  doxygen 1.4.7