LLVolumeMgr Class Reference

#include <llvolumemgr.h>

Collaboration diagram for LLVolumeMgr:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLVolumeMgr ()
virtual ~LLVolumeMgr ()
BOOL cleanup ()
virtual LLVolumeLODGroupgetGroup (const LLVolumeParams &volume_params) const
LLVolumerefVolume (const LLVolumeParams &volume_params, const S32 detail)
void unrefVolume (LLVolume *volumep)
void dump ()
void useMutex ()

Protected Types

typedef std::map< const
LLVolumeParams
*, LLVolumeLODGroup
*, LLVolumeParams::compare
volume_lod_group_map_t

Protected Member Functions

void insertGroup (LLVolumeLODGroup *volgroup)
virtual LLVolumeLODGroupcreateNewGroup (const LLVolumeParams &volume_params)

Protected Attributes

volume_lod_group_map_t mVolumeLODGroups
LLMutexmDataMutex

Friends

std::ostream & operator<< (std::ostream &s, const LLVolumeMgr &volume_mgr)


Detailed Description

Definition at line 82 of file llvolumemgr.h.


Member Typedef Documentation

Definition at line 110 of file llvolumemgr.h.


Constructor & Destructor Documentation

LLVolumeMgr::LLVolumeMgr (  ) 

Definition at line 52 of file llvolumemgr.cpp.

LLVolumeMgr::~LLVolumeMgr (  )  [virtual]

Definition at line 60 of file llvolumemgr.cpp.

References cleanup(), mDataMutex, and NULL.

Here is the call graph for this function:


Member Function Documentation

BOOL LLVolumeMgr::cleanup (  ) 

Definition at line 68 of file llvolumemgr.cpp.

References LLVolumeLODGroup::cleanupRefs(), FALSE, LLMutex::lock(), mDataMutex, mVolumeLODGroups, TRUE, and LLMutex::unlock().

Referenced by LLAppViewer::cleanup(), LLPrimitive::cleanupVolumeManager(), and ~LLVolumeMgr().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVolumeLODGroup * LLVolumeMgr::getGroup ( const LLVolumeParams volume_params  )  const [virtual]

Definition at line 122 of file llvolumemgr.cpp.

References LLMutex::lock(), mDataMutex, mVolumeLODGroups, NULL, and LLMutex::unlock().

Here is the call graph for this function:

LLVolume * LLVolumeMgr::refVolume ( const LLVolumeParams volume_params,
const S32  detail 
)

Definition at line 98 of file llvolumemgr.cpp.

References createNewGroup(), LLVolumeLODGroup::getLODVolume(), LLMutex::lock(), mDataMutex, mVolumeLODGroups, and LLMutex::unlock().

Referenced by LLPrimitive::setVolume().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVolumeMgr::unrefVolume ( LLVolume volumep  ) 

Definition at line 141 of file llvolumemgr.cpp.

References LLVolumeLODGroup::derefLOD(), LLVolumeLODGroup::getNumRefs(), LLVolume::getParams(), LLVolume::isUnique(), llendl, llerrs, LLMutex::lock(), mDataMutex, mVolumeLODGroups, and LLMutex::unlock().

Referenced by LLPrimitive::setVolume(), and LLPrimitive::~LLPrimitive().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLVolumeMgr::dump (  ) 

Definition at line 197 of file llvolumemgr.cpp.

References LLVolumeLODGroup::dump(), llendl, llinfos, LLMutex::lock(), mDataMutex, mVolumeLODGroups, and LLMutex::unlock().

Here is the call graph for this function:

void LLVolumeMgr::useMutex (  ) 

Definition at line 220 of file llvolumemgr.cpp.

References gAPRPoolp, and mDataMutex.

void LLVolumeMgr::insertGroup ( LLVolumeLODGroup volgroup  )  [protected]

Definition at line 182 of file llvolumemgr.cpp.

References LLVolumeLODGroup::getVolumeParams(), and mVolumeLODGroups.

Referenced by createNewGroup().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVolumeLODGroup * LLVolumeMgr::createNewGroup ( const LLVolumeParams volume_params  )  [protected, virtual]

Definition at line 188 of file llvolumemgr.cpp.

References insertGroup(), and LLMemType::MTYPE_VOLUME.

Referenced by refVolume().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLVolumeMgr volume_mgr 
) [friend]

Definition at line 228 of file llvolumemgr.cpp.


Member Data Documentation

Definition at line 111 of file llvolumemgr.h.

Referenced by cleanup(), dump(), getGroup(), insertGroup(), operator<<(), refVolume(), and unrefVolume().


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

Generated on Fri May 16 09:37:51 2008 for SecondLife by  doxygen 1.5.5