#include <Simple_rectangles.h>
Inherits NSPipeline::TUnitRetType_rectangles.
Inheritance diagram for NSSimpleUnit::TUnitRetType_rectangles_implemented:
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_Rect * | GetRectangle (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_Rect > | m_value |
vlastni ulozena hodnota tj. pole obdelniku | |
TCriticalSection | m_cs |
synchronizace pro pocitani referenci | |
TSimpleUnitProcessingInterface_rectangles * | m_parent |
jednotka kde byl objekt vytvoren a kam ma byt vracen |
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.
|
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. |
|
Soukromy destruktor. METODA JE VOLANA Z MANAGERU TECHTO OBJEKTU VE VYPOCETNI JEDNOTCE DEFINOVANE NIZE. Definition at line 143 of file Simple_rectangles.h. |
|
falesny kopirovaci konstruktor
|
|
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: ![]() |
|
Virtualni metoda vracejici ukazatel na obdelnik na zadanem indexu. Pokud je index mimo pak vraci metoda NULL.
Implements NSPipeline::TUnitRetType_rectangles. Definition at line 112 of file Simple_rectangles.h. References m_value. |
|
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. |
|
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.
Definition at line 157 of file Simple_rectangles.h. References m_value. |
|
falesny prirazovaci operator
|
|
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: ![]() |
|
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(). |
|
Nastaveni rodicovske jednotky pro tento objekt. Metoda je volana v manageru objektu zadane jednotky a tedy k ni pristupuje pouze jedno vlakno.
Definition at line 194 of file Simple_rectangles.h. References m_parent. Referenced by NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::GetObject(). |
|
synchronizace pro pocitani referenci
Definition at line 91 of file Simple_rectangles.h. |
|
jednotka kde byl objekt vytvoren a kam ma byt vracen
Definition at line 93 of file Simple_rectangles.h. Referenced by Release(), and SetParent(). |
|
pocet referenci na objekt
Definition at line 86 of file Simple_rectangles.h. Referenced by AddRefs(), Release(), Reset(), and TUnitRetType_rectangles_implemented(). |
|
vlastni ulozena hodnota tj. pole obdelniku
Definition at line 88 of file Simple_rectangles.h. Referenced by GetRectangle(), GetRectangleCount(), InsertRectangle(), and Reset(). |
|
Definition at line 56 of file Simple_rectangles.h. |
|
Definition at line 57 of file Simple_rectangles.h. |