ExampleClass Class Reference

#include <kaldi-thread.h>

Inheritance diagram for ExampleClass:
Collaboration diagram for ExampleClass:

Public Member Functions

 ExampleClass (int32 *foo)
 
 ExampleClass (const ExampleClass &other)
 
void operator() ()
 
 ~ExampleClass ()
 
- Public Member Functions inherited from MultiThreadable
virtual ~MultiThreadable ()
 

Additional Inherited Members

- Public Attributes inherited from MultiThreadable
int32 thread_id_
 
int32 num_threads_
 

Detailed Description

Definition at line 92 of file kaldi-thread.h.

Constructor & Destructor Documentation

◆ ExampleClass() [1/2]

ExampleClass ( int32 foo)

◆ ExampleClass() [2/2]

ExampleClass ( const ExampleClass other)

◆ ~ExampleClass()

~ExampleClass ( )
inline

Definition at line 106 of file kaldi-thread.h.

106  {
107  // Optional destructor. Sometimes useful things happen here,
108  // for example summing up of certain quantities. See code
109  // that uses RunMultiThreaded for examples.
110  }

Member Function Documentation

◆ operator()()

void operator() ( )
inlinevirtual

Implements MultiThreadable.

Definition at line 100 of file kaldi-thread.h.

100  {
101  // Does the main function of the class. This
102  // function will typically want to look at the values of the
103  // member variables thread_id_ and num_threads_, inherited
104  // from MultiThreadable.
105  }

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