# 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

Inheritance graph
[legend]
Collaboration diagram for NLAIC::IPointerGestion:

Collaboration graph
[legend]
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 ~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(s):
Chafik sameh , Nevrax France
Date:
2000

Definition at line 57 of file abstract_interface.h.


Constructor & Destructor Documentation

NLAIC::IPointerGestion::IPointerGestion ( ) [inline]
 

Construct object with null reference.

Definition at line 65 of file abstract_interface.h.

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

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

Definition at line 70 of file abstract_interface.h.

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

Definition at line 99 of file abstract_interface.h.


Member Function Documentation

sint32 NLAIC::IPointerGestion::decRef ( ) [inline]
 

Decrement the reference of an object.

Definition at line 88 of file abstract_interface.h.

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

Reimplemented from NLMISC::IClassable.

Reimplemented in NLAIC::CIdentType.

Definition at line 106 of file abstract_interface.h.

Referenced by NLAISCRIPT::CCompilateur::RegisterClass().

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

get the refence count.

Definition at line 94 of file abstract_interface.h.

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 75 of file abstract_interface.h.

Referenced by NLAISCRIPT::CFunctionTag::CFunctionTag(), NLAILINK::IOTrace::clone(), NLAIAGENT::IVector::isMember(), NLAIAGENT::IVector::operator!=(), NLAISCRIPT::CFunctionTag::operator=(), NLAIAGENT::IVector::operator==(), NLAISCRIPT::CLibTest::runMethodeMember(), 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::CAffOpCodeDebug::runOpCode(), NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CAffMemberOpCode::runOpCode(), NLAISCRIPT::CAffMemberiOpCode::runOpCode(), NLAISCRIPT::CMethodContextDebug::saveConstext(), NLAISCRIPT::CMethodContext::saveConstext(), NLAISCRIPT::CCompilateur::setMethodVar(), NLAISCRIPT::CCompilateur::setParamVarName(), NLAISCRIPT::CFunctionTag::setTypeObject(), and NLAISCRIPT::CCompilateur::typeOfMethod().

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 81 of file abstract_interface.h.

Referenced by NLAISCRIPT::COperatorClass::backward(), NLAISCRIPT::CCompilateur::buildObject(), NLAILINK::buildScript(), NLAIAGENT::CVectorGroupType::clear(), NLAIAGENT::CGroupType::clear(), NLAIPYSERVER::endPythonInterface(), NLAIAGENT::CVectorGroupType::erase(), NLAIAGENT::CVectorGroupType::eraseAll(), NLAISCRIPT::CCompilateur::findMethode(), NLAISCRIPT::COperatorClass::forward(), NLAIFUZZY::CTrapezeFuzzySet::init(), NLAIFUZZY::CLeftFuzzySet::init(), NLAIFUZZY::CTriangleFuzzySet::init(), NLAIFUZZY::CRightFuzzySet::init(), NLAIFUZZY::CFuzzyInterval::init(), NLAIFUZZY::CFuzzyRule::init(), NLAIFUZZY::CSimpleFuzzyCond::init(), NLAISCRIPT::CLdbOpCode::load(), NLAISCRIPT::CLibCallMethodi::load(), NLAISCRIPT::CLibCallInheritedMethod::load(), NLAISCRIPT::CLibCallMethod::load(), NLAISCRIPT::CLdbNewOpCode::load(), NLAIAGENT::CVectorGroupType::load(), NLAIAGENT::CGroupType::load(), NLAISCRIPT::CMethodContextDebug::loadConstext(), NLAISCRIPT::CStackPointer::operator--(), NLAISCRIPT::CStackPointer::operator-=(), NLAISCRIPT::CFunctionTag::operator=(), NLAISCRIPT::CCompilateur::processingVar(), NLAISCRIPT::CConstraintStackComp::run(), NLAISCRIPT::CConstraintFindRun::run(), 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::CCodeContext::setIO(), NLAISCRIPT::CFunctionTag::setTypeObject(), NLAISCRIPT::COperatorClass::unifyBackward(), NLAISCRIPT::COperatorClass::unifyForward(), NLAISCRIPT::CCodeContext::~CCodeContext(), NLAISCRIPT::CConstraintMethode::~CConstraintMethode(), NLAISCRIPT::CFunctionTag::~CFunctionTag(), NLAISCRIPT::CLdbNewOpCode::~CLdbNewOpCode(), NLAISCRIPT::CLdbOpCode::~CLdbOpCode(), NLAISCRIPT::CLibCallInheritedMethod::~CLibCallInheritedMethod(), NLAISCRIPT::CLibCallMethod::~CLibCallMethod(), NLAISCRIPT::CLibCallMethodi::~CLibCallMethodi(), NLAISCRIPT::CStackPointer::~CStackPointer(), NLAISCRIPT::CVarPStack::~CVarPStack(), and NLAISCRIPT::CVarPStackParam::~CVarPStackParam().

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

Reimplemented from NLMISC::IStreamable.

Reimplemented in NLAIC::CIdentType, NLAIC::IBasicInterface, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Definition at line 110 of file abstract_interface.h.


Member Data Documentation

sint32 NLAIC::IPointerGestion::_Ref [private]
 

Nomber of reference count.

Definition at line 61 of file abstract_interface.h.


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