Typelib::Numeric Class Reference

#include <typemodel.hh>

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

List of all members.

Public Types

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

Public Member Functions

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

Static Public Attributes

static const int ValidCategories = Float + 1

Private Member Functions

virtual bool do_compare (Type const &other, bool equality, RecursionStack &stack) const
virtual bool do_compare (Type const &other, bool equality, RecursionStack &stack) const
virtual Typedo_merge (Registry &registry, RecursionStack &stack) const
virtual Typedo_merge (Registry &registry, RecursionStack &stack) const

Private Attributes

NumericCategory m_category

Detailed Description

Numeric values (integer, unsigned integer and floating point)

Definition at line 214 of file install/include/typelib/typemodel.hh.


Member Enumeration Documentation

Enumerator:
SInt 
UInt 

signed integer

Float 

unsigned integer

floating point

SInt 
UInt 

signed integer

Float 

unsigned integer

floating point

Definition at line 217 of file typelib/typemodel.hh.

Enumerator:
SInt 
UInt 

signed integer

Float 

unsigned integer

floating point

SInt 
UInt 

signed integer

Float 

unsigned integer

floating point

Definition at line 217 of file install/include/typelib/typemodel.hh.


Constructor & Destructor Documentation

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

Creates a basic type from name, size and category

Definition at line 157 of file typemodel.cc.

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

Creates a basic type from name, size and category


Member Function Documentation

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

The set of types this type depends upon

This method returns the set of types that are directly depended-upon by this type

Implements Typelib::Type.

Definition at line 232 of file typelib/typemodel.hh.

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

The set of types this type depends upon

This method returns the set of types that are directly depended-upon by this type

Implements Typelib::Type.

Definition at line 232 of file install/include/typelib/typemodel.hh.

virtual bool Typelib::Numeric::do_compare ( Type const &  other,
bool  equality,
RecursionStack stack 
) const [private, virtual]
bool Typelib::Numeric::do_compare ( Type const &  other,
bool  equality,
RecursionStack stack 
) const [private, virtual]

Definition at line 160 of file typemodel.cc.

virtual Type* Typelib::Numeric::do_merge ( Registry registry,
RecursionStack stack 
) const [private, virtual]

Called by Type::merge when the type does not exist in registry already. This method has to create a new type in registry that matches the type definition of *this.

All types referenced by *this must be moved to their equivalent in registry.

Implements Typelib::Type.

Type * Typelib::Numeric::do_merge ( Registry registry,
RecursionStack stack 
) const [private, virtual]

Called by Type::merge when the type does not exist in registry already. This method has to create a new type in registry that matches the type definition of *this.

All types referenced by *this must be moved to their equivalent in registry.

Implements Typelib::Type.

Definition at line 163 of file typemodel.cc.

NumericCategory Typelib::Numeric::getNumericCategory (  )  const

The category of this numeric type

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

The category of this numeric type

Definition at line 159 of file typemodel.cc.


Member Data Documentation

Reimplemented from Typelib::Type.

Definition at line 237 of file install/include/typelib/typemodel.hh.

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

Reimplemented from Typelib::Type.

Definition at line 223 of file install/include/typelib/typemodel.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 09:37:01 2013