# 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  

NLAILOGIC::CValueSet Class Reference

#include <valueset.h>

Inheritance diagram for NLAILOGIC::CValueSet:

NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAILOGIC::CFact List of all members.

Public Methods

 CValueSet ()
 CValueSet (sint32)
 Initialises a CValueSet of size <size> with values to NULL. More...

 CValueSet (const CValueSet &)
 Copy constructor. More...

 CValueSet (std::vector< IBaseVar * > &)
 Builds a CValueSet from values taken from a list of variables. More...

 CValueSet (CValueSet *, std::vector< sint32 > &)
 Builds a CValueSet from another one, changing the positions of values pos = positiions in the new CValueSet of the existing one's variables. More...

 CValueSet (sint32, std::list< NLAIAGENT::IObjectIA * > *, std::vector< sint32 > &)
virtual ~CValueSet ()
virtual NLAIAGENT::IObjectIAgetValue (sint32)
void setValue (sint32, NLAIAGENT::IObjectIA *)
CValueSet * unify (const CValueSet *) const
 Tries tu unify two CValueSets Returns NULL if the unification fails. Returns a new unified CValueSet if it succeeds. More...

CValueSet * unify (std::list< NLAIAGENT::IObjectIA * > *vals, std::vector< sint32 > &pos_vals) const
CValueSet * unify (CValueSet *vals, std::vector< sint32 > &pos_vals) const
bool operator== (CValueSet *)
virtual NLAIAGENT::IObjectIAoperator[] (sint32)
sint32 size ()
sint32 undefined () const
 Returns the number of NULL values (considered as undefined). More...

std::list< NLAIAGENT::IObjectIA * > * getValues ()
 Return a list of the != NULL values of the object. More...

virtual void getDebugString (std::string &) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

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 save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

virtual NLAIAGENT::IObjetOpoperator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual NLAIAGENT::IObjectIAoperator!= (NLAIAGENT::IObjectIA &a) const
virtual NLAIAGENT::IObjectIAoperator== (NLAIAGENT::IObjectIA &a) const
virtual bool isEqual (const NLAIAGENT::IBasicObjectIA &) const
virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual const IObjectIA::CProcessResult & run ()
 Some where Run method define the process of the agen. More...

CValueSet * forward (CClause *, std::vector< sint32 > &)
virtual void setSize (sint32)

Static Public Attributes

const NLAIC::CIdentType IdValueSet
const NLAIAGENT::TProcessStatement state = processIdle

Protected Attributes

NLAIAGENT::IObjectIA ** _Values
sint32 _NbValues

Constructor & Destructor Documentation

NLAILOGIC::CValueSet::CValueSet  
 

Definition at line 32 of file valueset.cpp.

References _NbValues, and _Values.

Referenced by NLAILOGIC::CFact::asValueSet, clone, forward, isEqual, operator!=, operator==, NLAILOGIC::CFact::operator==, and unify.

NLAILOGIC::CValueSet::CValueSet sint32   
 

Initialises a CValueSet of size <size> with values to NULL.

Definition at line 39 of file valueset.cpp.

References _NbValues, _Values, NLAIAGENT::IObjectIA::IObjectIA, and size.

NLAILOGIC::CValueSet::CValueSet const CValueSet &   
 

Copy constructor.

Definition at line 51 of file valueset.cpp.

References _NbValues, _Values, NLAIC::IPointerGestion::incRef, and NLAIAGENT::IObjectIA::IObjectIA.

NLAILOGIC::CValueSet::CValueSet std::vector< IBaseVar * > &   
 

Builds a CValueSet from values taken from a list of variables.

Definition at line 67 of file valueset.cpp.

References _NbValues, _Values, NLAIC::IPointerGestion::incRef, and NLAIAGENT::IObjectIA::IObjectIA.

NLAILOGIC::CValueSet::CValueSet CValueSet *   ,
std::vector< sint32 > &   
 

Builds a CValueSet from another one, changing the positions of values pos = positiions in the new CValueSet of the existing one's variables.

Definition at line 87 of file valueset.cpp.

References _NbValues, _Values, index, and NLAIAGENT::IObjectIA::IObjectIA.

NLAILOGIC::CValueSet::CValueSet sint32   ,
std::list< NLAIAGENT::IObjectIA * > *   ,
std::vector< sint32 > &   
 

NLAILOGIC::CValueSet::~CValueSet   [virtual]
 

Definition at line 132 of file valueset.cpp.

References _NbValues, _Values, and NLAIC::IPointerGestion::release.


Member Function Documentation

const NLAIC::IBasicType * NLAILOGIC::CValueSet::clone   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CFact.

Definition at line 353 of file valueset.cpp.

References CValueSet.

Referenced by newInstance.

CValueSet * NLAILOGIC::CValueSet::forward CClause  ,
std::vector< sint32 > &   
 

Definition at line 532 of file valueset.cpp.

References _NbValues, _Values, CValueSet, and NLAIC::IPointerGestion::incRef.

void NLAILOGIC::CValueSet::getDebugString std::string &    const [virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CFact.

Definition at line 436 of file valueset.cpp.

References _NbValues, _Values, and NLAIC::IBasicType::getDebugString.

const NLAIC::CIdentType & NLAILOGIC::CValueSet::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).

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CFact.

Definition at line 364 of file valueset.cpp.

References IdValueSet.

IObjectIA * NLAILOGIC::CValueSet::getValue sint32    [virtual]
 

Definition at line 317 of file valueset.cpp.

References _NbValues, and _Values.

