@@ -147,16 +147,19 @@ class CoreContext:
147
147
// / \sa AutoGlobalContext, GlobalCoreContext
148
148
static std::shared_ptr<CoreContext> GetGlobal (void );
149
149
150
+ // The number of ancestors of this context. The global context is defined to have zero ancestors.
151
+ const size_t AncestorCount = 0 ;
152
+
153
+ // Sigil type, used during bolting
154
+ const auto_id SigilType;
155
+
150
156
protected:
151
157
// A pointer to the parent context
152
158
const std::shared_ptr<CoreContext> m_pParent;
153
159
154
160
// Back-referencing iterator which refers to ourselves in our parent's child list:
155
161
const t_childList::iterator m_backReference;
156
162
157
- // Sigil type, used during bolting
158
- const auto_id m_sigilType;
159
-
160
163
// State block for this context:
161
164
std::shared_ptr<autowiring::CoreContextStateBlock> m_stateBlock;
162
165
@@ -394,7 +397,7 @@ class CoreContext:
394
397
// / The number of child contexts of this context.
395
398
size_t GetChildCount (void ) const ;
396
399
// / The type used as a sigil when creating this class, if any.
397
- auto_id GetSigilType (void ) const { return m_sigilType ; }
400
+ auto_id GetSigilType (void ) const { return SigilType ; }
398
401
// / The Context iterator for the parent context's children, pointing to this context.
399
402
t_childList::iterator GetBackReference (void ) const { return m_backReference; }
400
403
// / A shared reference to the parent context of this context.
@@ -411,7 +414,7 @@ class CoreContext:
411
414
412
415
// / True if the sigil type of this CoreContext matches the specified sigil type.
413
416
template <class Sigil >
414
- bool Is (void ) const { return m_sigilType == auto_id_t <Sigil>{}; }
417
+ bool Is (void ) const { return SigilType == auto_id_t <Sigil>{}; }
415
418
416
419
// / <summary>
417
420
// / The first child in the set of this context's children.
0 commit comments