sownstck.hxx (c945f255) | sownstck.hxx (a0d53b35) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 99 unchanged lines hidden (view full) --- 108/* The implementation is in header, though not inline, because this file is included 109 in cxt2ary.cxx only! 110*/ 111 112inline ary::cpp::Namespace & 113ContextForAry:: 114S_OwnerStack::CurNamespace() const 115{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 99 unchanged lines hidden (view full) --- 108/* The implementation is in header, though not inline, because this file is included 109 in cxt2ary.cxx only! 110*/ 111 112inline ary::cpp::Namespace & 113ContextForAry:: 114S_OwnerStack::CurNamespace() const 115{ |
116 csv_assert( aStack_Namespaces.size() > 0 ); | 116 csv_assert( ! aStack_Namespaces.empty() ); |
117 return *aStack_Namespaces.top(); 118} 119 120inline ary::cpp::Class * 121ContextForAry:: 122S_OwnerStack::CurClass() const 123{ 124 return !aStack_Classes.empty() --- 74 unchanged lines hidden (view full) --- 199 ++nExternC; 200// SetOwner_2None(); 201} 202 203inline void 204ContextForAry:: 205S_OwnerStack::SetCurProtection( ary::cpp::E_Protection i_eProtection ) 206{ | 117 return *aStack_Namespaces.top(); 118} 119 120inline ary::cpp::Class * 121ContextForAry:: 122S_OwnerStack::CurClass() const 123{ 124 return !aStack_Classes.empty() --- 74 unchanged lines hidden (view full) --- 199 ++nExternC; 200// SetOwner_2None(); 201} 202 203inline void 204ContextForAry:: 205S_OwnerStack::SetCurProtection( ary::cpp::E_Protection i_eProtection ) 206{ |
207 csv_assert( aStack_Classes.size() > 0 ); | 207 csv_assert( ! aStack_Classes.empty() ); |
208 aStack_Classes.top().second = i_eProtection; 209} 210 211inline ary::cpp::Enum * 212ContextForAry:: 213S_OwnerStack::CurEnum() const 214{ 215 return pCurEnum; --- 106 unchanged lines hidden --- | 208 aStack_Classes.top().second = i_eProtection; 209} 210 211inline ary::cpp::Enum * 212ContextForAry:: 213S_OwnerStack::CurEnum() const 214{ 215 return pCurEnum; --- 106 unchanged lines hidden --- |