Show
Ignore:
Timestamp:
01/16/08 16:07:40 (10 months ago)
Author:
cneumann
Message:

changed: - factory functions return a TransitPtr? that can not be implicitly

converted to C Ptr. Should help with porting.

added: - GlobalRefPtr?, needed for cases where upon return from main

a RefPtr? goes out of scope (it would attempt to access the
FCFactory which is already shutdown at that point).

status: - vrml loader does not compile (needs porting to ref ptr)

  • tutorials compile, run and exit cleanly
  • multithreading and cluster are untested, yet
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Depreciated/State/OSGCubeTextureChunkBase.cpp

    r1032 r1039  
    440440 
    441441//! create a new instance of the class 
    442 CubeTextureChunkBase::ObjRefPtr 
     442CubeTextureChunkBase::ObjTransitPtr 
    443443CubeTextureChunkBase::create(void) 
    444444{ 
    445     ObjRefPtr pFC; 
     445    ObjTransitPtr pFC; 
    446446 
    447447    if(getClassType().getPrototype() != NullFC) 
    448448    { 
    449         pFC = boost::dynamic_pointer_cast<CubeTextureChunk>( 
     449        pFC = boost::dynamic_pointer_cast< CubeTextureChunk >( 
    450450            getClassType().getPrototype()->shallowCopy()); 
    451451    } 
     
    464464} 
    465465 
    466 FieldContainerRefPtr 
     466FieldContainerTransitPtr 
    467467CubeTextureChunkBase::shallowCopy(void) const 
    468468{ 
     
    471471    newPtr(returnValue, dynamic_cast<const CubeTextureChunk *>(this)); 
    472472 
    473     return FieldContainerRefPtr(returnValue); 
     473    return FieldContainerTransitPtr(returnValue); 
    474474} 
    475475