Show
Ignore:
Timestamp:
04/07/08 02:50:33 (8 months ago)
Author:
vossg
Message:

changed: merged some merge changes back to have a running reference

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/Base/OSGPointerSFieldBase.inl

    r1072 r1138  
     1/*---------------------------------------------------------------------------*\ 
     2 *                                OpenSG                                     * 
     3 *                                                                           * 
     4 *                                                                           * 
     5 *           Copyright (C) 2008 by the OpenSG Forum                          * 
     6 *                                                                           * 
     7 *                            www.opensg.org                                 * 
     8 *                                                                           * 
     9 *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          * 
     10 *                                                                           * 
     11\*---------------------------------------------------------------------------*/ 
     12/*---------------------------------------------------------------------------*\ 
     13 *                                License                                    * 
     14 *                                                                           * 
     15 * This library is free software; you can redistribute it and/or modify it   * 
     16 * under the terms of the GNU Library General Public License as published    * 
     17 * by the Free Software Foundation, version 2.                               * 
     18 *                                                                           * 
     19 * This library is distributed in the hope that it will be useful, but       * 
     20 * WITHOUT ANY WARRANTY; without even the implied warranty of                * 
     21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         * 
     22 * Library General Public License for more details.                          * 
     23 *                                                                           * 
     24 * You should have received a copy of the GNU Library General Public         * 
     25 * License along with this library; if not, write to the Free Software       * 
     26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 * 
     27 *                                                                           * 
     28\*---------------------------------------------------------------------------*/ 
     29/*---------------------------------------------------------------------------*\ 
     30 *                                Changes                                    * 
     31 *                                                                           * 
     32 *                                                                           * 
     33 *                                                                           * 
     34 *                                                                           * 
     35 *                                                                           * 
     36 *                                                                           * 
     37\*---------------------------------------------------------------------------*/ 
    138 
    239#ifdef OSG_DOC_FILES_IN_MODULE 
     
    1552 
    1653inline 
    17     PointerSFieldBase::PointerSFieldBase(void) 
    18      
    19     : Inherited  (), 
    20       _fieldValue() 
     54PointerSFieldBase::PointerSFieldBase(void) :  
     55     Inherited (      ), 
     56    _fieldValue(NullFC) 
    2157{ 
    22     // nothing to do 
     58
     59 
     60inline  
     61PointerSFieldBase::PointerSFieldBase(Self const &source) : 
     62     Inherited (source            ), 
     63    _fieldValue(source._fieldValue) 
     64
    2365} 
    2466 
    2567inline 
    26     PointerSFieldBase::PointerSFieldBase(Self const &source) 
    27      
    28     : Inherited  (source            ), 
    29       _fieldValue(source._fieldValue) 
     68PointerSFieldBase::PointerSFieldBase(const_value value) : 
     69     Inherited (     ), 
     70    _fieldValue(value) 
    3071{ 
    31     // nothing to do 
    32 } 
    33  
    34 inline 
    35     PointerSFieldBase::PointerSFieldBase(FieldContainerPtrConst value) 
    36      
    37     : Inherited  (     ), 
    38       _fieldValue(value) 
    39 { 
    40     // nothing to do 
    4172} 
    4273 
     
    4576 
    4677inline 
    47     PointerSFieldBase::~PointerSFieldBase(void) 
     78PointerSFieldBase::~PointerSFieldBase(void) 
    4879{ 
    49     // nothing to do 
    5080} 
    5181 
     
    5383/* Raw Store Access                                                        */ 
    5484 
    55 inline PointerSFieldBase::StoredTypeRef 
    56     PointerSFieldBase::editRawStore(void) 
     85 
     86inline  
     87PointerSFieldBase::const_value PointerSFieldBase::getValue(void) const 
    5788{ 
    5889    return _fieldValue; 
    5990} 
    6091 
    61 inline PointerSFieldBase::StoredTypeConstRef 
    62     PointerSFieldBase::getRawStore(void) const 
     92inline 
     93UInt32 PointerSFieldBase::getBinSize(void) const 
     94
     95    return SFieldTraits::getBinSize(_fieldValue); 
     96
     97 
     98 
     99inline 
     100void PointerSFieldBase::copyToBin(BinaryDataHandler &pMem) const 
     101
     102    SFieldTraits::copyToBin( pMem,  
     103                            _fieldValue); 
     104
     105 
     106inline 
     107bool PointerSFieldBase::operator ==(const Self &source) const 
     108
     109    return _fieldValue == source._fieldValue; 
     110
     111 
     112inline 
     113PointerSFieldBase::StoredType &PointerSFieldBase::editRawStore(void) 
     114
     115    return _fieldValue; 
     116
     117 
     118inline 
     119PointerSFieldBase::StoredType const &PointerSFieldBase::getRawStore (void) const 
    63120{ 
    64121    return _fieldValue;