Changeset 266 for trunk/src/uid.cc


Ignore:
Timestamp:
06/19/14 03:49:49 (11 years ago)
Author:
epyon
Message:
  • decoupling - uid_store independent of nv::object
  • decoupling - nv::object no longer linked with lua in any way
  • decoupling - gui::element related object methods moved to element
  • uid_store can operate on void* or specialized base class
  • root class no longer carries uid store nor lua state (will be removed later)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uid.cc

    r59 r266  
    99using namespace nv;
    1010
    11 uid_store::uid_store()
     11uid_store_raw::uid_store_raw()
    1212        : m_map(), m_current(0)
    1313{
     
    1515}
    1616
    17 object* uid_store::get( uid auid ) const
     17void* uid_store_raw::get( uid auid ) const
    1818{
    1919        map::const_iterator i = m_map.find( auid );
     
    2525}
    2626
    27 bool uid_store::remove( uid auid )
     27bool uid_store_raw::remove( uid auid )
    2828{
    2929        return m_map.erase( auid ) != 0;
    3030}
    3131
    32 void uid_store::insert( object* o, uid auid )
     32void uid_store_raw::insert( void* o, uid auid )
    3333{
    3434        m_map[ auid ] = o;
    3535}
    3636
    37 uid uid_store::insert( object* o )
     37uid uid_store_raw::insert( void* o )
    3838{
    3939        uid u = request_uid();
     
    4242}
    4343
    44 uid uid_store::request_uid()
     44uid uid_store_raw::request_uid()
    4545{
    4646        return ++m_current;
    4747}
    4848
    49 uid_store::~uid_store()
     49uid_store_raw::~uid_store_raw()
    5050{
    5151        // no-op
Note: See TracChangeset for help on using the changeset viewer.