public abstract

Inheritance Graph

graph BT
	Resource
	Resource --> ReferenceCounter
	click Resource "classUtil_1_1Resource"
	click ReferenceCounter "classUtil_1_1ReferenceCounter"

Description

Protected Attributes

   
   
size_t dataSize

Public Functions

   
   
  Resource(const ResourceFormat & format, ResourceAllocator * allocator)
   
  ~Resource()
   
  Resource(const Resource & void)
   
  Resource( Resource && void)
   
Resource & operator=(const Resource & o)
   
Resource & operator=( Resource && o)
   
void upload(const uint8_t * srcData, size_t size, size_t offset)
template< typename T >  
void upload(const std::vector< T > & data, size_t offset)
   
void download(uint8_t * tgtData, size_t size, size_t offset)
template< typename T >  
std::vector< T > download(size_t numberOfElements, size_t offset)
   
void release()
   
void flush()
   
uint8_t * map()
   
void unmap()
   
size_t getSize() const
   
const ResourceFormat & getFormat() const

Protected Functions

   
   
bool checkRange(size_t offset, size_t size) const

Documentation

variable
Util::Resource::dataSize

protected
 
 
size_t dataSize

Defined in Util/Resources/Resource.h:56


function
Util::Resource::Resource

public explicit
     
     
Resource( const ResourceFormat & format,
  ResourceAllocator * allocator
)    

Defined in Util/Resources/Resource.h:24


function
Util::Resource::~Resource

public virtual
   
   
~Resource( )

Defined in Util/Resources/Resource.h:25


function
Util::Resource::Resource

public
     
     
Resource( const Resource & void )

Defined in Util/Resources/Resource.h:26


function
Util::Resource::Resource

public
     
     
Resource( Resource && void )

Defined in Util/Resources/Resource.h:27


function
Util::Resource::operator=

public
     
     
Resource & operator=( const Resource & o )

Defined in Util/Resources/Resource.h:28


function
Util::Resource::operator=

public
     
     
Resource & operator=( Resource && o )

Defined in Util/Resources/Resource.h:29


function
Util::Resource::upload

public virtual
     
     
void upload( const uint8_t * srcData,
  size_t size,
  size_t offset
)    

Defined in Util/Resources/Resource.h:31


function
Util::Resource::upload

public inline
     
template< typename T >    
void upload( const std::vector< T > & data,
  size_t offset
)    

Defined in Util/Resources/Resource.h:34


function
Util::Resource::download

public virtual
     
     
void download( uint8_t * tgtData,
  size_t size,
  size_t offset
)    

Defined in Util/Resources/Resource.h:38


function
Util::Resource::download

public inline
     
template< typename T >    
std::vector< T > download( size_t numberOfElements,
  size_t offset
)    

Defined in Util/Resources/Resource.h:41


function
Util::Resource::release

public inline virtual
   
   
void release( )

Defined in Util/Resources/Resource.h:47


function
Util::Resource::flush

public inline virtual
   
   
void flush( )

Defined in Util/Resources/Resource.h:49


function
Util::Resource::map

public virtual
   
   
uint8_t * map( )

Defined in Util/Resources/Resource.h:50


function
Util::Resource::unmap

public inline virtual
   
   
void unmap( )

Defined in Util/Resources/Resource.h:51


function
Util::Resource::getSize

public const inline
   
   
size_t getSize( ) const

Defined in Util/Resources/Resource.h:53


function
Util::Resource::getFormat

public const inline
   
   
const ResourceFormat & getFormat( ) const

Defined in Util/Resources/Resource.h:54


function
Util::Resource::checkRange

protected const inline
     
     
bool checkRange( size_t offset,
  size_t size
) const    

Defined in Util/Resources/Resource.h:57