Ignore:
Timestamp:
Jun 26, 2007, 12:05:36 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/smoothie/Class.h

    r181 r190  
    11#pragma once
     2
     3#include <jenga/include/common/BoostXmlSupport.h>
    24
    35#include "Prototype.h"
     
    8385
    8486    CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name );
     87    CClass()
     88        : Prototype()
     89    {
     90    }
    8591    ~CClass();
    8692
     
    259265    CClass *pobj_NextClass;
    260266
    261 
     267    // XMLシリアライズ用
     268private:
     269    friend class boost::serialization::access;
     270    template<class Archive> void serialize(Archive& ar, const unsigned int version)
     271    {
     272        ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Prototype );
     273        ar & BOOST_SERIALIZATION_NVP( classType );
     274    }
     275
     276
     277public:
    262278    static bool SplitName( const char *desc, char *object, char *member, CClass::RefType &refType ){
    263279        int lastIndex = -1;
     
    305321class Classes
    306322{
    307     int hash(const char *name) const;
     323    int GetHashCode(const char *name) const;
    308324    void DestroyClass(CClass *pobj_c);
    309325public:
     
    318334
    319335    virtual CClass *Create( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name) = 0;
     336    bool Insert( CClass *pClass );
    320337    CClass *Add( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine);
    321338
     
    360377    /////////////////////
    361378private:
    362     CClass **ppobj_IteClass;
    363     int iIteMaxNum;
    364     int iIteNextNum;
    365 public:
    366     void Iterator_Init(void);
    367     void Iterator_Reset(void);
    368     BOOL Iterator_HasNext(void);
    369     CClass *Iterator_GetNext(void);
    370     int Iterator_GetMaxCount(void);
     379    mutable CClass **ppobj_IteClass;
     380    mutable int iIteMaxNum;
     381    mutable int iIteNextNum;
     382public:
     383    void Iterator_Init() const;
     384    void Iterator_Reset() const;
     385    BOOL Iterator_HasNext() const;
     386    CClass *Iterator_GetNext() const;
     387    int Iterator_GetMaxCount() const;
    371388};
Note: See TracChangeset for help on using the changeset viewer.