C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
templ_array2.h File Reference

Two-dimensional array of objects. More...

#include <stdlib.h>
#include <io_define.h>
#include <tool_quick_sort.h>
#include <string.h>
#include <utility>
#include <tool_err_handling.h>

Classes

class  Array2< Type >
 Two-dimensional array of objects. More...
 

Functions

template<class Type >
bool realloc_line (Type *&line, size_t oldSize, size_t newSize)
 Reallocate memory for one row.
 
template<class Type >
bool insert_column_to_array (Array2< Type > &arr, size_t ind)
 Insert column before specified one and fill it with zeros.
 
template<class Type >
bool add_column_to_array (Array2< Type > &arr)
 Add (last) column to array and fill it with zeros.
 
template<class Type >
void remove_column_from_array (Array2< Type > &arr, size_t ind)
 Delete column from array by the index.
 
template<class Type >
void zero_array (Array2< Type > &arr)
 Fill the array with zeros.
 
template<class Type >
void Transpose (const Array2< Type > &srcMtr, Array2< Type > &dstMtr)
 Transpose a matrix. More...
 

Detailed Description

Two-dimensional array of objects.