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

ogs::support::Class Class Reference

An object representing the class of another object. More...

#include <Class.h>

List of all members.

Public Member Functions

bool operator== (const Class &cls) const
 Determine if this object describes the same class as another object.

bool operator!= (const Class &cls) const
 Determine if this object does not describe the same class as another object.

std::string getName () const
 Determine the name of this class.


Static Public Member Functions

template<class C> Class getClass ()
 Determine the class of a type.


Friends

Class Object::getClass () const


Detailed Description

This class is actually a thin wrapper for the type_info class declared in the <typeinfo> header of the standard C++ library.


Member Function Documentation

template<class C>
Class ogs::support::Class::getClass  )  [inline, static]
 

The type is given as a template argument.

Returns:
Class of type.

std::string ogs::support::Class::getName  )  const [inline]
 

Returns:
Name of class.

bool ogs::support::Class::operator!= const Class &  cls  )  const [inline]
 

Parameters:
cls Class to be compared to.
Returns:
True if each object describes a different class.

bool ogs::support::Class::operator== const Class &  cls  )  const [inline]
 

Parameters:
cls Class to be compared to.
Returns:
True if the two objects describe the same class.


The documentation for this class was generated from the following files:
Generated on Sun Apr 20 03:40:55 2003 for Open Gaming System (OGS) by doxygen1.3