本文整理汇总了C++中Member::GetType方法的典型用法代码示例。如果您正苦于以下问题:C++ Member::GetType方法的具体用法?C++ Member::GetType怎么用?C++ Member::GetType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Member
的用法示例。
在下文中一共展示了Member::GetType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetMemberValue
cas::Value Object::GetMemberValue(cas::IMember* member)
{
assert(is_clas);
assert(member);
Member* m = (Member*)member;
assert(m->type == clas->type);
cas::Value v;
v.type = m->GetType();
clas->copy_data(m->offset, clas->type->module_proxy->GetType(m->vartype.type)->size, v.int_value);
return v;
}
示例2: GetMemberValueRef
cas::Value Object::GetMemberValueRef(cas::IMember* member)
{
assert(is_clas);
assert(member);
Member* m = (Member*)member;
assert(m->type == clas->type);
cas::Value v;
v.type = m->GetType();
v.type.is_ref = true;
v.int_value = (int)clas->data(m->offset);
return v;
}
示例3: PrintMemberInfo
void Member::PrintMemberInfo() const
{
const int NAME_WIDTH = 26;
const int ID_WIDTH = 7;
const int TYPE_WIDTH = 17;
const int DATE_WIDTH = 18;
Member* memberPtr;
memberPtr = head;
cout << left;
cout << "Bulk Club Members\n" << "-----------------\n\n";
cout << setw(NAME_WIDTH) << "Member Name"
<< setw(ID_WIDTH) << "ID"
<< setw(TYPE_WIDTH) << "Membership Type"
<< setw(DATE_WIDTH) << "Expiration Date" << endl;
cout << setw(NAME_WIDTH) << "-----------"
<< setw(ID_WIDTH) << "------ "
<< setw(TYPE_WIDTH) << "---------------"
<< setw(DATE_WIDTH) << "---------------" << endl;
while(memberPtr != NULL)
{
cout << left;
cout << setw(NAME_WIDTH) << memberPtr->GetName()
<< setw(ID_WIDTH) << memberPtr->GetNum()
<< setw(TYPE_WIDTH) << memberPtr->GetType();
memberPtr->date.DisplayDate();
cout << right;
memberPtr = memberPtr->next;
}
}