Show
Ignore:
Timestamp:
12/12/07 18:00:42 (1 year ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/Base/Base/OSGContainerForwards.h

    r1020 r1032  
    252252/*-------------------------------------------------------------------------*/ 
    253253 
    254 typedef InternalRefCountPtrBuilder<FieldBundle, FieldBundle>::Ptr 
    255     FieldBundleInternalRefP; 
    256 typedef ParentPtrBuilder          <FieldBundle>::Ptr 
     254typedef RefCountPtrBuilder<FieldBundle, FieldBundle>::Ptr 
     255    FieldBundleRefP; 
     256typedef ParentPtrBuilder  <FieldBundle>::Ptr 
    257257    FieldBundleParentP; 
    258258 
    259 typedef InternalRefCountPtrBuilder<FieldContainer>::Ptr 
    260     FieldContainerInternalRefPtr; 
    261 typedef ParentPtrBuilder          <FieldContainer>::Ptr 
     259typedef RefCountPtrBuilder<FieldContainer>::Ptr 
     260    FieldContainerRefPtr; 
     261typedef ParentPtrBuilder  <FieldContainer>::Ptr 
    262262    FieldContainerParentPtr; 
    263263 
    264 typedef InternalRefCountPtrBuilder<FieldContainerAttachment>::Ptr 
    265     FieldContainerAttachmentInternalRefPtr; 
    266 typedef ParentPtrBuilder          <FieldContainerAttachment>::Ptr 
     264typedef RefCountPtrBuilder<FieldContainerAttachment>::Ptr 
     265    FieldContainerAttachmentRefPtr; 
     266typedef ParentPtrBuilder  <FieldContainerAttachment>::Ptr 
    267267    FieldContainerAttachmentParentPtr; 
    268268     
    269 typedef InternalRefCountPtrBuilder<AttachmentContainer>::Ptr 
    270     AttachmentContainerInternalRefPtr; 
    271 typedef ParentPtrBuilder          <AttachmentContainer>::Ptr 
     269typedef RefCountPtrBuilder<AttachmentContainer>::Ptr 
     270    AttachmentContainerRefPtr; 
     271typedef ParentPtrBuilder  <AttachmentContainer>::Ptr 
    272272    AttachmentContainerParentPtr; 
    273273     
    274 typedef InternalRefCountPtrBuilder<Node>::Ptr 
    275     NodeInternalRefPtr; 
    276 typedef ParentPtrBuilder          <Node>::Ptr 
    277     NodeParentPtr; 
    278      
    279 typedef InternalRefCountPtrBuilder<NodeCore>::Ptr 
    280     NodeCoreInternalRefPtr; 
    281 typedef ParentPtrBuilder          <NodeCore>::Ptr 
    282     NodeCoreParentPtr; 
     274typedef RefCountPtrBuilder<Node>::Ptr NodeRefPtr; 
     275typedef ParentPtrBuilder  <Node>::Ptr NodeParentPtr; 
     276     
     277typedef RefCountPtrBuilder<NodeCore>::Ptr NodeCoreRefPtr; 
     278typedef ParentPtrBuilder  <NodeCore>::Ptr NodeCoreParentPtr; 
    283279     
    284280OSG_GEN_BUNDLEP(FieldBundle);