Ignore:
Timestamp:
Jul 25, 2007, 4:04:11 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Class.h

    r208 r232  
    7171    // 静的メソッド
    7272    Methods staticMethods;
     73
     74    //アラインメント値
     75    int fixedAlignment;
    7376
    7477    // XMLシリアライズ用
     
    9396        ar & BOOST_SERIALIZATION_NVP( vtblNum );
    9497        ar & BOOST_SERIALIZATION_NVP( staticMethods );
     98        ar & BOOST_SERIALIZATION_NVP( fixedAlignment );
    9599    }
    96100
    97101    bool isReady;
    98102public:
    99 
    100     //アラインメント値
    101     int iAlign;
    102103
    103104    CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name )
     
    107108        , pSuperClass( NULL )
    108109        , isReady( false )
    109         , iAlign( 0 )
     110        , fixedAlignment( 0 )
    110111        , ConstructorMemberSubIndex( -1 )
    111112        , DestructorMemberSubIndex( -1 )
     
    123124        , pSuperClass( NULL )
    124125        , isReady( false )
    125         , iAlign( 0 )
     126        , fixedAlignment( 0 )
    126127        , ConstructorMemberSubIndex( -1 )
    127128        , DestructorMemberSubIndex( -1 )
     
    320321    }
    321322
     323    // ユーザ指定のアラインメント固定値
     324    int GetFixedAlignment() const
     325    {
     326        return fixedAlignment;
     327    }
     328    void SetFixedAlignment( int fixedAlignment )
     329    {
     330        this->fixedAlignment = fixedAlignment;
     331    }
     332
    322333    // メンバの総合サイズを取得
    323334    int GetSize() const;
Note: See TracChangeset for help on using the changeset viewer.