LLVolumeMgr Class Reference

#include <llvolumemgr.h>

Collaboration diagram for LLVolumeMgr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVolumeMgr ()
 ~LLVolumeMgr ()
BOOL cleanup ()
LLVolumegetVolume (const LLVolumeParams &volume_params, const S32 detail)
void cleanupVolume (LLVolume *volumep)
void dump ()

Static Public Member Functions

static void initClass ()
static BOOL cleanupClass ()

Protected Types

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

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 77 of file llvolumemgr.h.


Member Typedef Documentation

typedef volume_lod_group_map_t::const_iterator LLVolumeMgr::volume_lod_group_map_iter [protected]

Definition at line 95 of file llvolumemgr.h.

typedef std::map<const LLVolumeParams*, LLVolumeLODGroup*, LLVolumeParams::compare> LLVolumeMgr::volume_lod_group_map_t [protected]

Definition at line 94 of file llvolumemgr.h.


Constructor & Destructor Documentation

LLVolumeMgr::LLVolumeMgr (  ) 

Definition at line 73 of file llvolumemgr.cpp.

References gAPRPoolp, and mDataMutex.

Referenced by initClass().

LLVolumeMgr::~LLVolumeMgr (  ) 

Definition at line 79 of file llvolumemgr.cpp.

References cleanup(), and mDataMutex.


Member Function Documentation

BOOL LLVolumeMgr::cleanup (  ) 

Definition at line 85 of file llvolumemgr.cpp.

References end, FALSE, lldebugs, llendl, llwarns, LLMutex::lock(), mDataMutex, mVolumeLODGroups, TRUE, and LLMutex::unlock().

Referenced by cleanup_app(), cleanupClass(), and ~LLVolumeMgr().

BOOL LLVolumeMgr::cleanupClass (  )  [static]

Definition at line 60 of file llvolumemgr.cpp.

References cleanup(), FALSE, and gVolumeMgr.

Referenced by cleanup_app().

void LLVolumeMgr::cleanupVolume ( LLVolume volumep  ) 

Definition at line 140 of file llvolumemgr.cpp.

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

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

void LLVolumeMgr::dump (  ) 

Definition at line 178 of file llvolumemgr.cpp.

References count, end, f, llendl, llinfos, LLMutex::lock(), mDataMutex, mVolumeLODGroups, and LLMutex::unlock().

Referenced by dump_volume_mgr().

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

Definition at line 113 of file llvolumemgr.cpp.

References LLVolumeLODGroup::getLOD(), LLVolumeLODGroup::getParams(), lldebugs, llendl, LLMutex::lock(), mDataMutex, mVolumeLODGroups, params, LLThreadSafeRefCount::ref(), and LLMutex::unlock().

Referenced by LLPrimitive::setVolume().

void LLVolumeMgr::initClass (  )  [static]

Definition at line 54 of file llvolumemgr.cpp.

References gVolumeMgr, and LLVolumeMgr().

Referenced by main().


Friends And Related Function Documentation

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

Definition at line 195 of file llvolumemgr.cpp.


Member Data Documentation

LLMutex* LLVolumeMgr::mDataMutex [protected]

Definition at line 98 of file llvolumemgr.h.

Referenced by cleanup(), cleanupVolume(), dump(), getVolume(), LLVolumeMgr(), operator<<(), and ~LLVolumeMgr().

volume_lod_group_map_t LLVolumeMgr::mVolumeLODGroups [protected]

Definition at line 96 of file llvolumemgr.h.

Referenced by cleanup(), cleanupVolume(), dump(), getVolume(), and operator<<().


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