Hormiga 1.0

Unit Class Reference

#include <unit.h>

Collaboration diagram for Unit:

List of all members.

Public Member Functions

T_STRING getName () const
 Unit (const T_STRING &name, T_MAGNITUDE scale=1)
 Unit (const T_STRING &name, Type *type, T_MAGNITUDE scale=1)
void setType (Type *type)
TypegetType () const
T_MAGNITUDE getScale () const

Protected Attributes

T_STRING name
Typetype
T_MAGNITUDE scale

Detailed Description

Definition at line 52 of file unit.h.


Constructor & Destructor Documentation

Unit::Unit ( const T_STRING &  name,
T_MAGNITUDE  scale = 1 
)

Definition at line 48 of file unit.cpp.

Unit::Unit ( const T_STRING &  name,
Type type,
T_MAGNITUDE  scale = 1 
)

Definition at line 55 of file unit.cpp.


Member Function Documentation

T_STRING Unit::getName ( ) const

Definition at line 62 of file unit.cpp.

T_MAGNITUDE Unit::getScale ( ) const

Definition at line 77 of file unit.cpp.

Type * Unit::getType ( ) const

Definition at line 67 of file unit.cpp.

void Unit::setType ( Type type)

Definition at line 72 of file unit.cpp.


Member Data Documentation

T_STRING Unit::name [protected]

Definition at line 62 of file unit.h.

T_MAGNITUDE Unit::scale [protected]

Definition at line 64 of file unit.h.

Type* Unit::type [protected]

Definition at line 63 of file unit.h.


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