Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
om::graphics::shapes::ShapeType Class Reference

A class that encapsulates a type for a Shape. More...

#include <omGraphicsShapeType.h>

Public Member Functions

 ShapeType (const Type &newType)
 Create a ShapeType object with the specified internal type. More...
 
 ShapeType (const Char *string)
 Create a ShapeType object with the specified string type. More...
 
 ShapeType (const UTF8String &newTypeString)
 Create a ShapeType object with the specified string type. More...
 
Bool operator== (const ShapeType &other) const
 Return whether or not this shape type is equal to another. More...
 
Bool operator!= (const ShapeType &other) const
 Return whether or not this shape type is not equal to another. More...
 
ShapeTypeID getID () const
 Return an integer identifying this shape type. More...
 
Hash getHashCode () const
 Return a hash code for this shape type. More...
 
 operator const UTF8String & () const
 Get a string representing the implementation-defined name of this type. More...
 
const UTF8String & toString () const
 Get a string representing the implementation-defined name of this type. More...
 
const UTF8String & getName () const
 Get a string representing the implementation-defined name of this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 
template<>
const ShapeTypeof ()
 Specialize the shape type template for this type. More...
 

Static Public Member Functions

template<typename T >
static const ShapeTypeof ()
 Return a ShapeType object for the specified type template parameter. More...
 

Public Attributes

Hash hashCode
 A hash code for this shape type. More...
 
UTF8String type
 A string object representing the internal type for this ShapeType. More...
 

Detailed Description

A class that encapsulates a type for a Shape.

Constructor & Destructor Documentation

om::graphics::shapes::ShapeType::ShapeType ( const Type newType)
inline

Create a ShapeType object with the specified internal type.

om::graphics::shapes::ShapeType::ShapeType ( const Char string)
inline

Create a ShapeType object with the specified string type.

om::graphics::shapes::ShapeType::ShapeType ( const UTF8String &  newTypeString)
inline

Create a ShapeType object with the specified string type.

Member Function Documentation

template<typename T >
static const ShapeType& om::graphics::shapes::ShapeType::of ( )
inlinestatic

Return a ShapeType object for the specified type template parameter.

Bool om::graphics::shapes::ShapeType::operator== ( const ShapeType other) const
inline

Return whether or not this shape type is equal to another.

Bool om::graphics::shapes::ShapeType::operator!= ( const ShapeType other) const
inline

Return whether or not this shape type is not equal to another.

ShapeTypeID om::graphics::shapes::ShapeType::getID ( ) const
inline

Return an integer identifying this shape type.

This ID is a 32-bit integer that is generated by hashing the string generated for a type template parameter. While the posibility of ID collisions is very low, duplicates are nonetheless a possibility.

Hash om::graphics::shapes::ShapeType::getHashCode ( ) const
inline

Return a hash code for this shape type.

om::graphics::shapes::ShapeType::operator const UTF8String & ( ) const
inline

Get a string representing the implementation-defined name of this type.

const UTF8String& om::graphics::shapes::ShapeType::toString ( ) const
inline

Get a string representing the implementation-defined name of this type.

const UTF8String& om::graphics::shapes::ShapeType::getName ( ) const
inline

Get a string representing the implementation-defined name of this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

template<>
const ShapeType& om::graphics::shapes::ShapeType::of ( )
inline

Specialize the shape type template for this type.

Member Data Documentation

Hash om::graphics::shapes::ShapeType::hashCode

A hash code for this shape type.

UTF8String om::graphics::shapes::ShapeType::type

A string object representing the internal type for this ShapeType.


The documentation for this class was generated from the following files: