# 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::IPointerGestion Class Reference

IPointerGestion define a reference for an objects. More...

#include <abstract_interface.h>

Inheritance diagram for NLAIC::IPointerGestion:

NLMISC::IStreamable NLMISC::IClassable NLAIC::CIdentType NLAIC::IBasicType NLAISCRIPT::IConstraint NLAIC::IBasicInterface NLAIC::IClassFactory NLAISCRIPT::CConstraintChkMethodeType NLAISCRIPT::CConstraintDebug NLAISCRIPT::CConstraintMethode NLAISCRIPT::IOpType NLAIAGENT::IBasicMessageGroup NLAIAGENT::IBasicMsgContainer NLAIAGENT::IBasicObjectIA NLAIAGENT::IVarName NLAIAGENT::IWordNumRef NLAIC::CBinaryType NLAIC::IIO NLAISCRIPT::IBlock NLAISCRIPT::ILoadObject NLAISCRIPT::IScriptDebugSource NLAIC::CSelfClassFactory NLAISCRIPT::CClassInterpretFactory NLAISCRIPT::CConstraintFindRun NLAISCRIPT::CConstraintStackComp NLAISCRIPT::COperandAnyObject NLAISCRIPT::COperandListType NLAISCRIPT::COperandSimple NLAISCRIPT::COperandSimpleListOr NLAISCRIPT::COperandUnknown NLAISCRIPT::COperandVoid NLAISCRIPT::COperationType NLAISCRIPT::COperationTypeGD List of all members.

Public Methods

 IPointerGestion ()
 Construct object with null reference. More...

 IPointerGestion (const IPointerGestion &)
 Construct object with null reference. because copy constructor don't conserve refernce. More...

void incRef ()
 Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. More...

virtual void release ()
 Release allow to release the pointer. The last release when the _Ref is nul delete the object. More...

sint32 decRef ()
 Decrement the reference of an object. More...

const sint32getRef () const
 get the refence count. More...

virtual void getDebugString (std::string &t) const
virtual ~IPointerGestion ()
NLMISC::IStreamable method.
virtual std::string getClassName ()
virtual void serial (NLMISC::IStream &) throw (NLMISC::EStream)

Private Attributes

sint32 _Ref
 Nomber of reference count. More...


Detailed Description

IPointerGestion define a reference for an objects.

It use for manager objects. The object encapsulat the nomber of objects hows refernce this object.

Author:
Chafik sameh , Nevrax France
Date:
2000

Definition at line 62 of file abstract_interface.h.


Constructor & Destructor Documentation

NLAIC::IPointerGestion::IPointerGestion   [inline]
 

Construct object with null reference.

Definition at line 70 of file abstract_interface.h.

References _Ref.

Referenced by NLAIC::IBasicType::IBasicType, and IPointerGestion.

NLAIC::IPointerGestion::IPointerGestion const IPointerGestion &    [inline]
 

Construct object with null reference. because copy constructor don't conserve refernce.

Definition at line 75 of file abstract_interface.h.

References _Ref, and IPointerGestion.

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

Definition at line 109 of file abstract_interface.h.


Member Function Documentation

sint32 NLAIC::IPointerGestion::decRef   [inline]
 

Decrement the reference of an object.

Definition at line 93 of file abstract_interface.h.

References _Ref.

Referenced by release.

virtual std::string NLAIC::IPointerGestion::getClassName   [inline, virtual]
 

Implements NLMISC::IClassable.

Reimplemented in NLAIC::CIdentType.

Definition at line 116 of file abstract_interface.h.

Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom, and NLAISCRIPT::CAgentClass::isEqual.

virtual void NLAIC::IPointerGestion::getDebugString std::string &    t const [inline, virtual]
 

Reimplemented in NLAIAGENT::CActor.

Definition at line 104 of file abstract_interface.h.

References t.

const sint32& NLAIC::IPointerGestion::getRef   const [inline]
 

get the refence count.

Definition at line 99 of file abstract_interface.h.

References _Ref.

void NLAIC::IPointerGestion::incRef   [inline]
 

Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list.

Definition at line 80 of file abstract_interface.h.

References _Ref.

