Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::TypedThreadGroup< THREAD > Class Template Reference

Typed collection of Threads. More...

#include <geogram/basic/process.h>

Inheritance diagram for GEO::TypedThreadGroup< THREAD >:

Public Member Functions

 TypedThreadGroup ()
 Creates an empty group of Threads. More...
 
THREAD * operator[] (index_t i)
 Gets a thread element by index. More...
 

Detailed Description

template<class THREAD>
class GEO::TypedThreadGroup< THREAD >

Typed collection of Threads.

TypedThreadGroup is a ThreadGroup that provides a typed accessor with operator[]().

Template Parameters
THREADthe type of Threads in the collection

Definition at line 165 of file process.h.

Constructor & Destructor Documentation

◆ TypedThreadGroup()

template<class THREAD >
GEO::TypedThreadGroup< THREAD >::TypedThreadGroup ( )
inline

Creates an empty group of Threads.

Thread elements can be added with the std::vector operation push_back()

Definition at line 172 of file process.h.

Member Function Documentation

◆ operator[]()

template<class THREAD >
THREAD* GEO::TypedThreadGroup< THREAD >::operator[] ( index_t  i)
inline

Gets a thread element by index.

Parameters
[in]iindex of the element
Returns
a pointer to the THREAD at position i in the thread group

Definition at line 181 of file process.h.


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