g4tools  5.4.0
Public Types | Public Member Functions | List of all members
tools::io::irbuf Class Referenceabstract

Public Types

typedef std::vector< std::vector< unsigned int > > std_vec_vec_uint_t
 
typedef std::vector< std::vector< float > > std_vec_vec_float_t
 
typedef std::vector< std::vector< double > > std_vec_vec_double_t
 
typedef std::vector< std::vector< std::string > > std_vec_vec_string_t
 

Public Member Functions

virtual ~irbuf ()
 
virtual bool read (uchar &)=0
 
virtual bool read (char &)=0
 
virtual bool read (uint16 &)=0
 
virtual bool read (int16 &)=0
 
virtual bool read (uint32 &)=0
 
virtual bool read (int32 &)=0
 
virtual bool read (uint64 &)=0
 
virtual bool read (int64 &)=0
 
virtual bool read (float &)=0
 
virtual bool read (double &)=0
 
virtual bool read (bool &)=0
 
virtual bool read_vec (uint32 &, uchar *&)=0
 
virtual bool read_vec (uint32 &, char *&)=0
 
virtual bool read_vec (uint32 &, uint16 *&)=0
 
virtual bool read_vec (uint32 &, int16 *&)=0
 
virtual bool read_vec (uint32 &, uint32 *&)=0
 
virtual bool read_vec (uint32 &, int32 *&)=0
 
virtual bool read_vec (uint32 &, uint64 *&)=0
 
virtual bool read_vec (uint32 &, int64 *&)=0
 
virtual bool read_vec (uint32 &, float *&)=0
 
virtual bool read_vec (uint32 &, double *&)=0
 
virtual bool read_vec (uint32 &, bool *&)=0
 
virtual bool read_vec (std::vector< std::string > &)=0
 
virtual bool read_cstr (char *&)=0
 
virtual bool read_img (uint32 &, uint32 &, uint32 &, uchar *&)=0
 
virtual bool read_std_vec_vec (std_vec_vec_uint_t &)=0
 
virtual bool read_std_vec_vec (std_vec_vec_float_t &)=0
 
virtual bool read_std_vec_vec (std_vec_vec_double_t &)=0
 
virtual bool read_std_vec_vec (std_vec_vec_string_t &)=0
 
template<class T >
bool read_std_vec (std::vector< T > &a_x)
 

Detailed Description

Definition at line 19 of file irbuf.

Member Typedef Documentation

◆ std_vec_vec_double_t

typedef std::vector< std::vector<double> > tools::io::irbuf::std_vec_vec_double_t

Definition at line 58 of file irbuf.

◆ std_vec_vec_float_t

typedef std::vector< std::vector<float> > tools::io::irbuf::std_vec_vec_float_t

Definition at line 55 of file irbuf.

◆ std_vec_vec_string_t

typedef std::vector< std::vector<std::string> > tools::io::irbuf::std_vec_vec_string_t

Definition at line 61 of file irbuf.

◆ std_vec_vec_uint_t

typedef std::vector< std::vector<unsigned int> > tools::io::irbuf::std_vec_vec_uint_t

Definition at line 52 of file irbuf.

Constructor & Destructor Documentation

◆ ~irbuf()

virtual tools::io::irbuf::~irbuf ( )
inlinevirtual

Definition at line 21 of file irbuf.

21 {}

Member Function Documentation

◆ read() [1/11]

virtual bool tools::io::irbuf::read ( bool &  )
pure virtual

◆ read() [2/11]

virtual bool tools::io::irbuf::read ( char &  )
pure virtual

◆ read() [3/11]

virtual bool tools::io::irbuf::read ( double &  )
pure virtual

◆ read() [4/11]

virtual bool tools::io::irbuf::read ( float &  )
pure virtual

◆ read() [5/11]

virtual bool tools::io::irbuf::read ( int16 )
pure virtual

◆ read() [6/11]

virtual bool tools::io::irbuf::read ( int32 )
pure virtual

◆ read() [7/11]

virtual bool tools::io::irbuf::read ( int64 )
pure virtual

◆ read() [8/11]

virtual bool tools::io::irbuf::read ( uchar )
pure virtual

◆ read() [9/11]

virtual bool tools::io::irbuf::read ( uint16 )
pure virtual

◆ read() [10/11]

virtual bool tools::io::irbuf::read ( uint32 )
pure virtual

◆ read() [11/11]

virtual bool tools::io::irbuf::read ( uint64 )
pure virtual

◆ read_cstr()

virtual bool tools::io::irbuf::read_cstr ( char *&  )
pure virtual

◆ read_img()

virtual bool tools::io::irbuf::read_img ( uint32 ,
uint32 ,
uint32 ,
uchar *&   
)
pure virtual

◆ read_std_vec()

template<class T >
bool tools::io::irbuf::read_std_vec ( std::vector< T > &  a_x)
inline

Definition at line 65 of file irbuf.

65  {
66  uint32 n;
67  T* v;
68  if(!read_vec(n,v)) return false;
69  a_x.resize(n);
70  for(uint32 index=0;index<n;index++) a_x[index] = v[index];
71  delete [] v;
72 #ifdef TOOLS_MEM
73  mem::decrement(s_new().c_str());
74 #endif
75  return true;
76  }

◆ read_std_vec_vec() [1/4]

virtual bool tools::io::irbuf::read_std_vec_vec ( std_vec_vec_double_t )
pure virtual

◆ read_std_vec_vec() [2/4]

virtual bool tools::io::irbuf::read_std_vec_vec ( std_vec_vec_float_t )
pure virtual

◆ read_std_vec_vec() [3/4]

virtual bool tools::io::irbuf::read_std_vec_vec ( std_vec_vec_string_t )
pure virtual

◆ read_std_vec_vec() [4/4]

virtual bool tools::io::irbuf::read_std_vec_vec ( std_vec_vec_uint_t )
pure virtual

◆ read_vec() [1/12]

virtual bool tools::io::irbuf::read_vec ( std::vector< std::string > &  )
pure virtual

◆ read_vec() [2/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
bool *&   
)
pure virtual

◆ read_vec() [3/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
char *&   
)
pure virtual

◆ read_vec() [4/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
double *&   
)
pure virtual

◆ read_vec() [5/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
float *&   
)
pure virtual

◆ read_vec() [6/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
int16 *&   
)
pure virtual

◆ read_vec() [7/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
int32 *&   
)
pure virtual

◆ read_vec() [8/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
int64 *&   
)
pure virtual

◆ read_vec() [9/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
uchar *&   
)
pure virtual

◆ read_vec() [10/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
uint16 *&   
)
pure virtual

◆ read_vec() [11/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
uint32 *&   
)
pure virtual

◆ read_vec() [12/12]

virtual bool tools::io::irbuf::read_vec ( uint32 ,
uint64 *&   
)
pure virtual

The documentation for this class was generated from the following file:
tools::io::irbuf::read_vec
virtual bool read_vec(uint32 &, uchar *&)=0
tools::uint32
unsigned int uint32
Definition: typedefs:71