Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

UniqueList Class Reference

#include <UniqueList.h>

List of all members.

Public Member Functions

 UniqueList (const std::string &name)
void insert (const Data *)
unsigned getLevels (void) const
unsigned getAllLevels (void) const
 getLevels returns the number of non-missing levels.
unsigned getCount (void) const
 getAllLevels returns the number of non-missing levels and one missing level if present
unsigned getCountMissing (void) const
void assignOrdinals (void)
unsigned getOrdinalForKey (const Data *dp) const
void getOrdinalAndLabelForKey (const Data *dp, std::string &label, unsigned &ordinal) const
std::vector< std::string > getLabels (void) const
void printResults (void) const

Private Types

typedef std::map< const Data
*const, CategoricalInformation,
_compareData
UNIQUELIST

Private Attributes

std::string _name
unsigned _levels
unsigned _count
unsigned _countMissing
UNIQUELIST _uniqueList

Classes

struct  _compareData


Member Typedef Documentation

typedef std::map<const Data * const,CategoricalInformation,_compareData> UniqueList::UNIQUELIST [private]
 


Constructor & Destructor Documentation

UniqueList::UniqueList const std::string &  name  ) 
 


Member Function Documentation

void UniqueList::assignOrdinals void   ) 
 

unsigned UniqueList::getAllLevels void   )  const [inline]
 

getLevels returns the number of non-missing levels.

unsigned UniqueList::getCount void   )  const [inline]
 

getAllLevels returns the number of non-missing levels and one missing level if present

unsigned UniqueList::getCountMissing void   )  const [inline]
 

std::vector< std::string > UniqueList::getLabels void   )  const
 

unsigned UniqueList::getLevels void   )  const [inline]
 

void UniqueList::getOrdinalAndLabelForKey const Data dp,
std::string &  label,
unsigned &  ordinal
const
 

unsigned UniqueList::getOrdinalForKey const Data dp  )  const
 

void UniqueList::insert const Data  ) 
 

void UniqueList::printResults void   )  const
 


Member Data Documentation

unsigned UniqueList::_count [private]
 

unsigned UniqueList::_countMissing [private]
 

unsigned UniqueList::_levels [private]
 

std::string UniqueList::_name [private]
 

UNIQUELIST UniqueList::_uniqueList [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4