| Xavax C++ Library | Class Index FAQ Overview |
| Constructor Summary |
Class(...)
Construct a Class object. |
| Operators Inherited From TypeDescriptor | |
operator[]
|
|
| Method Summary | |
Object*
|
create() const
Create an object of this class. |
bool
|
isA(const Class*) const
Determine if the specified class is an ancestor of this class, meaning objects of this class have an "is a" relationship with the specified class. |
bool
|
hasMembers() const
Returns true if this class or any base class has metadata describing data members. |
const Class*
|
parent() const
Return the class record for the parent class. |
| Methods Inherited From TypeDescriptor | |
size,
count,
name,
type
|
|
| Related Classes | |
| Object, TypeDescriptor | |
| Constructor Detail |
Class(const char* name, size_t size, size_t nmem,
const MemberDescriptor* members, const Class* parent,
CreateFunctor* cfp)
name - the class name.size - the instance size.nmem - the number of member descriptors.members - the member descriptors.parent - the parent class record.cfp - pointer to a create functor.
| Method Detail |
Object* create() const
create
method) provided by the class.
If no create functor was specified, a
NotImplementedException
is thrown.
bool isA(const Class* cp)
cp - a class record.bool hasMembers() const
const Class* parent() const
| Example Code |
See Object for examples.
Copyright © 2003 Xavax Inc. -- All Rights Reserved