Changeset 266 for trunk/src/uid.cc
- Timestamp:
- 06/19/14 03:49:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uid.cc
r59 r266 9 9 using namespace nv; 10 10 11 uid_store ::uid_store()11 uid_store_raw::uid_store_raw() 12 12 : m_map(), m_current(0) 13 13 { … … 15 15 } 16 16 17 object* uid_store::get( uid auid ) const17 void* uid_store_raw::get( uid auid ) const 18 18 { 19 19 map::const_iterator i = m_map.find( auid ); … … 25 25 } 26 26 27 bool uid_store ::remove( uid auid )27 bool uid_store_raw::remove( uid auid ) 28 28 { 29 29 return m_map.erase( auid ) != 0; 30 30 } 31 31 32 void uid_store ::insert( object* o, uid auid )32 void uid_store_raw::insert( void* o, uid auid ) 33 33 { 34 34 m_map[ auid ] = o; 35 35 } 36 36 37 uid uid_store ::insert( object* o )37 uid uid_store_raw::insert( void* o ) 38 38 { 39 39 uid u = request_uid(); … … 42 42 } 43 43 44 uid uid_store ::request_uid()44 uid uid_store_raw::request_uid() 45 45 { 46 46 return ++m_current; 47 47 } 48 48 49 uid_store ::~uid_store()49 uid_store_raw::~uid_store_raw() 50 50 { 51 51 // no-op
Note: See TracChangeset
for help on using the changeset viewer.