std::list< IObjectIA * > * NLAILOGIC::CValueSet::getValues  
 

Return a list of the != NULL values of the object.

Definition at line 341 of file valueset.cpp.

References _NbValues, and _Values.

bool NLAILOGIC::CValueSet::isEqual const NLAIAGENT::IBasicObjectIA   const [virtual]
 

Definition at line 505 of file valueset.cpp.

References _NbValues, _Values, and CValueSet.

bool NLAILOGIC::CValueSet::isTrue   const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 522 of file valueset.cpp.

References undefined.

Referenced by operator!.

void NLAILOGIC::CValueSet::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 399 of file valueset.cpp.

References _NbValues, _Values, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIAGENT::IObjectIA::IObjectIA, NLAIC::IPointerGestion::release, and NLMISC::IStream::serial.

const NLAIC::IBasicType * NLAILOGIC::CValueSet::newInstance   const [virtual]
 

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

Implements NLAIC::IBasicType.

Reimplemented in NLAILOGIC::CFact.

Definition at line 359 of file valueset.cpp.

References clone.

IObjetOp * NLAILOGIC::CValueSet::operator!   const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 453 of file valueset.cpp.

References isTrue.

IObjectIA * NLAILOGIC::CValueSet::operator!= NLAIAGENT::IObjectIA   a const [virtual]
 

Definition at line 459 of file valueset.cpp.

References _NbValues, _Values, and CValueSet.

IObjectIA * NLAILOGIC::CValueSet::operator== NLAIAGENT::IObjectIA   a const [virtual]
 

Definition at line 481 of file valueset.cpp.

References _NbValues, _Values, and CValueSet.

bool NLAILOGIC::CValueSet::operator== CValueSet *   
 

Definition at line 298 of file valueset.cpp.

References _NbValues, and _Values.

IObjectIA * NLAILOGIC::CValueSet::operator[] sint32    [virtual]
 

Definition at line 309 of file valueset.cpp.

References _NbValues, and _Values.

const IObjectIA::CProcessResult & NLAILOGIC::CValueSet::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 527 of file valueset.cpp.

void NLAILOGIC::CValueSet::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 369 of file valueset.cpp.

References _NbValues, _Values, NLMISC::IStream::serial, and size.

void NLAILOGIC::CValueSet::setSize sint32    [virtual]
 

Definition at line 550 of file valueset.cpp.

References _NbValues, _Values, NLAIAGENT::IObjectIA::IObjectIA, NLAIC::IPointerGestion::release, and size.

void NLAILOGIC::CValueSet::setValue sint32   ,
NLAIAGENT::IObjectIA  
 

Definition at line 140 of file valueset.cpp.

References _Values, and NLAIC::IPointerGestion::incRef.

Referenced by NLAIAGENT::COperatorScript::buildFromVars, and NLAISCRIPT::COperatorClass::buildFromVars.

sint32 NLAILOGIC::CValueSet::size  
 

Definition at line 335 of file valueset.cpp.

References _NbValues.

Referenced by CValueSet, save, and setSize.

sint32 NLAILOGIC::CValueSet::undefined   const
 

Returns the number of NULL values (considered as undefined).

Definition at line 326 of file valueset.cpp.

References _NbValues, and _Values.

Referenced by isTrue, and NLAIAGENT::COperatorScript::propagate.

CValueSet * NLAILOGIC::CValueSet::unify CValueSet *    vals,
std::vector< sint32 > &    pos_vals
const
 

Definition at line 256 of file valueset.cpp.

References _NbValues, _Values, CValueSet, NLAIC::IPointerGestion::incRef, and NLAIAGENT::IObjectIA::IObjectIA.

CValueSet* NLAILOGIC::CValueSet::unify std::list< NLAIAGENT::IObjectIA * > *    vals,
std::vector< sint32 > &    pos_vals
const
 

CValueSet * NLAILOGIC::CValueSet::unify const CValueSet *    const
 

Tries tu unify two CValueSets Returns NULL if the unification fails. Returns a new unified CValueSet if it succeeds.

Definition at line 155 of file valueset.cpp.

References _NbValues, _Values, CValueSet, NLAIC::IPointerGestion::incRef, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by NLAIAGENT::COperatorScript::unifyLiaison, and NLAISCRIPT::COperatorClass::unifyLiaison.


Member Data Documentation

sint32 NLAILOGIC::CValueSet::_NbValues [protected]
 

Definition at line 40 of file valueset.h.

Referenced by NLAILOGIC::CFact::asValueSet, CValueSet, forward, getDebugString, NLAILOGIC::CFact::getDebugString, getValue, getValues, isEqual, load, operator!=, operator==, NLAILOGIC::CFact::operator==, operator[], save, setSize, size, undefined, unify, and ~CValueSet.

NLAIAGENT::IObjectIA** NLAILOGIC::CValueSet::_Values [protected]
 

Definition at line 39 of file valueset.h.

Referenced by NLAILOGIC::CFact::asValueSet, NLAILOGIC::CFact::CFact, CValueSet, forward, getDebugString, NLAILOGIC::CFact::getDebugString, getValue, getValues, isEqual, load, operator!=, operator==, NLAILOGIC::CFact::operator==, operator[], save, setSize, setValue, undefined, unify, and ~CValueSet.

const NLAIC::CIdentType CValueSet::IdValueSet [static]
 

Initial value:

Definition at line 457 of file static_def_init.cpp.

Referenced by getType.

const TProcessStatement NLAILOGIC::CValueSet::state = processIdle [static]
 

Definition at line 30 of file valueset.cpp.


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