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

#include <module_resource.hpp>

Inheritance diagram for neogfx::module_resource:
neolib::reference_counted< Base, DeallocateOnRelease >

Public Types

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

Public Member Functions

 define_declared_event (Downloaded, downloaded) define_declared_event(FailedToDownload
 
 module_resource (std::string const &aUri, const void *aData, std::size_t aSize)
 
bool available () const override
 
bool downloading () const override
 
double downloading_progress () const override
 
bool error () const override
 
i_string const & error_string () const override
 
i_string const & uri () const override
 
bool is_empty () const override
 
const void * cdata () const override
 
const void * data () const override
 
void * data () override
 
std::size_t size () const override
 
hash_digest_type const & hash () const override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Detailed Description

Definition at line 28 of file module_resource.hpp.

Member Typedef Documentation

◆ data_type

Definition at line 34 of file module_resource.hpp.

◆ hash_digest_type

Constructor & Destructor Documentation

◆ module_resource()

neogfx::module_resource::module_resource ( std::string const &  aUri,
const void *  aData,
std::size_t  aSize 
)

Member Function Documentation

◆ available()

bool neogfx::module_resource::available ( ) const
override

◆ cdata()

const void * neogfx::module_resource::cdata ( ) const
override

◆ data() [1/2]

const void * neogfx::module_resource::data ( ) const
override

◆ data() [2/2]

void * neogfx::module_resource::data ( )
override

◆ define_declared_event()

neogfx::module_resource::define_declared_event ( Downloaded  ,
downloaded   
)

◆ downloading()

bool neogfx::module_resource::downloading ( ) const
override

◆ downloading_progress()

double neogfx::module_resource::downloading_progress ( ) const
override

◆ error()

bool neogfx::module_resource::error ( ) const
override

◆ error_string()

i_string const & neogfx::module_resource::error_string ( ) const
override

◆ hash()

hash_digest_type const & neogfx::module_resource::hash ( ) const
override

◆ is_empty()

bool neogfx::module_resource::is_empty ( ) const
override

◆ size()

std::size_t neogfx::module_resource::size ( ) const
override

◆ uri()

i_string const & neogfx::module_resource::uri ( ) const
override

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