NSSimpleUnit::TUnitRetType_rectangles_implemented Class Reference

Tato trida reprezentuje navratovy typ, reprezentujici pole obdelniku. More...

#include <Simple_rectangles.h>

Inherits NSPipeline::TUnitRetType_rectangles.

Inheritance diagram for NSSimpleUnit::TUnitRetType_rectangles_implemented:

Inheritance graph
[legend]
Collaboration diagram for NSSimpleUnit::TUnitRetType_rectangles_implemented:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void Release (void)
 Snizeni poctu referenci.
virtual DWORD GetRectangleCount (void)
 Virtualni metoda vracejici pocet obdelniku ulozenych v tomto objektu.
virtual const TRT_RectGetRectangle (DWORD index)
 Virtualni metoda vracejici ukazatel na obdelnik na zadanem indexu.
void InsertRectangle (const TRT_Rect &rect)
 Prida novy obdelnik do vysledku.

Private Member Functions

 TUnitRetType_rectangles_implemented (void)
 Soukromy konstruktor.
 ~TUnitRetType_rectangles_implemented (void)
 Soukromy destruktor.
void AddRefs (void)
 Pridani reference na objekt.
void Reset (void)
 Tato metoda inicializuje zadany objekt do podoby po vytvoreni.
void SetParent (TSimpleUnitProcessingInterface_rectangles *parent)
 Nastaveni rodicovske jednotky pro tento objekt.
 TUnitRetType_rectangles_implemented (const TUnitRetType_rectangles_implemented &orig)
 falesny kopirovaci konstruktor
void operator= (const TUnitRetType_rectangles_implemented &orig)
 falesny prirazovaci operator

Private Attributes

friend TManager< TUnitRetType_rectangles_implemented >
friend TSimpleUnitProcessingInterface_rectangles
DWORD m_refs
 pocet referenci na objekt
vector< TRT_Rectm_value
 vlastni ulozena hodnota tj. pole obdelniku
TCriticalSection m_cs
 synchronizace pro pocitani referenci
TSimpleUnitProcessingInterface_rectanglesm_parent
 jednotka kde byl objekt vytvoren a kam ma byt vracen

Detailed Description

Tato trida reprezentuje navratovy typ, reprezentujici pole obdelniku.

Jedina pouzitelna metoda pro vypocetni jednotku je metoda InsertRectangle( const TRT_Rect & rect ), ktera nastavi novy vysledek do objektu.

Ostatni nevirtualni metody jsou nepodstatne.

JE VZDY NUTNE REIMPLEMENTOVAT VSECHNY VIRTUALNI METODY Z BAZOVE TRIDY!!!

Definition at line 54 of file Simple_rectangles.h.


Constructor & Destructor Documentation

NSSimpleUnit::TUnitRetType_rectangles_implemented::TUnitRetType_rectangles_implemented void   )  [inline, private]
 

Soukromy konstruktor.

Vytvori objekt s jednou referenci a zadnyn obdelnikem.

METODA JE VOLANA Z MANAGERU TECHTO OBJEKTU VE VYPOCETNI JEDNOTCE DEFINOVANE NIZE.

Definition at line 131 of file Simple_rectangles.h.

References m_refs.

NSSimpleUnit::TUnitRetType_rectangles_implemented::~TUnitRetType_rectangles_implemented void   )  [inline, private]
 

Soukromy destruktor.

METODA JE VOLANA Z MANAGERU TECHTO OBJEKTU VE VYPOCETNI JEDNOTCE DEFINOVANE NIZE.

Definition at line 143 of file Simple_rectangles.h.

NSSimpleUnit::TUnitRetType_rectangles_implemented::TUnitRetType_rectangles_implemented const TUnitRetType_rectangles_implemented orig  )  [private]
 

falesny kopirovaci konstruktor


Member Function Documentation

void NSSimpleUnit::TUnitRetType_rectangles_implemented::AddRefs void   )  [inline, private]
 

Pridani reference na objekt.

Definition at line 165 of file Simple_rectangles.h.

References NSPipeline::TCriticalSection::Enter(), NSPipeline::TCriticalSection::Leave(), m_cs, and m_refs.

Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::GetResult().

Here is the call graph for this function:

const TRT_Rect * NSSimpleUnit::TUnitRetType_rectangles_implemented::GetRectangle DWORD  index  )  [inline, virtual]
 

Virtualni metoda vracejici ukazatel na obdelnik na zadanem indexu.

Pokud je index mimo pak vraci metoda NULL.

Parameters:
index [in] index pozadovaneho obdelniku

