tesseract  4.00.00dev
genericvector.h File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "tesscallback.h"
#include "errcode.h"
#include "helpers.h"
#include "ndminx.h"
#include "serialis.h"
#include "strngs.h"

Go to the source code of this file.

Classes

class  GenericVector< T >
 
class  tesseract::PointerVector< T >
 
class  GenericVectorEqEq< T >
 

Namespaces

 tesseract
 

Macros

#define rand_r(seed)   rand()
 

Typedefs

typedef bool(* tesseract::FileReader) (const STRING &filename, GenericVector< char > *data)
 
typedef bool(* tesseract::FileWriter) (const GenericVector< char > &data, const STRING &filename)
 

Functions

bool tesseract::LoadDataFromFile (const char *filename, GenericVector< char > *data)
 
bool tesseract::LoadDataFromFile (const STRING &filename, GenericVector< char > *data)
 
bool tesseract::SaveDataToFile (const GenericVector< char > &data, const STRING &filename)
 
bool tesseract::LoadFileLinesToStrings (const STRING &filename, GenericVector< STRING > *lines)
 
template<typename T >
bool tesseract::cmp_eq (T const &t1, T const &t2)
 
template<typename T >
int tesseract::sort_cmp (const void *t1, const void *t2)
 
template<typename T >
int tesseract::sort_ptr_cmp (const void *t1, const void *t2)
 

Macro Definition Documentation

◆ rand_r

#define rand_r (   seed)    rand()