#include <Media.hh>
Collaboration diagram for _Tables:

Public Member Functions | |
| void | reclaimIfPossible () |
Static Public Member Functions | |
| static _Tables * | getOurTables (UsageEnvironment &env, Boolean createIfNotPresent=True) |
Data Fields | |
| MediaLookupTable * | mediaTable |
| void * | socketTable |
Protected Member Functions | |
| _Tables (UsageEnvironment &env) | |
| virtual | ~_Tables () |
Private Attributes | |
| UsageEnvironment & | fEnv |
Definition at line 120 of file Media.hh.
| _Tables::_Tables | ( | UsageEnvironment & | env | ) | [protected] |
Definition at line 111 of file Media.cpp.
Referenced by getOurTables().
00112 : mediaTable(NULL), socketTable(NULL), fEnv(env) { 00113 }
| _Tables * _Tables::getOurTables | ( | UsageEnvironment & | env, | |
| Boolean | createIfNotPresent = True | |||
| ) | [static] |
Definition at line 97 of file Media.cpp.
References _Tables(), env, UsageEnvironment::liveMediaPriv, and NULL.
Referenced by lookupSocketDescriptor(), MediaLookupTable::ourMedia(), MediaLookupTable::remove(), removeSocketDescription(), and socketHashTable().
00097 { 00098 if (env.liveMediaPriv == NULL && createIfNotPresent) { 00099 env.liveMediaPriv = new _Tables(env); 00100 } 00101 return (_Tables*)(env.liveMediaPriv); 00102 }
| void _Tables::reclaimIfPossible | ( | ) |
Definition at line 104 of file Media.cpp.
References fEnv, UsageEnvironment::liveMediaPriv, mediaTable, NULL, and socketTable.
00104 { 00105 if (mediaTable == NULL && socketTable == NULL) { 00106 fEnv.liveMediaPriv = NULL; 00107 delete this; 00108 } 00109 }
Definition at line 127 of file Media.hh.
Referenced by MediaLookupTable::ourMedia(), reclaimIfPossible(), and MediaLookupTable::remove().
| void* _Tables::socketTable |
UsageEnvironment& _Tables::fEnv [private] |
1.5.2