library of assembled shared sources

http://lass.cocamware.com

lass::python::PyObjectCounter Class Reference
[Python]

The recommended counter for the pyobject pointers, implementation of CounterPolicy concept. More...

#include <pyobject_plus.h>


Public Types

typedef int TCount

Protected Member Functions

 PyObjectCounter ()
template<typename TStorage >
void init (TStorage &)
template<typename TStorage >
void dispose (TStorage &)
template<typename TStorage >
void increment (TStorage &pointee)
template<typename TStorage >
bool decrement (TStorage &pointee)
template<typename TStorage >
TCount count (TStorage &pointee) const
void swap (PyObjectCounter &)


Detailed Description

The recommended counter for the pyobject pointers, implementation of CounterPolicy concept.

Author:
Tom De Muer [TDM]
See also:
DefaultCounter

Definition at line 501 of file pyobject_plus.h.


Member Typedef Documentation

Definition at line 504 of file pyobject_plus.h.


Constructor & Destructor Documentation

lass::python::PyObjectCounter::PyObjectCounter (  )  [inline, protected]

Definition at line 506 of file pyobject_plus.h.


Member Function Documentation

template<typename TStorage >
void lass::python::PyObjectCounter::init ( TStorage &   )  [inline, protected]

Definition at line 507 of file pyobject_plus.h.

template<typename TStorage >
void lass::python::PyObjectCounter::dispose ( TStorage &   )  [inline, protected]

Definition at line 508 of file pyobject_plus.h.

template<typename TStorage >
void lass::python::PyObjectCounter::increment ( TStorage &  pointee  )  [inline, protected]

Definition at line 509 of file pyobject_plus.h.

References LASS_LOCK, and lass::python::impl::referenceMutex().

template<typename TStorage >
bool lass::python::PyObjectCounter::decrement ( TStorage &  pointee  )  [inline, protected]

Definition at line 516 of file pyobject_plus.h.

References LASS_ASSERT, LASS_LOCK, and lass::python::impl::referenceMutex().

template<typename TStorage >
TCount lass::python::PyObjectCounter::count ( TStorage &  pointee  )  const [inline, protected]

Definition at line 527 of file pyobject_plus.h.

References LASS_ASSERT.

void lass::python::PyObjectCounter::swap ( PyObjectCounter  )  [inline, protected]

Definition at line 532 of file pyobject_plus.h.


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

Generated on Mon Nov 10 14:22:14 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo