#include <ReferenceCounting.hpp>

Definition at line 339 of file ReferenceCounting.hpp.
| ReferenceCounting< ReferencedClass >::ReferenceCounting | ( | const ReferenceCounting< ReferencedClass > & | O | ) | [inline] |
Copy constructor.
Definition at line 512 of file ReferenceCounting.hpp.
00513 : RCC(ReferenceCountingCenter::instance()), 00514 __ref(O.__ref) 00515 { 00516 #ifndef NDEBUG 00517 fflog(4) << __ref << ':' << numberOfReferences() 00518 << ": create copy ReferenceCounting on " 00519 << typeid(__ref).name() << '\n'; 00520 #endif // NDEBUG 00521 RCC.addReference(*this); 00522 }
| ReferenceCounting< ReferencedClass >::ReferenceCounting | ( | ReferencedClass * | ref | ) | [inline] |
Address constuctor.
Definition at line 525 of file ReferenceCounting.hpp.
00526 : RCC(ReferenceCountingCenter::instance()), 00527 __ref(ref) 00528 { 00529 #ifndef NDEBUG 00530 fflog(4) << __ref << ':' << numberOfReferences() << ": create ReferenceCounting on " 00531 << typeid(__ref).name() << '\n'; 00532 #endif // NDEBUG 00533 RCC.addReference(*this); 00534 }
| ReferenceCounting< ReferencedClass >::ReferenceCounting | ( | ) | [inline] |
default constructor
Definition at line 537 of file ReferenceCounting.hpp.
00538 : RCC(ReferenceCountingCenter::instance()), 00539 __ref(0) 00540 { 00541 #ifndef NDEBUG 00542 fflog(4) << __ref << ':' << numberOfReferences() << ": create ReferenceCounting on " 00543 << typeid(__ref).name() << '\n'; 00544 #endif // NDEBUG 00545 RCC.addReference(*this); 00546 }
| ReferenceCounting< ReferencedClass >::~ReferenceCounting | ( | ) | [inline] |
Destructor.
Definition at line 549 of file ReferenceCounting.hpp.
00550 { 00551 #ifndef NDEBUG 00552 fflog(4) 00553 << __ref << ':' << numberOfReferences() << ": remove ReferenceCounting on " 00554 << typeid(__ref).name() << '\n'; 00555 #endif // NDEBUG 00556 RCC.removeReference(*this); 00557 }
| void ReferenceCounting< ReferencedClass >::eraseData | ( | ) | [inline, private] |
destroys the datas.
Definition at line 354 of file ReferenceCounting.hpp.
00355 { 00356 delete __ref; 00357 }
| const size_t& ReferenceCounting< ReferencedClass >::numberOfReferences | ( | ) | const [inline] |
Access to the number of references.
Definition at line 362 of file ReferenceCounting.hpp.
Referenced by ReferenceCounting< Undefined >::operator=(), ReferenceCounting< Undefined >::ReferenceCounting(), and ReferenceCounting< Undefined >::~ReferenceCounting().
00363 { 00364 return RCC.numberOfReferences(*this); 00365 }
| const ReferencedClass* ReferenceCounting< ReferencedClass >::operator-> | ( | ) | const [inline] |
read-only access to the referenced value
Definition at line 373 of file ReferenceCounting.hpp.
| const ReferencedClass& ReferenceCounting< ReferencedClass >::operator* | ( | ) | const [inline] |
read-only access to the referenced value
Definition at line 385 of file ReferenceCounting.hpp.
| ReferencedClass* ReferenceCounting< ReferencedClass >::operator-> | ( | ) | [inline] |
access to the referenced value
Definition at line 397 of file ReferenceCounting.hpp.
| ReferencedClass& ReferenceCounting< ReferencedClass >::operator* | ( | ) | [inline] |
access to the referenced value
Definition at line 409 of file ReferenceCounting.hpp.
| ReferenceCounting< ReferencedClass >::operator ReferencedClass * | ( | ) | [inline] |
Implicit cast to ReferencedClass*.
Definition at line 416 of file ReferenceCounting.hpp.
00417 { 00418 return __ref; 00419 }
| ReferenceCounting< ReferencedClass >::operator const ReferencedClass * | ( | ) | const [inline] |
Implicit cast to ReferencedClass*.
Definition at line 422 of file ReferenceCounting.hpp.
00423 { 00424 return __ref; 00425 }
| std::string ReferenceCounting< ReferencedClass >::typeName | ( | ) | const [inline] |
Definition at line 428 of file ReferenceCounting.hpp.
Referenced by SolverExpression::__solveLegendre().
00429 { 00430 return typeid(__ref).name(); 00431 }
| bool ReferenceCounting< ReferencedClass >::operator== | ( | const ReferencedClass * | ref | ) | const [inline] |
| bool ReferenceCounting< ReferencedClass >::operator!= | ( | const ReferencedClass * | ref | ) | const [inline] |
| bool ReferenceCounting< ReferencedClass >::operator== | ( | const ReferenceCounting< ReferencedClass > & | rc | ) | const [inline] |
| bool ReferenceCounting< ReferencedClass >::operator!= | ( | const ReferenceCounting< ReferencedClass > & | rc | ) | const [inline] |
| bool ReferenceCounting< ReferencedClass >::operator== | ( | const ConstReferenceCounting< ReferencedClass > & | rc | ) | const [inline] |
| bool ReferenceCounting< ReferencedClass >::operator!= | ( | const ConstReferenceCounting< ReferencedClass > & | rc | ) | const [inline] |
| const ReferenceCounting& ReferenceCounting< ReferencedClass >::operator= | ( | ReferencedClass * | ref | ) | [inline] |
operator =
Definition at line 465 of file ReferenceCounting.hpp.
00466 { 00467 #ifndef NDEBUG 00468 fflog(4) << __ref << ':' << numberOfReferences() 00469 << ": remove operator=(ReferencedClass*) ReferenceCounting on " 00470 << typeid(__ref).name() << '\n'; 00471 #endif // NDEBUG 00472 RCC.removeReference(*this); 00473 00474 __ref = ref; 00475 00476 #ifndef NDEBUG 00477 fflog(4) << __ref << ':' << numberOfReferences() 00478 << ": create operator=(ReferencedClass*) ReferenceCounting on " 00479 << typeid(__ref).name() << '\n'; 00480 #endif // NDEBUG 00481 RCC.addReference(*this); 00482 00483 return *this; 00484 }
| const ReferenceCounting& ReferenceCounting< ReferencedClass >::operator= | ( | const ReferenceCounting< ReferencedClass > & | O | ) | [inline] |
operator =
Definition at line 488 of file ReferenceCounting.hpp.
00489 { 00490 #ifndef NDEBUG 00491 fflog(4) 00492 << __ref << ':' << numberOfReferences() 00493 << ": remove operator=(ReferenceCounting<T>&) ReferenceCounting on " 00494 << typeid(__ref).name() << '\n'; 00495 #endif // NDEBUG 00496 RCC.removeReference(*this); 00497 00498 __ref = O.__ref; 00499 00500 #ifndef NDEBUG 00501 fflog(4) 00502 << __ref << ':' << numberOfReferences() 00503 << ": create operator=(ReferenceCounting<T>&) ReferenceCounting on " 00504 << typeid(__ref).name() << '\n'; 00505 #endif // NDEBUG 00506 RCC.addReference(*this); 00507 00508 return *this; 00509 }
friend class ConstReferenceCounting< ReferencedClass > [friend] |
friend class ReferenceCountingCenter [friend] |
Definition at line 345 of file ReferenceCounting.hpp.
ReferenceCountingCenter& ReferenceCounting< ReferencedClass >::RCC [private] |
The reference counting center.
Definition at line 348 of file ReferenceCounting.hpp.
Referenced by ReferenceCounting< Undefined >::numberOfReferences(), ReferenceCounting< Undefined >::operator=(), ReferenceCounting< Undefined >::ReferenceCounting(), and ReferenceCounting< Undefined >::~ReferenceCounting().
ReferencedClass* ReferenceCounting< ReferencedClass >::__ref [private] |
The referenced address.
Definition at line 351 of file ReferenceCounting.hpp.
Referenced by ReferenceCounting< Undefined >::eraseData(), ReferenceCounting< XMLTree >::operator const XMLTree *(), ReferenceCounting< XMLTree >::operator XMLTree *(), ReferenceCounting< Undefined >::operator!=(), ConstReferenceCounting< SpectralConformTransformation >::operator!=(), ReferenceCounting< Undefined >::operator*(), ReferenceCounting< Undefined >::operator->(), ReferenceCounting< Undefined >::operator=(), ReferenceCounting< Undefined >::operator==(), ConstReferenceCounting< SpectralConformTransformation >::operator==(), ReferenceCounting< Undefined >::ReferenceCounting(), ReferenceCounting< Undefined >::typeName(), and ReferenceCounting< Undefined >::~ReferenceCounting().
1.5.6