Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

rfl::AspectValue Struct Reference

#include <AspectValue.hh>

Collaboration diagram for rfl::AspectValue:

Collaboration graph
List of all members.

Public Member Functions

 AspectValue (void)

Public Attributes

const Typetype
union {
   int   simple
   void *   object

Detailed Description

This class may hold any type of user data, that represenst some sort of aspects. It should be used in three different ways:

  1. The easiest thing is to use the v.simple member to store e.g. enum values. The value has to be well known to any software that reacts on the aspect.
  2. The next way to use it is to store a pointer to more complex data in the v.object member. As in the 1st case, the type and the semantics of the referenced object have to be well known.
  3. The most elaborate way to use it is to store a ponter to e reflected object in the v.object member and to provide a pointer to the object's Type in the type member.

Constructor & Destructor Documentation

rfl::AspectValue::AspectValue void   )  [inline]

Member Data Documentation

void* rfl::AspectValue::object

int rfl::AspectValue::simple

const Type* rfl::AspectValue::type

union { ... } rfl::AspectValue::v

The documentation for this struct was generated from the following file:
Generated on Thu Dec 18 11:32:59 2003 for Reflection&ServiceLibrary by doxygen 1.3.2