SizeName Class Reference

Contains the size and the name of a file/item. More...

#include <Input.h>

Collaboration diagram for SizeName:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Contains the size and the name of a file/item.

Constructor & Destructor Documentation

SizeName::SizeName ( const std::string  id,
const Params::Size_t  size 
) [inline]


Member Function Documentation

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().

static bool SizeName::CmpSize ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by size (ascending).

References Size().

Referenced by Optimizer::Output().

static bool SizeName::CmpSizeRev ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by size (descending).

References Size().

Referenced by BestFit::BestFit(), and Optimizer::Output().

static bool SizeName::CmpName ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by name (ascending).

References Name().

Referenced by Optimizer::Output().

static bool SizeName::CmpNameRev ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by name (descending).

References Name().

Referenced by Optimizer::Output().

static bool SizeName::CmpNameNocase ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by name (ascending and nocase).

References Name().

Referenced by CmpNameRevNocase(), and Optimizer::Output().

static bool SizeName::CmpNameRevNocase ( const SizeName a,
const SizeName b 
) [inline, static]

Comparison function for sorting by name (descending and nocase).

References CmpNameNocase().

Referenced by Optimizer::Output().


Member Data Documentation

const std::string SizeName::m_name [private]

Holds the file/item name

Referenced by Name().

Holds the file/item size

Referenced by Size().


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