# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIC::CTypeOfOperator Class Reference

CTypeOfOperator is an binnary type of operation allowed by objects. More...

#include <registry_type.h>

Inheritance diagram for NLAIC::CTypeOfOperator:

NLAIC::CBinaryType NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Types

enum  TTypeOp {
  opNone = 0, opAdd = 1, opSub = 2, opMul = 4,
  opDiv = 8, opEq = 16, opInf = 32, opSup = 64,
  opInfEq = 128, opSupEq = 256, opNot = 512, opDiff = 1024,
  opNeg = 2048, opAff = 4096, tUndef = 0xFFFFFFFF - opAff*2 + 1
}
 define the type of an operation. More...


Public Methods

 CTypeOfOperator ()
 CTypeOfOperator (uint32 bites)
 CTypeOfOperator (const CTypeOfOperator &bites)
 CTypeOfOperator (NLMISC::IStream &is)
virtual ~CTypeOfOperator ()
IBasicInterface method.
virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual void getDebugString (char *txt) const

Static Public Attributes

NLAIC::CIdentType IdTypeOfOperator

Detailed Description

CTypeOfOperator is an binnary type of operation allowed by objects.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 325 of file registry_type.h.


Member Enumeration Documentation

enum NLAIC::CTypeOfOperator::TTypeOp
 

define the type of an operation.

Enumeration values:
opNone  None operation is define.
opAdd  Can add this objects with an ather.
opSub  Can substract this objects with an ather.
opMul  Can multiply this objects with an ather.
opDiv  Can divide this objects with an ather.
opEq  Can test the equality this objects with an ather.
opInf  Can test with the < operator.
opSup  Can test with the > operator.
opInfEq  Can test with the <= operator.
opSupEq  Can test with the >= operator.
opNot  Can test with the ! operator.
opDiff  Can test with the != operator.
opNeg  Can dot obj = -obj.
opAff  Can affect the object.
tUndef  That is an undef.

Definition at line 332 of file registry_type.h.

Referenced by NLAISCRIPT::COperationType::COperationType, NLAISCRIPT::COperationTypeGD::COperationTypeGD, NLAISCRIPT::COperationTypeGD::setOp, NLAISCRIPT::COperationType::setOp, NLAISCRIPT::CCompilateur::setTypeExpression, and NLAISCRIPT::CCompilateur::setTypeExpressionD.


Constructor & Destructor Documentation

NLAIC::CTypeOfOperator::CTypeOfOperator   [inline]
 

Definition at line 365 of file registry_type.h.

Referenced by clone, CTypeOfOperator, and newInstance.

NLAIC::CTypeOfOperator::CTypeOfOperator uint32    bites [inline]
 

Definition at line 369 of file registry_type.h.

References NLAIC::CBinaryType::CBinaryType.

NLAIC::CTypeOfOperator::CTypeOfOperator const CTypeOfOperator &    bites [inline]
 

Definition at line 374 of file registry_type.h.

References NLAIC::CBinaryType::CBinaryType, and CTypeOfOperator.

NLAIC::CTypeOfOperator::CTypeOfOperator NLMISC::IStream   is [inline]
 

Definition at line 378 of file registry_type.h.

References NLAIC::CBinaryType::CBinaryType.

virtual NLAIC::CTypeOfOperator::~CTypeOfOperator   [inline, virtual]
 

Definition at line 383 of file registry_type.h.


Member Function Documentation

virtual const NLAIC::IBasicType* NLAIC::CTypeOfOperator::clone   const [inline, virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAIC::CBinaryType.

Definition at line 390 of file registry_type.h.

References CTypeOfOperator, and x.

void NLAIC::CTypeOfOperator::getDebugString char *    txt const [virtual]
 

Definition at line 74 of file registry_type.cpp.

const CIdentType & NLAIC::CTypeOfOperator::getType   const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Reimplemented from NLAIC::CBinaryType.

Definition at line 69 of file registry_type.cpp.

References IdTypeOfOperator.

virtual const NLAIC::IBasicType* NLAIC::CTypeOfOperator::newInstance   const [inline, virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAIC::CBinaryType.

Definition at line 396 of file registry_type.h.

References CTypeOfOperator, and x.


Member Data Documentation

CIdentType NLAIC::CTypeOfOperator::IdTypeOfOperator [static]
 

Referenced by getType.


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