#include <networkscratch.h>
Definition at line 129 of file networkscratch.h.
◆ FloatVec() [1/2]
tesseract::NetworkScratch::FloatVec::FloatVec |
( |
int |
size, |
|
|
NetworkScratch * |
scratch |
|
) |
| |
|
inline |
Definition at line 132 of file networkscratch.h.
132 : vec_(
nullptr), scratch_space_(scratch) {
void Init(int, int reserve, NetworkScratch *scratch)
◆ FloatVec() [2/2]
tesseract::NetworkScratch::FloatVec::FloatVec |
( |
| ) |
|
|
inline |
Definition at line 136 of file networkscratch.h.
136 : vec_(
nullptr), data_(
nullptr), scratch_space_(
nullptr) {}
◆ ~FloatVec()
tesseract::NetworkScratch::FloatVec::~FloatVec |
( |
| ) |
|
|
inline |
Definition at line 137 of file networkscratch.h.
138 if (scratch_space_ !=
nullptr) {
139 scratch_space_->vec_stack_.
Return(vec_);
◆ get()
TFloat* tesseract::NetworkScratch::FloatVec::get |
( |
| ) |
|
|
inline |
◆ Init() [1/2]
void tesseract::NetworkScratch::FloatVec::Init |
( |
int |
size, |
|
|
NetworkScratch * |
scratch |
|
) |
| |
|
inline |
◆ Init() [2/2]
void tesseract::NetworkScratch::FloatVec::Init |
( |
int |
, |
|
|
int |
reserve, |
|
|
NetworkScratch * |
scratch |
|
) |
| |
|
inline |
Definition at line 143 of file networkscratch.h.
144 if (scratch_space_ !=
nullptr && vec_ !=
nullptr) {
145 scratch_space_->vec_stack_.
Return(vec_);
147 scratch_space_ = scratch;
148 vec_ = scratch_space_->vec_stack_.
Borrow();
150 vec_->resize(reserve);
◆ operator TFloat *()
tesseract::NetworkScratch::FloatVec::operator TFloat * |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: