#include <Input.h>
Public Member Functions | |
SizeName (const std::string id, const Params::Size_t size) | |
Params::Size_t | Size () const |
const std::string & | Name () const |
Static Public Member Functions | |
static bool | CmpSize (const SizeName *a, const SizeName *b) |
static bool | CmpSizeRev (const SizeName *a, const SizeName *b) |
static bool | CmpName (const SizeName *a, const SizeName *b) |
static bool | CmpNameRev (const SizeName *a, const SizeName *b) |
static bool | CmpNameNocase (const SizeName *a, const SizeName *b) |
static bool | CmpNameRevNocase (const SizeName *a, const SizeName *b) |
Private Attributes | |
const std::string | m_name |
const Params::Size_t | m_size |
SizeName::SizeName | ( | const std::string | id, | |
const Params::Size_t | size | |||
) | [inline] |
Params::Size_t SizeName::Size | ( | ) | const [inline] |
Returns the filesize.
References m_size.
Referenced by Bin::AddItem(), CmpSize(), CmpSizeRev(), and Bin::ReplaceItem().
const std::string& SizeName::Name | ( | ) | const [inline] |
Returns the filename.
References m_name.
Referenced by CmpName(), CmpNameNocase(), and CmpNameRev().
Comparison function for sorting by size (ascending).
References Size().
Referenced by Optimizer::Output().
Comparison function for sorting by size (descending).
References Size().
Referenced by BestFit::BestFit(), and Optimizer::Output().
Comparison function for sorting by name (ascending).
References Name().
Referenced by Optimizer::Output().
Comparison function for sorting by name (descending).
References Name().
Referenced by Optimizer::Output().
Comparison function for sorting by name (ascending and nocase).
References Name().
Referenced by CmpNameRevNocase(), and Optimizer::Output().
Comparison function for sorting by name (descending and nocase).
References CmpNameNocase().
Referenced by Optimizer::Output().
const std::string SizeName::m_name [private] |
Holds the file/item name
Referenced by Name().
const Params::Size_t SizeName::m_size [private] |
Holds the file/item size
Referenced by Size().