Referenced by NLAILOGIC::CInternalGoal::addPredecessor, NLAILOGIC::CGoal::addPredecessor, NLAILOGIC::CInternalGoal::addSuccessor, NLAILOGIC::CGoal::addSuccessor, NLAILOGIC::CFact::asValueSet, NLAIAGENT::CAgentWatchTimer::attach, NLAISCRIPT::CCodeContext::CCodeContext, NLAISCRIPT::CFunctionTag::CFunctionTag, NLAISCRIPT::CFindRunMsg::clone, NLAISCRIPT::CConstraintFindRun::clone, NLAISCRIPT::CConstraintMethode::clone, NLAILINK::IOTrace::clone, NLAISCRIPT::CAgentClass::createComponents, NLAILOGIC::CValueSet::CValueSet, NLAILOGIC::CVar::CVar, NLAILOGIC::CValueSet::forward, NLAIAGENT::CAgentScript::initAgentScript, NLAIAGENT::IVector::isMember, NLAISCRIPT::COperatorClass::isValidFonc, NLAISCRIPT::CAgentClass::load, NLAISCRIPT::CComponent::load, NLAISCRIPT::CMethodeName::load, NLAISCRIPT::CPramContainer::operator+=, NLAISCRIPT::CFunctionTag::operator=, NLAIAGENT::CActorScript::processFailure, NLAISCRIPT::CConstraintFindRun::run, NLAIAGENT::CAgentScript::runAskGetValue, NLAIAGENT::CMainAgentScript::runExec, NLAIAGENT::CAgentScript::runInitComponent, NLAIAGENT::CActorScript::runMethodBase, NLAISCRIPT::CLibTest::runMethodeMember, NLAISCRIPT::CLdbRefOpCode::runOpCode, NLAISCRIPT::CLdbMemberiOpCode::runOpCode, NLAISCRIPT::CLdbHeapMemberiOpCode::runOpCode, NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode, NLAISCRIPT::CLdbMemberOpCode::runOpCode, NLAISCRIPT::CCallStackMethodi::runOpCode, NLAISCRIPT::CCallStackNewMethodi::runOpCode, NLAISCRIPT::CLibHeapMemberMethod::runOpCode, NLAISCRIPT::CLibStackNewMemberMethod::runOpCode, NLAISCRIPT::CLibStackMemberMethod::runOpCode, NLAISCRIPT::CLibCallMethodi::runOpCode, NLAISCRIPT::CLibCallInheritedMethod::runOpCode, NLAISCRIPT::CLibCallMethod::runOpCode, NLAISCRIPT::CLibMemberMethodi::runOpCode, NLAISCRIPT::CLibMemberInheritedMethod::runOpCode, NLAISCRIPT::CLibMemberMethod::runOpCode, NLAISCRIPT::CAffOpCode::runOpCode, NLAISCRIPT::CAddParamNameDebug::runOpCode, NLAISCRIPT::CAffOpCodeDebug::runOpCode, NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode, NLAISCRIPT::CAffMemberOpCode::runOpCode, NLAISCRIPT::CAffMemberiOpCode::runOpCode, NLAIAGENT::CAgentScript::runTellComponent, NLAIAGENT::CAgentScript::runTellSetValue, NLAISCRIPT::CMethodContextDebug::saveConstext, NLAISCRIPT::CMethodContext::saveConstext, NLAISCRIPT::CCompilateur::setParamVarName, NLAISCRIPT::CFunctionTag::setTypeObject, NLAILOGIC::CVar::setValue, NLAILOGIC::CValueSet::setValue, NLAILOGIC::CVar::unify, and NLAILOGIC::CValueSet::unify.

virtual void NLAIC::IPointerGestion::release void    [inline, virtual]
 

Release allow to release the pointer. The last release when the _Ref is nul delete the object.

Definition at line 86 of file abstract_interface.h.

References decRef.

