As per the title. I don't really want to list all the other members it contains but I was suprised to find that given the only non-static data members were the enum
, 2 of int
and a pointer to its own type that its sizeof
should be 20.
It has no virtual functions and I've measured the pointer and enum
as 4 bytes each. Should I look harder for other members?
I need this information to allocate a buffer for n objects of its type when reading back in from a file.
Platform: bada, Environment: gcc and Eclipse in Win 7 x64.
enum blockParams {enum1, enum2, /**/};
class Block : public Object {
public:
int begin;
protected:
Block() : begin(-1), end(UNCLOSEDBLOCK) {}
//Last index
int end;
private:
blockParams1 params;
const Block *parentBlock;
//Lots and lots (~80) member functions and static data members.
}