LLPointer< Type > Class Template Reference

#include <llmemory.h>

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]

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

Definition at line 146 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 148 of file llmemory.h.

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

Definition at line 149 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 bool (  )  const [inline]

Definition at line 152 of file llmemory.h.

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

Definition at line 153 of file llmemory.h.

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

Definition at line 154 of file llmemory.h.

Referenced by LLViewerImage::bind(), LLAgent::calcCameraMinDistance(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLVOVolume::calcLOD(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToThirdPerson(), LLInventoryAddedObserver::changed(), LLPipeline::createGLBuffers(), LLNetMap::createObjectImage(), LLAgent::createStandardWearables(), LLViewerImage::createTexture(), LLTextureFetchWorker::decodeImage(), LLSky::destroyGL(), LLVolumeImplFlexible::doIdleUpdate(), LLViewerImage::doLoadedCallbacks(), LLVolumeImplFlexible::doUpdateGeometry(), LLTextureFetchWorker::doWork(), LLImageWorker::doWork(), LLWorldMapView::draw(), LLTextureCtrl::draw(), LLNetMap::draw(), LLButton::draw(), LLViewerJointMesh::drawShape(), get_null_object_selection(), LLXMLNode::getAttribute(), LLXMLNode::getChild(), LLXMLNode::getChildren(), LLSelectMgr::getGrid(), LLAgent::getHeadRotation(), LLViewerImageList::getImage(), LLViewerImageList::getImageFromFile(), LLHoverView::getLastHoverObject(), LLParcelSelection::getNullParcelSelection(), LLVOAvatar::getOffObject(), LLAgent::getPositionAgent(), LLAgent::getPositionGlobal(), LLVOAvatar::getRenderPosition(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLScrollListIcon::getValue(), LLSurface::getWaterHeight(), handle_click_action_open_media(), LLPanelActiveSpeakers::SpeakerMuteListener::handleEvent(), LLVOVolume::idleUpdate(), LLVOAvatar::idleUpdate(), LLFontGL::init(), LLXMLNode::isFullyDefault(), LLHoverView::isHoveringObject(), LLViewerObject::isParticleSource(), ll_create_sd_from_inventory_category(), ll_create_sd_from_inventory_item(), LLDrawPoolWLSky::LLDrawPoolWLSky(), LLLiveLSLEditor::loadAsset(), LLFont::loadFace(), LLInventoryModel::loadFromFile(), LLAgent::lookAtLastChat(), LLAgent::makeNewOutfit(), LLHUDEffectPointAt::markDead(), LLPanelActiveSpeakers::onClickMuteTextCommit(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLDrawInfo::CompareBump::operator()(), LLDrawInfo::CompareTexturePtrMatrix::operator()(), LLDrawInfo::CompareTexturePtr::operator()(), LLAlertDialog::parseAlerts(), LLLineEditor::parseImage(), LLMIMETypes::parseMIMETypes(), LLNotifyBox::parseNotify(), LLTrans::parseStrings(), LLSpatialPartition::processImagery(), LLTracker::purgeBeaconText(), LLVolumeGeometryManager::rebuildGeom(), LLSpatialPartition::rebuildGeom(), LLInventoryCallbackManager::registerCB(), LLTexLayerParamAlpha::render(), LLHUDEffectSpiral::render(), LLDrawPoolAvatar::renderAvatars(), LLFace::renderForSelect(), LLDrawPoolAvatar::renderForSelect(), LLHUDIcon::renderIcon(), LLFace::renderIndexed(), LLFace::renderSelected(), LLHUDText::renderText(), LLDrawPoolTree::renderTree(), 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(), LLSprite::updateFace(), LLViewerJointMesh::updateFaceData(), LLViewerImage::updateFetch(), LLVOWater::updateGeometry(), LLVOVolume::updateGeometry(), LLVOSky::updateGeometry(), LLVOGround::updateGeometry(), LLVOSky::updateHeavenlyBodyGeometry(), LLVOVolume::updateLOD(), LLVOAvatar::updateLOD(), LLAgent::updateLookAt(), LLDrawable::updateMove(), LLViewerPartSourceSpiral::updatePart(), LLVOVolume::updateRadius(), LLVOTree::updateRadius(), LLVOSky::updateReflectionGeometry(), LLSelectMgr::updateSilhouettes(), LLVOSky::updateSky(), LLIMSpeakerMgr::updateSpeakers(), LLVOWLSky::updateStarGeometry(), LLVOSky::updateSunHaloGeometry(), LLVOVolume::updateTextures(), LLVOAvatar::updateVisibility(), LLSurfacePatch::updateVisibility(), validate_draw_info(), 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(), LLJointStateBlender::blendJointStates(), calc_light_dist(), LLAgent::calcCameraFOVZoomFactor(), LLAgent::calcCameraPositionTargetGlobal(), LLAgent::calcFocusPositionTargetGlobal(), LLHUDEffectPointAt::calcTargetPosition(), LLHUDEffectLookAt::calcTargetPosition(), LLAgent::cameraOrbitIn(), LLPreviewTexture::canSaveAs(), LLAgent::clampPitchToLimits(), LLAgent::clearFocusObject(), LLHUDEffectLookAt::clearLookAtTarget(), LLViewerInventoryItem::cloneViewerItem(), LLImageRaw::createFromFile(), LLViewerPartSourceScript::createPSS(), LLViewerImage::createRawImage(), LLTextureFetchWorker::decodeImage(), LLVOVolume::deleteFaces(), LLInventoryModel::deleteFromServer(), LLViewerObject::deleteParticleSource(), LLSDSerialize::deserialize(), LLSky::destroyGL(), LLViewerImage::doLoadedCallbacks(), LLTextureFetchWorker::doWork(), LLImageWorker::doWork(), LLManipRotate::drag(), LLPreviewTexture::draw(), LLFloaterIMPanel::draw(), LLFolderViewItem::draw(), LLSnapshotLivePreview::draw(), LLFloaterPostcard::draw(), LLFloaterImagePreview::draw(), LLFloaterAuction::draw(), LLColorSwatchCtrl::draw(), LLResizeHandle::draw(), LLIconCtrl::draw(), LLButton::draw(), LLViewerJointMesh::drawShape(), LLVOWLSky::drawStars(), LLViewerObject::dump(), LLViewerObjectList::findOrphans(), LLViewerObjectList::findReferences(), LLTextureCacheWorker::finishWork(), LLObservable::fireEvent(), LLNameListCtrl::fromXML(), LLTabContainer::fromXML(), LLScrollListCtrl::fromXML(), LLScrollableContainerView::fromXML(), LLRadioGroup::fromXML(), LLLayoutStack::fromXML(), LLMenuBarGL::fromXML(), LLMenuGL::fromXML(), LLFlyoutButton::fromXML(), LLComboBox::fromXML(), LLPreviewTexture::getAssetStatus(), LLViewerObject::getBinRadius(), LLViewerObject::getBoundingBoxAgent(), LLAgent::getCameraZoomFraction(), LLVOAvatar::getCharacterPosition(), LLTextureFetch::getFetchState(), LLFace::getGeometry(), LLFace::getGeometryAvatar(), 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(), LLScrollListIcon::getWidth(), handle_dump_attachments(), LLPanelActiveSpeakers::handleSpeakerSelect(), handleWLSkyDetailChanged(), LLViewerObject::hideExtraDisplayItems(), LLVOAvatar::idleUpdate(), init_start_screen(), LLPanel::initChildrenXML(), LLPieMenu::initXML(), LLDrawable::isAvatar(), LLVOAvatar::isVisible(), LLDrawable::isVisible(), LLVolumeImplFlexible::LLVolumeImplFlexible(), LLLiveLSLEditor::loadAsset(), LLDrawable::makeActive(), LLDrawable::makeStatic(), LLViewerObject::markDead(), LLHUDEffectLookAt::markDead(), LLViewerObject::markForUpdate(), LLAgent::onAnimStop(), LLPanelActiveSpeakers::onDoubleClickSpeaker(), LLPreviewNotecard::onSaveComplete(), LLUIImageList::onUIImageLoaded(), LLKeyframeFallMotion::onUpdate(), LLDrawInfo::CompareBump::operator()(), LLDrawInfo::CompareTexturePtrMatrix::operator()(), LLDrawInfo::CompareTexturePtr::operator()(), LLViewerObjectList::orphanize(), LLVOVolume::parameterChanged(), LLMenuGL::parseChildXML(), LLFloaterImagePreview::postBuild(), LLInventoryModel::processBulkUpdateInventory(), LLViewerObject::processUpdateMessage(), LLInventoryModel::purgeDescendentsOf(), LLDrawPoolBump::pushBatch(), LLRenderPass::pushBatch(), LLVolumeGeometryManager::rebuildGeom(), LLPanelVolume::refresh(), LLPanelObject::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), LLDynamicTexture::releaseGLTexture(), LLVOAvatar::releaseMeshData(), LLViewerObject::removeChild(), LLXMLNode::removeChild(), LLObservable::removeListener(), LLViewerJointAttachment::removeObject(), LLVisualParamHint::render(), LLTexLayerParamAlpha::render(), LLHUDEffectLookAt::render(), LLHUDEffectBeam::render(), LLImagePreviewAvatar::render(), LLPreviewAnimation::render(), LLDrawPoolBump::renderGroup(), LLDrawPoolAlpha::renderGroupAlpha(), LLViewerObjectList::renderObjectsForSelect(), renderOctree(), LLVOAvatar::renderSkinned(), LLTextureFetchWorker::resetFormattedData(), LLVOAvatar::resetHUDAttachments(), LLSky::resetVertexBuffers(), LLAgent::resetView(), LLImageGL::restoreGL(), LLSelectNode::saveColors(), LLPreviewNotecard::saveItem(), LLSelectNode::saveTextures(), LLSelectNode::saveTextureScaleRatios(), LLVOVolume::sculpt(), LLSelectMgr::selectionMove(), LLSelectMgr::selectionResetRotation(), LLSelectMgr::selectionRotateAroundZ(), LLSDSerialize::serialize(), LLAgent::setCameraZoomFraction(), LLTextureCache::ReadResponder::setData(), LLObservable::setDispatcher(), LLAgent::setFlying(), LLAgent::setFocusGlobal(), LLViewerObject::setNumTEs(), LLSurface::setOriginGlobal(), LLXMLNode::setParent(), LLViewerObject::setScale(), LLNetMap::setScale(), LLVOVolume::setSelected(), LLShaderMgr::setShaders(), LLSpeakerMgr::setSpeaker(), LLSpeakerMgr::setSpeakerTyping(), LLSky::setSunDirection(), LLTabContainer::setTabImage(), LLViewerObject::setTEBumpmap(), LLViewerObject::setTEColor(), LLViewerObject::setTEFullbright(), LLViewerObject::setTEGlow(), LLViewerObject::setTEImage(), LLViewerObject::setTEMediaFlags(), LLViewerObject::setTEOffset(), LLViewerObject::setTEOffsetS(), LLViewerObject::setTEOffsetT(), LLViewerObject::setTERotation(), LLViewerObject::setTEScale(), LLViewerObject::setTEScaleS(), LLViewerObject::setTEScaleT(), LLViewerObject::setTETextureCore(), LLViewerJointAttachment::setupDrawable(), LLUICtrlFactory::setupPaths(), LLAgent::setupSitCamera(), LLWorldMapView::setVisible(), 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(), 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(), LLVOAvatar::updateShadowFaces(), LLSelectMgr::updateSilhouettes(), LLVOSky::updateSky(), LLDrawable::updateSpatialExtents(), LLIMSpeakerMgr::updateSpeakers(), LLVOVolume::updateTEData(), LLViewerObject::updateText(), LLVOVolume::updateTextures(), LLAgent::validateFocusObject(), LLOctreeDirty::visit(), LLDebugBeacon::~LLDebugBeacon(), LLHTTPPipe::~LLHTTPPipe(), and LLObservable::~LLObservable().

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

Definition at line 157 of file llmemory.h.

References LLPointer< Type >::mPointer.

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>
bool LLPointer< Type >::operator!= ( Type *  ptr  )  const [inline]

Definition at line 159 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 161 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>
bool LLPointer< Type >::operator> ( const LLPointer< Type > &  ptr  )  const [inline]

Definition at line 163 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>
LLPointer<Type>& LLPointer< Type >::operator= ( const LLPointer< Type > &  ptr  )  [inline]

Definition at line 177 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>
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().

Here is the caller graph for this function:

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

Definition at line 210 of file llmemory.h.

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

Here is the caller graph for this function:

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

Definition at line 218 of file llmemory.h.

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

Here is the caller graph for this function:


Member Data Documentation

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


The documentation for this class was generated from the following file:

Generated on Fri May 16 08:59:43 2008 for SecondLife by  doxygen 1.5.5