Referenced by NLAISCRIPT::CConstraintDebug::addIndex, NLAISCRIPT::COperatorClass::backward, NLAISCRIPT::CCompilateur::buildObject, NLAISCRIPT::CCompilateur::callFunction, NLAIAGENT::CVectorGroupType::clear, NLAIAGENT::CGroupType::clear, NLAISCRIPT::CFactorType::del, NLAISCRIPT::CCompilateur::findMethode, NLAISCRIPT::COperatorClass::forward, NLAIAGENT::CComponentHandle::getComponent, NLAIAGENT::COperatorScript::getDebugString, NLAIAGENT::CAgentScript::getDebugString, NLAIFUZZY::CTrapezeFuzzySet::init, NLAIFUZZY::CLeftFuzzySet::init, NLAIFUZZY::CTriangleFuzzySet::init, NLAIFUZZY::CRightFuzzySet::init, NLAIFUZZY::CFuzzyInterval::init, NLAIFUZZY::CFuzzyRule::init, NLAIFUZZY::CSimpleFuzzyCond::init, NLAISCRIPT::COperatorClass::isValidFonc, NLAILOGIC::CVar::load, NLAILOGIC::CValueSet::load, NLAISCRIPT::CLdbOpCode::load, NLAISCRIPT::CLibCallMethodi::load, NLAISCRIPT::CLibCallInheritedMethod::load, NLAISCRIPT::CLibCallMethod::load, NLAISCRIPT::CLdbNewOpCode::load, NLAISCRIPT::CAddParamNameDebug::load, NLAISCRIPT::CFindRunMsg::load, NLAIAGENT::CVectorGroupType::load, NLAIAGENT::CGroupType::load, NLAISCRIPT::CMethodContextDebug::loadConstext, NLAISCRIPT::CCompilateur::onEndClass, NLAIAGENT::CLocalAgentMail::onKill, NLAISCRIPT::CStackPointer::operator--, NLAISCRIPT::CStackPointer::operator-=, NLAISCRIPT::CFunctionTag::operator=, NLAISCRIPT::CCompilateur::registerMethod, NLAIAGENT::CActorScript::releaseClass, NLAISCRIPT::CConstraintStackComp::run, NLAISCRIPT::CConstraintFindRun::run, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, NLAILOGIC::CFact::runMethodeMember, NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode, NLAISCRIPT::CCallStackMethodi::runOpCode, NLAISCRIPT::CLibHeapMemberMethod::runOpCode, NLAISCRIPT::CLibStackNewMemberMethod::runOpCode, NLAISCRIPT::CLibStackMemberMethod::runOpCode, NLAISCRIPT::CLibCallMethodi::runOpCode, NLAISCRIPT::CLibCallInheritedMethod::runOpCode, NLAISCRIPT::CLibCallMethod::runOpCode, NLAISCRIPT::CLibMemberMethodi::runOpCode, NLAISCRIPT::CLibMemberInheritedMethod::runOpCode, NLAISCRIPT::CLibMemberMethod::runOpCode, NLAISCRIPT::CMakeArgOpCode::runOpCode, NLAISCRIPT::CAffOpCode::runOpCode, NLAISCRIPT::CJFalseOpCode::runOpCode, NLAISCRIPT::CLdbNewOpCode::runOpCode, NLAISCRIPT::CAffOpCodeDebug::runOpCode, NLAISCRIPT::CDiffOpCode::runOpCode, NLAISCRIPT::CInfEqOpCode::runOpCode, NLAISCRIPT::CSupEqOpCode::runOpCode, NLAISCRIPT::CEqOpCode::runOpCode, NLAISCRIPT::CInfOpCode::runOpCode, NLAISCRIPT::CSupOpCode::runOpCode, NLAISCRIPT::CMulOpCode::runOpCode, NLAISCRIPT::CDivOpCode::runOpCode, NLAISCRIPT::CSubOpCode::runOpCode, NLAISCRIPT::CAddOpCode::runOpCode, NLAISCRIPT::CNegOpCode::runOpCode, NLAISCRIPT::COperandSimple::serial, NLAISCRIPT::IClassInterpret::setClassName, NLAISCRIPT::COperatorClass::setGoal, NLAISCRIPT::CParam::setInfo, NLAISCRIPT::CAgentClass::setInheritanceName, NLAISCRIPT::CCodeContext::setIO, NLAILOGIC::IBaseVar::setName, NLAISCRIPT::CMethodeName::setName, NLAILOGIC::CInternalGoal::setProperty, NLAILOGIC::CValueSet::setSize, NLAISCRIPT::IClassInterpret::setType, NLAISCRIPT::CFunctionTag::setTypeObject, NLAILOGIC::CVar::setValue, NLAISCRIPT::COperatorClass::unifyBackward, NLAISCRIPT::COperatorClass::unifyForward, NLAISCRIPT::CAddParamNameDebug::~CAddParamNameDebug, NLAISCRIPT::CAgentClass::~CAgentClass, NLAISCRIPT::CCodeContext::~CCodeContext, NLAISCRIPT::CConstraintMethode::~CConstraintMethode, NLAILOGIC::CFact::~CFact, NLAISCRIPT::CFindRunMsg::~CFindRunMsg, NLAISCRIPT::CFunctionTag::~CFunctionTag, NLAILOGIC::CInternalGoal::~CInternalGoal, NLAISCRIPT::CLdbNewOpCode::~CLdbNewOpCode, NLAISCRIPT::CLdbOpCode::~CLdbOpCode, NLAISCRIPT::CLibCallInheritedMethod::~CLibCallInheritedMethod, NLAISCRIPT::CLibCallMethod::~CLibCallMethod, NLAISCRIPT::CLibCallMethodi::~CLibCallMethodi, NLAIAGENT::CMainAgentScript::~CMainAgentScript, NLAISCRIPT::CLibTest::CMethodCall::~CMethodCall, NLAISCRIPT::CMethodeName::~CMethodeName, NLAISCRIPT::COperandSimple::~COperandSimple, NLAISCRIPT::COperatorClass::~COperatorClass, NLAISCRIPT::CStackPointer::~CStackPointer, NLAILOGIC::CValueSet::~CValueSet, NLAILOGIC::CVar::~CVar, NLAISCRIPT::CVarPStack::~CVarPStack, NLAISCRIPT::CVarPStackParam::~CVarPStackParam, NLAILOGIC::IBaseAssert::~IBaseAssert, NLAILOGIC::IBaseVar::~IBaseVar, NLAISCRIPT::IClassInterpret::~IClassInterpret, NLAILOGIC::IGoal::~IGoal, and NLAICHARACTER::IZone::~IZone.

virtual void NLAIC::IPointerGestion::serial NLMISC::IStream   throw (NLMISC::EStream) [inline, virtual]
 

Implements NLMISC::IStreamable.

Reimplemented in NLAIC::CIdentType.

Definition at line 120 of file abstract_interface.h.


Member Data Documentation

sint32 NLAIC::IPointerGestion::_Ref [private]
 

Nomber of reference count.

Definition at line 66 of file abstract_interface.h.

Referenced by decRef, getRef, incRef, and IPointerGestion.


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