ULIS  dev4.0.7
Utility Library for Imaging Systems
Public Member Functions | Protected Member Functions | List of all members
THasBlock< BlockType, BlockAllocatorType > Class Template Reference

Simple HasBlock class.

Inheritance diagram for THasBlock< BlockType, BlockAllocatorType >:

Public Member Functions

BlockType * Block ()
 
const BlockType * Block () const
 
- Public Member Functions inherited from TCallbackCapable< DelegateType, _ID >
 TCallbackCapable (const DelegateType &iDelegate=DelegateType())
 
 TCallbackCapable (typename DelegateType::tFptr iDelegateFPTR)
 
const DelegateType & GetDelegate () const
 
template<typename ... Args>
void Invoke (Args ... args) const
 
void SetDelegate (const DelegateType &iDelegate)
 
void SetDelegate (const TCallbackCapable< DelegateType, _ID > &iOther)
 
void SetDelegate (typename DelegateType::tFptr iDelegateFPTR)
 

Protected Member Functions

 THasBlock (BlockType *iBlock, const TOnBlockChanged< BlockType > &iDelegate=TOnBlockChanged< BlockType >())
 
 THasBlock (uint16 iWidth, uint16 iHeight, eFormat iFormat=eFormat::Format_RGBA8, const FColorSpace *iColorSpace=nullptr, const TOnBlockChanged< BlockType > &iDelegate=TOnBlockChanged< BlockType >())
 
 ~THasBlock ()
 
void Realloc (uint16 iWidth, uint16 iHeight, eFormat iFormat=eFormat::Format_RGBA8, const FColorSpace *iColorSpace=nullptr)
 
void Replace (BlockType *iValue)
 

Additional Inherited Members

- Public Types inherited from TCallbackCapable< DelegateType, _ID >
using Delegate = DelegateType
 

Constructor & Destructor Documentation

◆ ~THasBlock()

template<class BlockType , class BlockAllocatorType >
THasBlock< BlockType, BlockAllocatorType >::~THasBlock ( )
protected

◆ THasBlock() [1/2]

template<class BlockType , class BlockAllocatorType >
THasBlock< BlockType, BlockAllocatorType >::THasBlock ( uint16  iWidth,
uint16  iHeight,
eFormat  iFormat = eFormat::Format_RGBA8,
const FColorSpace iColorSpace = nullptr,
const TOnBlockChanged< BlockType > &  iDelegate = TOnBlockChanged< BlockType >() 
)
protected

◆ THasBlock() [2/2]

template<class BlockType , class BlockAllocatorType >
THasBlock< BlockType, BlockAllocatorType >::THasBlock ( BlockType *  iBlock,
const TOnBlockChanged< BlockType > &  iDelegate = TOnBlockChanged< BlockType >() 
)
protected

Member Function Documentation

◆ Block() [1/2]

template<class BlockType , class BlockAllocatorType >
BlockType* THasBlock< BlockType, BlockAllocatorType >::Block ( )

◆ Block() [2/2]

template<class BlockType , class BlockAllocatorType >
const BlockType* THasBlock< BlockType, BlockAllocatorType >::Block ( ) const

◆ Realloc()

template<class BlockType , class BlockAllocatorType >
void THasBlock< BlockType, BlockAllocatorType >::Realloc ( uint16  iWidth,
uint16  iHeight,
eFormat  iFormat = eFormat::Format_RGBA8,
const FColorSpace iColorSpace = nullptr 
)
protected

◆ Replace()

template<class BlockType , class BlockAllocatorType >
void THasBlock< BlockType, BlockAllocatorType >::Replace ( BlockType *  iValue)
protected