neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_resource Class Referenceabstract

#include <i_resource.hpp>

Inheritance diagram for neogfx::i_resource:
neolib::i_reference_counted neogfx::i_image

Classes

struct  const_data
 
struct  no_data
 
struct  not_available
 

Public Types

typedef neolib::i_vector< uint8_t > data_type
 
typedef data_type hash_digest_type
 

Public Member Functions

virtual ~i_resource ()=default
 
virtual bool available () const =0
 
virtual bool downloading () const =0
 
virtual double downloading_progress () const =0
 
virtual bool error () const =0
 
virtual i_string const & error_string () const =0
 
virtual i_string const & uri () const =0
 
virtual bool is_empty () const =0
 
virtual const void * cdata () const =0
 
virtual const void * data () const =0
 
virtual void * data ()=0
 
virtual std::size_t size () const =0
 
virtual hash_digest_type const & hash () const =0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Detailed Description

Definition at line 27 of file i_resource.hpp.

Member Typedef Documentation

◆ data_type

Definition at line 35 of file i_resource.hpp.

◆ hash_digest_type

Definition at line 36 of file i_resource.hpp.

Constructor & Destructor Documentation

◆ ~i_resource()

virtual neogfx::i_resource::~i_resource ( )
virtualdefault

Member Function Documentation

◆ available()

virtual bool neogfx::i_resource::available ( ) const
pure virtual

◆ cdata()

virtual const void * neogfx::i_resource::cdata ( ) const
pure virtual

◆ data() [1/2]

virtual const void * neogfx::i_resource::data ( ) const
pure virtual

◆ data() [2/2]

virtual void * neogfx::i_resource::data ( )
pure virtual

◆ downloading()

virtual bool neogfx::i_resource::downloading ( ) const
pure virtual

◆ downloading_progress()

virtual double neogfx::i_resource::downloading_progress ( ) const
pure virtual

◆ error()

virtual bool neogfx::i_resource::error ( ) const
pure virtual

◆ error_string()

virtual i_string const & neogfx::i_resource::error_string ( ) const
pure virtual

◆ hash()

virtual hash_digest_type const & neogfx::i_resource::hash ( ) const
pure virtual

◆ is_empty()

virtual bool neogfx::i_resource::is_empty ( ) const
pure virtual

◆ size()

virtual std::size_t neogfx::i_resource::size ( ) const
pure virtual

◆ uri()

virtual i_string const & neogfx::i_resource::uri ( ) const
pure virtual

The documentation for this class was generated from the following file: