#include <qgarlib/GenMask1d.H>
Inheritance diagram for qgar::GenMask1d< T >:

Definition at line 59 of file GenMask1d.H.
Public Types | |
Types | |
| typedef T | value_type |
| Type of the mask coefficients. | |
| typedef value_type & | reference |
| Reference to qgar::GenMask1d::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenMask1d::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenMask1d::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenMask1d::value_type. | |
Public Member Functions | |
| template<class T> | |
| GenMask1d (unsigned int aWidth, const T *const pVals) | |
Constructors | |
| GenMask1d () | |
| Default constructor: Set 0 to mask width, to pointer to the coefficient map, and to reference counter. | |
| GenMask1d (const GenMask1d< value_type > &aMask) | |
| Copy constructor. | |
| template<class U> | |
| GenMask1d (const GenMask1d< U > &aMask) | |
| Conversion from another mask. | |
| GenMask1d (unsigned int aWidth, value_type aValue=static_cast< value_type >(0)) | |
| Initialize with given width and value. | |
| GenMask1d (unsigned int aWidth, const_pointer const pVals) | |
| Create a mask from an array of values. | |
Destructor | |
| virtual | ~GenMask1d () |
| virtual destructor. | |
Access to mask characteristics | |
| int | width () const |
| Get mask width. | |
Access to coefficient values | |
| value_type | coeff (int anIdx) const |
| Get a coefficient value. | |
Access to direct transformations of the coefficient map | |
| pointer | pCoeffMap () const |
| Get the pointer to the coefficient map. | |
Transformation | |
| void | setCoeff (int anIdx, value_type aCoeff) |
| Set coefficient at given index. | |
Copy | |
| GenMask1d< T > * | shallowCopy () |
| Shallow copy: The coefficient map of the source mask is not duplicated. | |
Operators | |
| GenMask1d< T > & | operator= (const GenMask1d< T > &aMask) |
| Assignment. | |
Protected Member Functions | |
Shallow copy constructor | |
| GenMask1d (const GenMask1d &rhs, int) | |
| Disguised copy constructor sharing value array between the passed and the created instance. | |
Protected Attributes | |
Representation of a mask | |
| int * | _pRefCnt |
| Reference counter. | |
| int | _width |
| Mask width. | |
| pointer | _pCoeffMap |
| Pointer to the memory space of the mask. | |
Private Member Functions | |
Auxiliaries | |
| void | deepCopyAux (const GenMask1d< value_type > &aMask) |
| Store a deep copy of a given mask into the current mask. | |
|
|||||
|
Constant pointer to qgar::GenMask1d::value_type.
Definition at line 93 of file GenMask1d.H. |
|
|||||
|
Constant reference to qgar::GenMask1d::value_type.
Definition at line 83 of file GenMask1d.H. |
|
|||||
|
Pointer to qgar::GenMask1d::value_type.
Definition at line 88 of file GenMask1d.H. |
|
|||||
|
Reference to qgar::GenMask1d::value_type.
Definition at line 78 of file GenMask1d.H. |
|
|||||
|
Type of the mask coefficients.
Definition at line 73 of file GenMask1d.H. |
|
|||||||||
|
Default constructor: Set 0 to mask width, to pointer to the coefficient map, and to reference counter.
Definition at line 56 of file GenMask1d.TCC. Referenced by qgar::GenMask1d< T >::shallowCopy(). |
|
||||||||||
|
Copy constructor. See also qgar::GenMask1d::operator=, qgar::GenMask1d::deepCopy, and qgar::GenMask1d::shallowCopy.
Definition at line 70 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap, qgar::GenMask1d< T >::_width, and qgar::GenMask1d< T >::pCoeffMap(). |
|
||||||||||||||
|
Conversion from another mask. See also qgar::GenMask1d::operator=, qgar::GenMask1d::shallowCopy.
|
|
||||||||||||||||
|
Initialize with given width and value.
Definition at line 103 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap, qgar::GenMask1d< T >::_width, and qgar::qgFill(). |
|
||||||||||||||||
|
Create a mask from an array of values. The passed array is duplicated using a raw memcopy.
|
|
|||||||||
|
virtual destructor. Free space allocated to the coefficient map if and only if the reference counter is null. Definition at line 150 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap, and qgar::GenMask1d< T >::_pRefCnt. |
|
||||||||||||||||
|
Disguised copy constructor sharing value array between the passed and the created instance. This constructor declares an unused int parameter to avoid ambiguous call between it and the copy constructor. It builds a shallow copy of a mask instance.
Definition at line 131 of file GenMask1d.TCC. |
|
||||||||||||||||||||
|
Definition at line 117 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap. |
|
||||||||||
|
Get a coefficient value.
Definition at line 193 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap. |
|
||||||||||
|
Store a deep copy of a given mask into the current mask.
Definition at line 247 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap, qgar::GenMask1d< T >::_pRefCnt, qgar::GenMask1d< T >::_width, and qgar::GenMask1d< T >::pCoeffMap(). Referenced by qgar::GenMask1d< T >::operator=(). |
|
||||||||||
|
Assignment.
Definition at line 274 of file GenMask1d.TCC. References qgar::GenMask1d< T >::deepCopyAux(). |
|
|||||||||
|
Get the pointer to the coefficient map.
Definition at line 208 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap. Referenced by qgar::GenMask1d< T >::deepCopyAux(), qgar::GenMask1d< T >::GenMask1d(), qgar::GenConvolImage< T, CheckingPolicy >::xconvol(), and qgar::GenConvolImage< T, CheckingPolicy >::yconvol(). |
|
||||||||||||||||
|
Set coefficient at given index.
Definition at line 223 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_pCoeffMap. |
|
|||||||||
|
Shallow copy: The coefficient map of the source mask is not duplicated. See also qgar::GenMask1d(Genmask1d<t>&), qgar::GenMask1d::operator=,
Definition at line 240 of file GenMask1d.TCC. References qgar::GenMask1d< T >::GenMask1d(). |
|
|||||||||
|
Get mask width.
Definition at line 178 of file GenMask1d.TCC. References qgar::GenMask1d< T >::_width. Referenced by qgar::GenConvolImage< T, CheckingPolicy >::xconvol(), and qgar::GenConvolImage< T, CheckingPolicy >::yconvol(). |
|
|||||
|
Pointer to the memory space of the mask.
Definition at line 313 of file GenMask1d.H. Referenced by qgar::GenMask1d< T >::coeff(), qgar::GenMask1d< T >::deepCopyAux(), qgar::GenMask1d< T >::GenMask1d(), qgar::Mask1dGaussD1::Mask1dGaussD1(), qgar::GenMask1d< T >::pCoeffMap(), qgar::GenMask1d< T >::setCoeff(), and qgar::GenMask1d< T >::~GenMask1d(). |
|
|||||
|
Reference counter. Its value represent the number of other masks with which the current mask shares its coefficient map. Definition at line 303 of file GenMask1d.H. Referenced by qgar::GenMask1d< T >::deepCopyAux(), and qgar::GenMask1d< T >::~GenMask1d(). |
|
|||||
|
Mask width.
Definition at line 308 of file GenMask1d.H. Referenced by qgar::GenMask1d< T >::deepCopyAux(), qgar::GenMask1d< T >::GenMask1d(), qgar::Mask1dGaussD1::Mask1dGaussD1(), and qgar::GenMask1d< T >::width(). |