#include <registry_type.h>
Inheritance diagram for NLAIC::CBinaryType:
Nevrax France
Definition at line 41 of file registry_type.h.
IBasicInterface method. | |
virtual const NLAIC::IBasicType * | clone () const |
virtual void | getDebugString (std::string &t) const |
virtual const NLAIC::CIdentType & | getType () const |
virtual void | load (NLMISC::IStream &is) |
virtual const NLAIC::IBasicType * | newInstance () const |
virtual void | save (NLMISC::IStream &os) |
Public Member Functions | |
void | addType (sint32 b) |
CBinaryType () | |
defult constructor. | |
CBinaryType (NLMISC::IStream &is) | |
Construct from stream. | |
CBinaryType (const CBinaryType &bites) | |
Copy constroctor. | |
CBinaryType (uint32 bites) | |
Construct with an initial nomber. | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual const std::string | getInfo () |
const sint32 & | getRef () const |
get the refence count. | |
uint | getValue () const |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
operator uint () const | |
Get value of class. | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
binary method. | |
CBinaryType & | operator= (sint32 bites) |
Private Attributes | |
uint32 | _Bites |
Binary nomber. |
|
Construct with an initial nomber.
Definition at line 49 of file registry_type.h. References _Bites, and uint32.
00049 :_Bites(bites) 00050 { 00051 } |
|
Copy constroctor.
Definition at line 54 of file registry_type.h. References _Bites.
00054 :_Bites(bites._Bites) 00055 { 00056 } |
|
Construct from stream.
Definition at line 59 of file registry_type.h. References load().
00060 { 00061 load(is); 00062 } |
|
defult constructor.
Definition at line 65 of file registry_type.h. References _Bites. Referenced by clone(), newInstance(), operator &(), operator<<(), operator>>(), operator^(), and operator|().
00065 :_Bites(0) 00066 { 00067 } |
|
Definition at line 229 of file registry_type.h. References _Bites, and sint32. Referenced by NLAIC::CIdentType::addObjectType().
|
|
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 NLAIC::CTypeOfObject, and NLAIC::CTypeOfOperator. Definition at line 202 of file registry_type.h. References CBinaryType().
00203 { 00204 return new CBinaryType(*this); 00205 } |
|
Decrement the reference of an object.
Definition at line 93 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00094 {
00095 return --_Ref;
00096 }
|
|
Implements NLMISC::IClassable. Reimplemented in NLAIC::CIdentType. Definition at line 116 of file abstract_interface.h. Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().
00117 { 00118 return std::string("<unnamed>"); 00119 } |
|
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. Definition at line 216 of file registry_type.h. References _Bites, NLAIC::stringGetBuild(), and t.
00217 { 00218 t = stringGetBuild("CBinaryType <%d>",_Bites); 00219 } |
|
Definition at line 292 of file abstract_interface.h. References NLAIC::IBasicType::getDebugString(), and s.
00293 { 00294 std::string s; 00295 getDebugString(s); 00296 return s; 00297 } |
|
get the refence count.
Definition at line 99 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00100 {
00101 return _Ref;
00102 }
|
|
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 NLAIC::CTypeOfObject, and NLAIC::CTypeOfOperator. Definition at line 195 of file registry_type.h.
00196 { 00197 00198 throw NLAIE::CExceptionUnReference(std::string("const CIdentType & CBinaryType::getType()")); 00199 return NLAIC::CIdentType::VoidType; 00200 } |
|
Definition at line 187 of file registry_type.h.
00188 { 00189 return _Bites; 00190 } |
|
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Definition at line 221 of file registry_type.h. References _Bites, NLMISC::IStream::serial(), and uint32. Referenced by CBinaryType().
|
|
This function allow a new instance, that mean that the class is a class factory. Implements NLAIC::IBasicType. Reimplemented in NLAIC::CTypeOfObject, and NLAIC::CTypeOfOperator. Definition at line 206 of file registry_type.h. References CBinaryType().
00207 { 00208 return new CBinaryType(); 00209 } |
|
Definition at line 120 of file registry_type.h. References _Bites, and CBinaryType().
00121 { 00122 return CBinaryType(_Bites & bites._Bites); 00123 } |
|
Definition at line 116 of file registry_type.h. References _Bites, CBinaryType(), and sint32.
00117 { 00118 return CBinaryType(_Bites & bites); 00119 } |
|
Definition at line 111 of file registry_type.h. References _Bites.
00112 { 00113 _Bites &= bites._Bites; 00114 return *this; 00115 } |
|
Definition at line 106 of file registry_type.h. References _Bites, and sint32.
00107 { 00108 _Bites &= bites; 00109 return *this; 00110 } |
|
Get value of class.
Definition at line 182 of file registry_type.h. References _Bites.
00183 { 00184 return _Bites; 00185 } |
|
Not operator.
Definition at line 175 of file registry_type.h. References _Bites.
00176 { 00177 return !_Bites; 00178 } |
|
Definition at line 156 of file registry_type.h. References _Bites, CBinaryType(), and sint32.
00157 { 00158 return CBinaryType(_Bites << bites); 00159 } |
|
Definition at line 151 of file registry_type.h. References _Bites, and sint32.
00152 { 00153 _Bites <<= bites; 00154 return *this; 00155 } |
|
Definition at line 72 of file registry_type.h. References _Bites, and sint32.
00073 { 00074 _Bites = bites; 00075 return *this; 00076 } |
|
Not operator.
Definition at line 169 of file registry_type.h. References _Bites, CBinaryType(), and sint32.
00170 { 00171 return CBinaryType(_Bites >> bites); 00172 } |
|
Not operator.
Definition at line 164 of file registry_type.h. References _Bites, and sint32.
00165 { 00166 _Bites >>= bites; 00167 return *this; 00168 } |
|
Definition at line 143 of file registry_type.h. References _Bites, and CBinaryType().
00144 { 00145 return CBinaryType(_Bites ^ bites._Bites); 00146 } |
|
Definition at line 139 of file registry_type.h. References _Bites, CBinaryType(), and sint32.
00140 { 00141 return CBinaryType(_Bites ^ bites); 00142 } |
|
Definition at line 134 of file registry_type.h. References _Bites.
00135 { 00136 _Bites ^= bites._Bites; 00137 return *this; 00138 } |
|
Definition at line 128 of file registry_type.h. References _Bites, and sint32.
00129 { 00130 _Bites ^= bites; 00131 return *this; 00132 } |
|
Definition at line 97 of file registry_type.h. References _Bites, and CBinaryType().
00098 { 00099 00100 return CBinaryType(_Bites | bites._Bites); 00101 } |
|
Definition at line 91 of file registry_type.h. References _Bites, CBinaryType(), and sint32.
00092 { 00093 return CBinaryType(_Bites | bites); 00094 } |
|
Definition at line 86 of file registry_type.h. References _Bites.
00087 { 00088 _Bites |= bites._Bites; 00089 return *this; 00090 } |
|
Definition at line 81 of file registry_type.h. References _Bites, and sint32.
00082 { 00083 _Bites |= bites; 00084 return *this; 00085 } |
|
|
Save the class in a stream. Implements NLAIC::IBasicInterface. Definition at line 210 of file registry_type.h. References _Bites, NLMISC::IStream::serial(), and uint32.
|
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Binary nomber.
Definition at line 45 of file registry_type.h. Referenced by addType(), CBinaryType(), getDebugString(), getValue(), load(), operator &(), operator &=(), operator uint(), operator!(), operator<<(), operator<<=(), operator=(), operator>>(), operator>>=(), operator^(), operator^=(), operator|(), operator|=(), and save(). |