Uranus  1.0.1.0
Uranus is a GameEngine written in C++
Loading...
Searching...
No Matches
tson::DecompressorContainer Class Reference
Collaboration diagram for tson::DecompressorContainer:
[legend]

Public Member Functions

template<typename T , typename... Args>
void add (Args &&...args)
 
void clear ()
 
bool contains (std::string_view name) const
 
bool empty () const
 
IDecompressor< std::string_view, std::string > * get (std::string_view name)
 
void remove (std::string_view name)
 
size_t size () const
 

Private Attributes

std::vector< std::unique_ptr< IDecompressor< std::string_view, std::string > > > m_decompressors
 

Member Function Documentation

◆ clear()

void tson::DecompressorContainer::clear ( )
inline

Clears all IDecompressor elements in the container

◆ contains()

bool tson::DecompressorContainer::contains ( std::string_view  name) const
inline
Parameters
nameThe name of the decompressor to check whether exists.
Returns
Whether a decompressor with the given name exists or not.

◆ empty()

bool tson::DecompressorContainer::empty ( ) const
inline

Check if container is empty

Returns
Whether or not the container is empty

◆ get()

IDecompressor< std::string_view, std::string > * tson::DecompressorContainer::get ( std::string_view  name)
inline
Parameters
nameThe name of the container
Returns
An ICompressor pointer if it exists. nullptr otherwise.

◆ remove()

void tson::DecompressorContainer::remove ( std::string_view  name)
inline

Removed an element with the given name.

Parameters
nameThe name of the decompressor

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