Changeset d0b30d4 in tol


Ignore:
Timestamp:
Jan 26, 2009, 3:58:29 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ea1d4f6
Parents:
20663cb
Message:

Member bool createdWithNew_ to distingish objects created in scope from created in stack with new operator.
Method short EnsureIsAssigned() const returns true for objects created in scope and calls IsAssigned method for objects created in stack
Member BText localName_ to difference between full and local name
Metohd void RebuildFullNameDeep(BText parentFullName) that rebuilds recursively full names of members of a NameBlock

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@494 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/tol_bnameblock.h

    r20663cb rd0b30d4  
    5555  static BObjByNameHash usingSymbols_;
    5656  static BObjByClassNameHash usingSymbolsByClass_;
    57 
     57  BText localName_;
     58  bool createdWithNew_;
    5859public:
    5960  static bool Initialize();
    … …  
    7475
    7576  BNameBlock();
    76   BNameBlock(const BText& fullName);
     77  BNameBlock(const BText& fullName, const BText& localName);
    7778 ~BNameBlock();
    7879  BNameBlock(const BNameBlock& ns);
    … …  
    8081
    8182  int Level() const;
     83  const BText& LocalName() const { return(localName_); };
     84  void PutLocalName(const BText& localName) { localName_ = localName; };
    8285  const BObjByNameHash& Public () const { return(public_ ); }
    8386        BObjByNameHash& Public ()       { return(public_ ); }
    … …  
    98101  BList* SelectMembers(BList* lst, const BObjClassify&  oc);
    99102  BList* SelectMembersDeep(BList* lst, const BObjClassify&  oc);
     103  void RebuildFullNameDeep(BText parentFullName);
     104
     105  short EnsureIsAssigned() const;
    100106
    101107  DeclareClassNewDelete(BNameBlock);
     108
     109
    102110};
    103111
Note: See TracChangeset for help on using the changeset viewer.