Class Enum.

Inherits Garbage

The Enum class models enums as part of top-level classes. An enum, as far as this class knows, simply is a documentable list of identifiers, each of which may also be documented.

The value of each enum member is not kept, as that is an implementation matter rather than an interface matter. Further, when two enum members are equal, they are treated as separate by this class.

Enum::Enum( Class * c, const String & n, File * f, uint l )

Constructs an Enum named n in c, whose source definition is in file f line l.

void Enum::addValue( const String & name )

Records that name is a member of this enum.

StringList * Enum::values() const

Returns a pointer to the list of values for this Enum.

This web page based on source code belonging to Oryx Mail Systems GmbH. All rights reserved.