#include <llvolumemgr.h>
Collaboration diagram for LLVolumeMgr:
Public Member Functions | |
LLVolumeMgr () | |
~LLVolumeMgr () | |
BOOL | cleanup () |
LLVolume * | getVolume (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 |
LLMutex * | mDataMutex |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLVolumeMgr &volume_mgr) |
Definition at line 77 of file llvolumemgr.h.
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.
LLVolumeMgr::LLVolumeMgr | ( | ) |
Definition at line 73 of file llvolumemgr.cpp.
References gAPRPoolp, and mDataMutex.
Referenced by initClass().
LLVolumeMgr::~LLVolumeMgr | ( | ) |
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().
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().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLVolumeMgr & | volume_mgr | |||
) | [friend] |
Definition at line 195 of file llvolumemgr.cpp.
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<<().