Typelib::Numeric Class Reference

#include <typelib/typemodel.hh>

Inheritance diagram for Typelib::Numeric:

Inheritance graph
[legend]
Collaboration diagram for Typelib::Numeric:

Collaboration graph
[legend]

List of all members.

Public Types

enum  NumericCategory { SInt = Type::ValidCategories, UInt, Float }

Public Member Functions

NumericCategory getNumericCategory () const
 Numeric (const std::string &name, size_t size, NumericCategory category)
virtual std::set< Type const * > dependsOn () const

Static Public Attributes

static const int ValidCategories = Float + 1


Detailed Description

Numeric values (integer, unsigned integer and floating point)

Member Enumeration Documentation

Enumerator:
SInt 
UInt  signed integer
Float  unsigned integer

floating point


Constructor & Destructor Documentation

Typelib::Numeric::Numeric ( const std::string &  name,
size_t  size,
NumericCategory  category 
)

Creates a basic type from name, size and category


Member Function Documentation

Numeric::NumericCategory Typelib::Numeric::getNumericCategory (  )  const

The category of this numeric type

Referenced by Typelib::ValueVisitor::TypeDispatch::visit_(), and Typelib::TypeDisplayVisitor::visit_().

virtual std::set<Type const*> Typelib::Numeric::dependsOn (  )  const [inline, virtual]

The set of types this type depends upon

Implements Typelib::Type.


Member Data Documentation

const int Typelib::Numeric::ValidCategories = Float + 1 [static]

Reimplemented from Typelib::Type.


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

Generated on Thu Jan 22 16:38:01 2009 for typeLib by doxygen 1.5.6
SourceForge.net Project Page