IDebugHostConstant 接口 (dbgmodel.h)
表示符号信息中的常量(例如:C++中的非类型模板参数)。
遗产
IDebugHostConstant 继承自 IDebugHostSymbol。
方法
IDebugHostConstant 接口具有这些方法。
IDebugHostConstant::AddRef IDebugHostConstant::AddRef 方法递增对象上接口的引用计数。 |
IDebugHostConstant::EnumerateChildren IDebugHostConstant::EnumerateChildren 方法获取能够枚举给定符号的所有子级的枚举器。 |
IDebugHostConstant::GetContainingModule 在对符号调用时,IDebugHostConstant::GetContainingModule 方法获取包含符号的模块(如果该符号具有包含模块)。 |
IDebugHostConstant::GetContext 在符号上调用 IDebugHostConstant::GetContext 方法时,获取符号所在的主机上下文。 |
IDebugHostConstant::GetName 在符号上调用 IDebugHostConstant::GetName 方法时,如果符号具有名称,则获取符号的名称。 |
IDebugHostConstant::GetSymbolKind 获取此符号的类型(即字段、基类、类型等...)。 |
IDebugHostConstant::GetType 在符号上调用 IDebugHostConstant::GetType 方法时,获取符号的类型,例如 int *。 |
IDebugHostConstant::GetValue GetValue 方法返回打包到 VARIANT 中的常量的值。 |
IDebugHostConstant::QueryInterface IDebugHostConstant::QueryInterface 方法检索指向对象上支持的接口的指针。 |
IDebugHostConstant::release IDebugHostConstant::Release 方法会递减对象上接口的引用计数。 |
言论
对于符号信息中存在常量值的位置(其中特定值是可能或可能不是常量值的符号),IDebugHostConstant 接口表示此类常量的概念。 这通常用于模板参数等位置,其中给定参数通常是类型,但可能是非类型模板参数(例如:常量)。
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |