CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdApcQueueHelperArray Class Reference

#include <RxThreadPoolService.h>

Inheritance diagram for OdApcQueueHelperArray:
OdArray< OdApcQueueHelper >

Public Member Functions

void initST (int n, OdRxThreadPoolService *pTP)
 
void wait ()
 
- Public Member Functions inherited from OdArray< OdApcQueueHelper >
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void insert (iterator before, const_iterator first, const_iterator afterLast)
 
iterator insert (iterator before, size_type numElements, const OdApcQueueHelper &value)
 
iterator insert (iterator before, const OdApcQueueHelper &value=OdApcQueueHelper())
 
void resize (size_type logicalLength, const OdApcQueueHelper &value)
 
void resize (size_type logicalLength)
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
void reserve (size_type reserveLength)
 
void assign (const_iterator first, const_iterator afterLast)
 
iterator erase (iterator first, iterator afterLast)
 
iterator erase (iterator where)
 
void clear ()
 
void push_back (const OdApcQueueHelper &value)
 
bool contains (const OdApcQueueHelper &value, size_type start=0) const
 
size_type length () const
 
bool isEmpty () const
 
size_type logicalLength () const
 
size_type physicalLength () const
 
int growLength () const
 
const OdApcQueueHelperasArrayPtr () const
 
OdApcQueueHelperasArrayPtr ()
 
const OdApcQueueHelpergetPtr () const
 
const OdApcQueueHelperoperator[] (size_type index) const
 
OdApcQueueHelperoperator[] (size_type index)
 
OdApcQueueHelperat (size_type arrayIndex)
 
const OdApcQueueHelperat (size_type arrayIndex) const
 
OdArraysetAt (size_type arrayIndex, const OdApcQueueHelper &value)
 
const OdApcQueueHelpergetAt (size_type arrayIndex) const
 
OdApcQueueHelperfirst ()
 
const OdApcQueueHelperfirst () const
 
OdApcQueueHelperlast ()
 
const OdApcQueueHelperlast () const
 
size_type append (const OdApcQueueHelper &value)
 
iterator append ()
 
OdArrayappend (const OdArray &otherArray)
 
OdArrayremoveFirst ()
 
OdArrayremoveLast ()
 
OdArraysetGrowLength (int growLength)
 
 OdArray (size_type physicalLength, int growLength=8)
 
 OdArray ()
 
 OdArray (const OdArray &source)
 
 ~OdArray ()
 
OdArrayoperator= (const OdArray &source)
 
bool operator== (const OdArray &array) const
 
OdArraysetAll (const OdApcQueueHelper &value)
 
OdArrayinsertAt (size_type arrayIndex, const OdApcQueueHelper &value)
 
OdArrayremoveAt (size_type arrayIndex)
 
OdArrayremoveSubArray (size_type startIndex, size_type endIndex)
 
bool find (const OdApcQueueHelper &value, size_type &findIndex, size_type start=0) const
 
OdArraysetLogicalLength (size_type logLength)
 
OdArraysetPhysicalLength (size_type physLength)
 
OdArrayreverse ()
 
OdArrayswap (size_type firstIndex, size_type secondIndex)
 
bool remove (const OdApcQueueHelper &value, size_type start=0)
 

Additional Inherited Members

- Public Types inherited from OdArray< OdApcQueueHelper >
typedef A::size_type size_type
 
typedef OdApcQueueHelperiterator
 
typedef const OdApcQueueHelperconst_iterator
 
typedef OdApcQueueHelper value_type
 
typedef const OdApcQueueHelperconst_reference
 
typedef OdApcQueueHelperreference
 

Detailed Description

Corresponding C++ library: TD_Db <group OdApc_Classes> class OdApcDataReadWriteDispatcherHelper : public OdSmartPtr<OdApcDataReadWriteDispatcher> { public: OdApcDataReadWriteDispatcherHelper( ) {} OdApcDataReadWriteDispatcherHelper( const OdApcDataReadWriteDispatcher* pObject, OdRxObjMod m ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject, m ) {} OdApcDataReadWriteDispatcherHelper( const OdApcDataReadWriteDispatcher* pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdRxObject* pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( OdRxObject* pObject, OdRxObjMod m ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject, m ) {} OdApcDataReadWriteDispatcherHelper( const OdSmartPtr<OdApcDataReadWriteDispatcher>& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdRxObjectPtr& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdBaseObjectPtr& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {}

using OdSmartPtr<OdApcDataReadWriteDispatcher>::operator =;

void init( OdRxThreadPoolService* pThreadPool ) { this = pThreadPool ? pThreadPool->newDataReadWriteDispatcher().get() : 0; }

void enter() { if( m_pObject ) { get()->enter(); } }

void leave() { if( m_pObject ) { get()->leave(); } }

void lock() { if( m_pObject ) { get()->lock(); } }

void unlock() { if( m_pObject ) { get()->unlock(); } }

void lockFromInside() { if( m_pObject ) { get()->lockFromInside(); } }

void unlockFromInside() { if( m_pObject ) { get()->unlockFromInside(); } } };

class OdReadWriteDispatcherAutoPass { public: OdReadWriteDispatcherAutoPass( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.enter(); } ~OdReadWriteDispatcherAutoPass() { m_lock.leave(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };

class OdReadWriteDispatcherAutoLock { public: OdReadWriteDispatcherAutoLock( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.lock(); } ~OdReadWriteDispatcherAutoLock() { m_lock.unlock(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };

class OdReadWriteDispatcherAutoLockFromInside { public: OdReadWriteDispatcherAutoLockFromInside( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.lockFromInside(); } ~OdReadWriteDispatcherAutoLockFromInside() { m_lock.unlockFromInside(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };

Corresponding C++ library: TD_Db <group OdApc_Classes>

Definition at line 642 of file RxThreadPoolService.h.

Member Function Documentation

◆ initST()

void OdApcQueueHelperArray::initST ( int  n,
OdRxThreadPoolService pTP 
)
inline

Definition at line 644 of file RxThreadPoolService.h.

◆ wait()

void OdApcQueueHelperArray::wait ( )
inline

Definition at line 652 of file RxThreadPoolService.h.


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