Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

UML::PseudostateKind Class Reference

#include

Inheritance diagram for UML::PseudostateKind:

OMF::Enumeration OMF::Primitive OMF::Object List of all members.

Public Types

enum   Type {
  pk_choice, pk_deepHistory, pk_fork, pk_initial,
  pk_join, pk_junction, pk_shallowHistory
}

Public Member Functions

  PseudostateKind ()
  PseudostateKind (const PseudostateKind ©)
  PseudostateKind (const std::string &value)
  PseudostateKind (Type value)
virtual  ~PseudostateKind ()
const PseudostateKind operator= (const PseudostateKind &value)
const PseudostateKind operator= (const std::string &value)
const PseudostateKind operator= (Type value)
  operator Type () const
virtual const std::string &  typeCode () const
virtual const std::vector<
std::string > & 
labels () const
const std::string &  labelAt (size_t index) const
  operator const std::string & () const
  operator const char * () const
bool  empty () const
void  clear ()
const std::string &  str () const
virtual unsigned  hashCode () const
ModelObject *  metaObject ()

Protected Attributes

bool  _empty
  True indicates a non-value.
std::string  _value
  The string value of the primitive.

Member Enumeration Documentation

enum UML::PseudostateKind::Type
 

Enumeration values:
pk_choice 
pk_deepHistory 
pk_fork 
pk_initial 
pk_join 
pk_junction 
pk_shallowHistory 

Constructor & Destructor Documentation

UML::PseudostateKind::PseudostateKind  ) 
 

UML::PseudostateKind::PseudostateKind const PseudostateKind copy  ) 
 

UML::PseudostateKind::PseudostateKind const std::string &  value  ) 
 

UML::PseudostateKind::PseudostateKind Type  value  ) 
 

virtual UML::PseudostateKind::~PseudostateKind  )  [virtual]
 


Member Function Documentation

void OMF::Primitive::clear  )  [inherited]
 

bool OMF::Primitive::empty  )  const [inherited]
 

virtual unsigned OMF::Primitive::hashCode  )  const [virtual, inherited]
 

The default identity method for primitive types computes an integral hash on the string representation of the object. Derived primitives may overload this method to provide more accurate or efficient hashing capabilities.

Note that this method will return the same hash for primitives of different types containing the same value. However, since we don't usually deal with arrays of mixed primitives, this shouldn't really be an issue.

Implements OMF::Object.

Reimplemented in OMF::Integer, and OMF::UnlimitedNatural.

const std::string& OMF::Enumeration::labelAt size_t  index  )  const [inherited]
 

Return the enumeration value at the requested index. If there is no such index, an empty string is returned.

virtual const std::vector<:string>& UML::PseudostateKind::labels  )  const [virtual]
 

This method is added to the set of virtual methods to provide some introspective capabilities for derived enumeration types. This returns a const reference to an array of strings.

Implements OMF::Enumeration.

ModelObject* OMF::Object::metaObject  )  [inherited]
 

Return the meta-object of this instance. The meta-object is an instance of the metaclass of this object. For example, the metaclass of UML::Attribute is Model::Class. The metaobject for an instance of UML::Attribute is an instance of Model::Class.

This method may force a load of an entire metamodel in order to return the correct object.

OMF::Primitive::operator const char *  )  const [inherited]
 

OMF::Primitive::operator const std::string &  )  const [inherited]
 

UML::PseudostateKind::operator Type  )  const
 

const PseudostateKind& UML::PseudostateKind::operator= Type  value  ) 
 

const PseudostateKind& UML::PseudostateKind::operator= const std::string &  value  ) 
 

Reimplemented from OMF::Enumeration.

const PseudostateKind& UML::PseudostateKind::operator= const PseudostateKind value  ) 
 

const std::string& OMF::Primitive::str  )  const [inherited]
 

Explicitly cast this object to a string.

virtual const std::string& UML::PseudostateKind::typeCode  )  const [virtual]
 

The typeCode method returns a textual description of an object's type. This can vary between classifications of objects. For primitives and collections, the names are essentially static. For model objects, enumerations and collections the name of the object is the scoped name of the instantiating class. Note that the names of primitives are not typed.

Implements OMF::Object.


Member Data Documentation

bool OMF::Primitive::_empty [protected, inherited]
 

True indicates a non-value.

std::string OMF::Primitive::_value [protected, inherited]
 

The string value of the primitive.


The documentation for this class was generated from the following file:
Generated on Fri Sep 10 13:07:55 2004 for OpenModelingFramework by 1.3.8