Implements NSPipeline::TUnitRetType_rectangles.

Definition at line 112 of file Simple_rectangles.h.

References m_value.

DWORD NSSimpleUnit::TUnitRetType_rectangles_implemented::GetRectangleCount void   )  [inline, virtual]
 

Virtualni metoda vracejici pocet obdelniku ulozenych v tomto objektu.

Implements NSPipeline::TUnitRetType_rectangles.

Definition at line 100 of file Simple_rectangles.h.

References m_value.

void NSSimpleUnit::TUnitRetType_rectangles_implemented::InsertRectangle const TRT_Rect rect  )  [inline]
 

Prida novy obdelnik do vysledku.

Tato metoda by mela byt pouzita v ramci tridy TSimpleUnitProcessingInterface_rectangles v metode ProcessFrame, kdy objekt jeste neni zarazen do seznamu vysledku a tedy nad nim pracuje pouze jedno vlakno.

Parameters:
rect [in] pridavany obdelnik

Definition at line 157 of file Simple_rectangles.h.

References m_value.

void NSSimpleUnit::TUnitRetType_rectangles_implemented::operator= const TUnitRetType_rectangles_implemented orig  )  [private]
 

falesny prirazovaci operator

void TUnitRetType_rectangles_implemented::Release void   )  [virtual]
 

Snizeni poctu referenci.

Jakmile pocet referenci dosahne 0 je objekt okamzite smazan, resp. vracen rodicovske jednotce.

Implements NSPipeline::TUnitRetType_rectangles.

Definition at line 35 of file Simple_rectangles.cpp.

References NSPipeline::TCriticalSection::Enter(), NSPipeline::TCriticalSection::Leave(), m_cs, m_parent, m_refs, and NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::ReturnObject().

Here is the call graph for this function:

void NSSimpleUnit::TUnitRetType_rectangles_implemented::Reset void   )  [inline, private]
 

Tato metoda inicializuje zadany objekt do podoby po vytvoreni.

Metoda by mela byt volana v manageru objektu pokud byl uz objekt drive pouzit. To znamena, ze objekt je pri zavolani drzen pouze jednim vlaknem a tedy neni potreba synchronizace.

Definition at line 179 of file Simple_rectangles.h.

References m_refs, and m_value.

Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::GetObject().

void NSSimpleUnit::TUnitRetType_rectangles_implemented::SetParent TSimpleUnitProcessingInterface_rectangles parent  )  [inline, private]
 

Nastaveni rodicovske jednotky pro tento objekt.

Metoda je volana v manageru objektu zadane jednotky a tedy k ni pristupuje pouze jedno vlakno.

Parameters:
parent [in] rodicovska jednotka, ktera objekt vlastni a do ktere by mel byt vracen

Definition at line 194 of file Simple_rectangles.h.

References m_parent.

Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::GetObject().


Member Data Documentation

TCriticalSection NSSimpleUnit::TUnitRetType_rectangles_implemented::m_cs [private]
 

synchronizace pro pocitani referenci

Definition at line 91 of file Simple_rectangles.h.

Referenced by AddRefs(), and Release().

TSimpleUnitProcessingInterface_rectangles* NSSimpleUnit::TUnitRetType_rectangles_implemented::m_parent [private]
 

jednotka kde byl objekt vytvoren a kam ma byt vracen

Definition at line 93 of file Simple_rectangles.h.

Referenced by Release(), and SetParent().

DWORD NSSimpleUnit::TUnitRetType_rectangles_implemented::m_refs [private]
 

pocet referenci na objekt

Definition at line 86 of file Simple_rectangles.h.

Referenced by AddRefs(), Release(), Reset(), and TUnitRetType_rectangles_implemented().

vector<TRT_Rect> NSSimpleUnit::TUnitRetType_rectangles_implemented::m_value [private]
 

vlastni ulozena hodnota tj. pole obdelniku

Definition at line 88 of file Simple_rectangles.h.

Referenced by GetRectangle(), GetRectangleCount(), InsertRectangle(), and Reset().

friend NSSimpleUnit::TUnitRetType_rectangles_implemented::TManager< TUnitRetType_rectangles_implemented > [private]
 

Definition at line 56 of file Simple_rectangles.h.

friend NSSimpleUnit::TUnitRetType_rectangles_implemented::TSimpleUnitProcessingInterface_rectangles [private]
 

Definition at line 57 of file Simple_rectangles.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 17 16:27:00 2007 for Image Processing Pipeline by  doxygen 1.4.6-NO