Made ByteSize() a virtual method in DIEType and implemented in all subclasses
that potentially have that attribute. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31633 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -215,6 +215,13 @@ DIEType::Name() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEType::ByteSize() const
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEType::AddAttribute_name(uint16 attributeName,
|
DIEType::AddAttribute_name(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
@@ -394,6 +401,13 @@ DIECompoundType::Specification() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIECompoundType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIECompoundType::AddChild(DebugInfoEntry* child)
|
DIECompoundType::AddChild(DebugInfoEntry* child)
|
||||||
{
|
{
|
||||||
@@ -618,6 +632,13 @@ DIEArrayType::Specification() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEArrayType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEArrayType::AddChild(DebugInfoEntry* child)
|
DIEArrayType::AddChild(DebugInfoEntry* child)
|
||||||
{
|
{
|
||||||
@@ -728,6 +749,13 @@ DIEEnumerationType::Specification() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEEnumerationType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEEnumerationType::AddChild(DebugInfoEntry* child)
|
DIEEnumerationType::AddChild(DebugInfoEntry* child)
|
||||||
{
|
{
|
||||||
@@ -980,6 +1008,13 @@ DIEStringType::Tag() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEStringType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEStringType::AddAttribute_byte_size(uint16 attributeName,
|
DIEStringType::AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
@@ -1269,6 +1304,13 @@ DIESetType::Tag() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIESetType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIESetType::AddAttribute_byte_size(uint16 attributeName,
|
DIESetType::AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
@@ -1294,6 +1336,13 @@ DIESubrangeType::Tag() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIESubrangeType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIESubrangeType::AddAttribute_bit_stride(uint16 attributeName,
|
DIESubrangeType::AddAttribute_bit_stride(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
@@ -1417,6 +1466,13 @@ DIEBaseType::Tag() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEBaseType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEBaseType::AddAttribute_encoding(uint16 attributeName,
|
DIEBaseType::AddAttribute_encoding(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
@@ -1561,6 +1617,13 @@ DIEFileType::Tag() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const DynamicAttributeValue*
|
||||||
|
DIEFileType::ByteSize() const
|
||||||
|
{
|
||||||
|
return &fByteSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DIEFileType::AddAttribute_byte_size(uint16 attributeName,
|
DIEFileType::AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value)
|
const AttributeValue& value)
|
||||||
|
|||||||
@@ -219,6 +219,8 @@ public:
|
|||||||
|
|
||||||
virtual const char* Name() const;
|
virtual const char* Name() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddAttribute_name(uint16 attributeName,
|
virtual status_t AddAttribute_name(uint16 attributeName,
|
||||||
const AttributeValue& value);
|
const AttributeValue& value);
|
||||||
virtual status_t AddAttribute_allocated(uint16 attributeName,
|
virtual status_t AddAttribute_allocated(uint16 attributeName,
|
||||||
@@ -321,6 +323,8 @@ public:
|
|||||||
|
|
||||||
virtual DebugInfoEntry* Specification() const;
|
virtual DebugInfoEntry* Specification() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
const DebugInfoEntryList& DataMembers() const
|
const DebugInfoEntryList& DataMembers() const
|
||||||
{ return fDataMembers; }
|
{ return fDataMembers; }
|
||||||
|
|
||||||
@@ -428,6 +432,8 @@ public:
|
|||||||
|
|
||||||
virtual DebugInfoEntry* Specification() const;
|
virtual DebugInfoEntry* Specification() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddChild(DebugInfoEntry* child);
|
virtual status_t AddChild(DebugInfoEntry* child);
|
||||||
|
|
||||||
virtual status_t AddAttribute_ordering(uint16 attributeName,
|
virtual status_t AddAttribute_ordering(uint16 attributeName,
|
||||||
@@ -487,6 +493,8 @@ public:
|
|||||||
|
|
||||||
virtual DebugInfoEntry* Specification() const;
|
virtual DebugInfoEntry* Specification() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddChild(DebugInfoEntry* child);
|
virtual status_t AddChild(DebugInfoEntry* child);
|
||||||
|
|
||||||
virtual status_t AddAttribute_bit_stride(uint16 attributeName,
|
virtual status_t AddAttribute_bit_stride(uint16 attributeName,
|
||||||
@@ -647,6 +655,8 @@ public:
|
|||||||
|
|
||||||
virtual uint16 Tag() const;
|
virtual uint16 Tag() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value);
|
const AttributeValue& value);
|
||||||
|
|
||||||
@@ -847,6 +857,8 @@ public:
|
|||||||
|
|
||||||
virtual uint16 Tag() const;
|
virtual uint16 Tag() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value);
|
const AttributeValue& value);
|
||||||
|
|
||||||
@@ -861,6 +873,8 @@ public:
|
|||||||
|
|
||||||
virtual uint16 Tag() const;
|
virtual uint16 Tag() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddAttribute_bit_stride(uint16 attributeName,
|
virtual status_t AddAttribute_bit_stride(uint16 attributeName,
|
||||||
const AttributeValue& value);
|
const AttributeValue& value);
|
||||||
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
||||||
@@ -930,8 +944,7 @@ public:
|
|||||||
|
|
||||||
virtual uint16 Tag() const;
|
virtual uint16 Tag() const;
|
||||||
|
|
||||||
const DynamicAttributeValue* ByteSize() const
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
{ return &fByteSize; }
|
|
||||||
const DynamicAttributeValue* BitOffset() const
|
const DynamicAttributeValue* BitOffset() const
|
||||||
{ return &fBitOffset; }
|
{ return &fBitOffset; }
|
||||||
const DynamicAttributeValue* BitSize() const
|
const DynamicAttributeValue* BitSize() const
|
||||||
@@ -1041,6 +1054,8 @@ public:
|
|||||||
|
|
||||||
virtual uint16 Tag() const;
|
virtual uint16 Tag() const;
|
||||||
|
|
||||||
|
virtual const DynamicAttributeValue* ByteSize() const;
|
||||||
|
|
||||||
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
virtual status_t AddAttribute_byte_size(uint16 attributeName,
|
||||||
const AttributeValue& value);
|
const AttributeValue& value);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user