Changeset 1130

Show
Ignore:
Timestamp:
04/06/08 23:01:40 (5 months ago)
Author:
vossg
Message:

fixed: changned internal names

: completion for merge

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrMFieldBase.h

    r1120 r1130  
    5757  public: 
    5858 
    59     typedef       MFieldVector<FieldContainerPtr>     StorageType; 
    60     typedef       StorageType::Inherited              StorageTypeParent; 
     59    typedef       Field                               Inherited; 
     60    typedef       FieldContainerPtrMFieldBase         Self; 
     61 
     62    typedef       FieldContainerPtr                   StoredType; 
     63    typedef       MFieldVector<StoredType>            StorageType; 
    6164 
    6265    typedef       StorageType::const_iterator         const_iterator; 
    63  
    64     typedef const FieldContainerPtr                   const_reference; 
     66    typedef       StorageType::const_reverse_iterator const_reverse_iterator; 
     67 
     68    typedef       StorageType::const_iterator         StorageConstIt; 
     69 
     70    typedef const FieldContainerPtr                   const_value; 
    6571 
    6672    typedef       StorageType::size_type              size_type; 
     73    typedef       StorageType::difference_type        difference_type; 
     74 
    6775 
    6876    typedef       FieldTraits<FieldContainerPtr, 0>   MFieldTraits; 
    6977  
    70     typedef       FieldContainerPtrMFieldBase         Self; 
    71  
    72     typedef       FieldContainerPtr                   StoredType; 
    73     typedef       FieldContainerPtr                   ArgumentType; 
    7478 
    7579    typedef       EditMFieldHandle <Self      >       EditHandle; 
     
    111115    /*! \{                                                                 */ 
    112116 
    113     const_iterator begin    (void              ) const; 
    114     const_iterator end      (void              ) const; 
     117    const_iterator         begin    (void             ) const; 
     118    const_iterator         end      (void             ) const; 
    115119     
    116     Int32          findIndex(ArgumentType value) const; 
    117  
    118     size_type      size     (void              ) const; 
    119     size_type      capacity (void              ) const; 
    120     bool           empty    (void              ) const; 
     120    const_reverse_iterator rbegin   (void             ) const; 
     121    const_reverse_iterator rend     (void             ) const; 
     122 
     123    const_value            front    (void             ) const; 
     124    const_value            back     (void             ) const; 
     125 
     126    bool                   empty    (void             ) const; 
     127    size_type              size     (void             ) const; 
     128    size_type              max_size (void             ) const; 
     129    size_type              capacity (void             ) const; 
     130 
     131    Int32                  findIndex(const_value value) const; 
    121132 
    122133    /*! \}                                                                 */ 
     
    125136    /*! \{                                                                 */ 
    126137 
    127     const_reference operator [](UInt32 index) const; 
     138    const_value operator [](const UInt32 index) const; 
     139    const_value at         (const UInt32 index) const; 
    128140 
    129141    /*! \}                                                                 */ 
     
    166178 
    167179    typedef StorageType::iterator iterator; 
     180    typedef StorageType::iterator StorageIt; 
    168181 
    169182    /*---------------------------------------------------------------------*/ 
     
    171184    /*! \{                                                                 */ 
    172185 
    173     typedef Field Inherited; 
    174186 
    175187    /*! \}                                                                 */ 
     
    178190    /*! \{                                                                 */ 
    179191 
    180              FieldContainerPtrMFieldBase(void); 
    181 //    explicit FieldContainerPtrMFieldBase(const UInt32  size); 
    182  
     192    FieldContainerPtrMFieldBase(void); 
     193              
    183194    /*! \}                                                                 */ 
    184195    /*---------------------------------------------------------------------*/ 
     
    191202    /*---------------------------------------------------------------------*/ 
    192203    /*! \name                   STL Interface                              */ 
    193     /*! \{                                                                 */ 
    194  
    195  
    196     /*! \}                                                                 */ 
    197     /*---------------------------------------------------------------------*/ 
    198     /*! \name                      Get                                     */ 
    199     /*! \{                                                                 */ 
    200  
    201     /*! \}                                                                 */ 
    202     /*---------------------------------------------------------------------*/ 
    203     /*! \name                      Set                                     */ 
    204     /*! \{                                                                 */ 
    205  
    206     /*! \}                                                                 */ 
    207     /*---------------------------------------------------------------------*/ 
    208     /*! \name                   Binary Interface                           */ 
    209     /*! \{                                                                 */ 
    210  
    211     /*! \}                                                                 */ 
    212     /*---------------------------------------------------------------------*/ 
    213     /*! \name                      MT Sync                                 */ 
    214204    /*! \{                                                                 */ 
    215205 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrMFieldBase.inl

    r1110 r1130  
    7878} 
    7979 
    80 inline 
    81 Int32 FieldContainerPtrMFieldBase::findIndex(ArgumentType value) const 
     80inline  
     81FieldContainerPtrMFieldBase::const_reverse_iterator 
     82    FieldContainerPtrMFieldBase::rbegin(void) const 
     83
     84    return _values.rbegin(); 
     85
     86 
     87inline  
     88FieldContainerPtrMFieldBase::const_reverse_iterator 
     89    FieldContainerPtrMFieldBase::rend(void) const 
     90
     91    return _values.rend(); 
     92
     93 
     94inline  
     95FieldContainerPtrMFieldBase::const_value 
     96    FieldContainerPtrMFieldBase::front(void) const 
     97
     98    return _values.front(); 
     99
     100 
     101inline  
     102FieldContainerPtrMFieldBase::const_value 
     103    FieldContainerPtrMFieldBase::back(void) const 
     104
     105    return _values.back(); 
     106
     107 
     108inline 
     109bool FieldContainerPtrMFieldBase::empty(void) const 
     110
     111    return _values.empty(); 
     112
     113 
     114inline 
     115FieldContainerPtrMFieldBase::size_type  
     116    FieldContainerPtrMFieldBase::size(void) const 
     117
     118    return _values.size(); 
     119
     120 
     121inline  
     122FieldContainerPtrMFieldBase::size_type 
     123    FieldContainerPtrMFieldBase::max_size(void) const 
     124
     125    return _values.max_size(); 
     126
     127 
     128inline 
     129FieldContainerPtrMFieldBase::size_type 
     130    FieldContainerPtrMFieldBase::capacity(void) const 
     131
     132    return _values.capacity(); 
     133
     134 
     135 
     136inline 
     137Int32 FieldContainerPtrMFieldBase::findIndex(const_value value) const 
    82138{ 
    83139    const_iterator it = std::find(_values.begin(), _values.end(), value); 
     
    93149} 
    94150 
    95 inline 
    96 FieldContainerPtrMFieldBase::size_type  
    97     FieldContainerPtrMFieldBase::size(void) const 
    98 
    99     return _values.size(); 
    100 
    101  
    102 inline 
    103 FieldContainerPtrMFieldBase::size_type 
    104     FieldContainerPtrMFieldBase::capacity(void) const 
    105 
    106     return _values.capacity(); 
    107 
    108  
    109 inline 
    110 bool FieldContainerPtrMFieldBase::empty(void) const 
    111 
    112     return _values.empty(); 
     151 
     152inline 
     153FieldContainerPtrMFieldBase::const_value  
     154    FieldContainerPtrMFieldBase::operator [](UInt32 index) const 
     155
     156    return _values[index]; 
     157
     158 
     159inline  
     160FieldContainerPtrMFieldBase::const_value  
     161    FieldContainerPtrMFieldBase::at(UInt32 const index) const 
     162
     163    return _values.at(index); 
    113164} 
    114165 
     
    117168{ 
    118169    return _values == source._values; 
    119 } 
    120  
    121 inline 
    122 FieldContainerPtrMFieldBase::const_reference  
    123     FieldContainerPtrMFieldBase::operator [](UInt32 index) const 
    124 { 
    125     return _values[index]; 
    126170} 
    127171 
     
    149193 
    150194inline 
    151 bool FieldContainerPtrMFieldBase::isShared(void) 
     195bool FieldContainerPtrMFieldBase::isShared(void) 
    152196{ 
    153197    return false; 
    154198} 
    155199#endif 
     200 
    156201 
    157202inline 
     
    162207} 
    163208 
    164 #if 0 
    165 inline 
    166 FieldContainerPtrMFieldBase::FieldContainerPtrMFieldBase(const Self &obj) : 
    167      Inherited(obj        ), 
    168     _values   (obj._values) 
    169 { 
    170 } 
    171  
    172 inline 
    173 FieldContainerPtrMFieldBase::FieldContainerPtrMFieldBase(const UInt32 size) : 
    174      Inherited(), 
    175     _values   () 
    176 { 
    177     _values.resize(size, NULL); 
    178 } 
    179 #endif 
    180  
    181209inline 
    182210FieldContainerPtrMFieldBase::~FieldContainerPtrMFieldBase(void) 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrParentMField.h

    r1126 r1130  
    6363 
    6464    typedef typename StorageType::reference                   reference; 
    65     typedef typename StorageType::const_reference             const_reference; 
     65    typedef const    ValueT                                   const_reference; 
    6666 
    6767    typedef typename StorageType::size_type                   size_type; 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrSFieldBase.h

    r1109 r1130  
    5555  public: 
    5656 
     57    typedef       Field                                    Inherited; 
     58 
     59    typedef       FieldContainerPtrSFieldBase              Self; 
    5760    typedef       FieldTraits      <FieldContainerPtr, 0>  SFieldTraits; 
    58     typedef       FieldContainerPtrSFieldBase              Self; 
    5961 
    6062    typedef       FieldContainerPtr                        StoredType; 
    61     typedef const FieldContainerPtr                        const_reference; 
    62  
    63     typedef const FieldContainerPtr                        ArgumentType; 
     63    typedef const FieldContainerPtr                        const_value; 
    6464 
    6565    typedef       EditSFieldHandle <Self      >            EditHandle; 
     
    8787    /*! \{                                                                 */ 
    8888 
    89     const_reference getValue(void) const; 
     89    const_value getValue(void) const; 
    9090 
    9191    /*! \}                                                                 */ 
     
    119119    /*! \{                                                                 */ 
    120120 
    121     typedef Field Inherited; 
    122  
    123121    /*! \}                                                                 */ 
    124122    /*---------------------------------------------------------------------*/ 
     
    126124    /*! \{                                                                 */ 
    127125 
    128              FieldContainerPtrSFieldBase(void                     ); 
    129              FieldContainerPtrSFieldBase(const Self        &obj  ); 
    130     explicit FieldContainerPtrSFieldBase(      ArgumentType  value); 
     126             FieldContainerPtrSFieldBase(      void               ); 
     127             FieldContainerPtrSFieldBase(const Self        &source); 
     128    explicit FieldContainerPtrSFieldBase(      const_value  value ); 
    131129 
    132130    /*! \}                                                                 */ 
  • trunk/Source/System/FieldContainer/Fields/Base/OSGFieldContainerPtrSFieldBase.inl

    r1109 r1130  
    4747 
    4848inline 
    49 FieldContainerPtrSFieldBase::FieldContainerPtrSFieldBase(const Self &obj) : 
    50      Inherited (obj            ), 
    51     _fieldValue(obj._fieldValue) 
     49FieldContainerPtrSFieldBase::FieldContainerPtrSFieldBase(const Self &source) : 
     50     Inherited (source            ), 
     51    _fieldValue(source._fieldValue) 
    5252{ 
    5353} 
    5454 
    5555inline 
    56 FieldContainerPtrSFieldBase::FieldContainerPtrSFieldBase(ArgumentType value) : 
     56FieldContainerPtrSFieldBase::FieldContainerPtrSFieldBase( 
     57    const_value value) : 
     58 
    5759     Inherited (     ), 
    5860    _fieldValue(value) 
     
    6668 
    6769inline 
     70FieldContainerPtrSFieldBase::const_value  
     71    FieldContainerPtrSFieldBase::getValue(void) const 
     72{ 
     73    return _fieldValue; 
     74} 
     75 
     76inline 
    6877UInt32 FieldContainerPtrSFieldBase::getBinSize(void) const 
    6978{ 
     
    7180} 
    7281 
    73 inline 
    74 FieldContainerPtrSFieldBase::const_reference  
    75     FieldContainerPtrSFieldBase::getValue(void) const 
    76 { 
    77     return _fieldValue; 
    78 } 
    7982 
    8083inline