Structural deformable models
|
#include <ExpMap.h>
Public Types | |
enum | ReservedID { WID_EMPTY = 0, WID_FIRST, WID_LAST = 0xfffffdff, WID_FRAME, WID_BLOCKED, WID_FIRSTFREE } |
typedef std::map< std::string, dword > | BestRatings |
typedef const std::map< std::string, dword > | CBestRatings |
typedef std::map< std::string, std::map< dword, float > > | Ratings |
typedef const std::map< std::string, std::map< dword, float > > | CRatings |
Public Member Functions | |
Winner (Model *m=NULL) | |
void | setModel (Model *m) |
void | setStructName (const std::string &sname) |
void | clearRatings () |
float | rateBy (const std::string &creatorname, dword creatorid, float rating) |
float | updateBestRating () |
const BestRatings::mapped_type & | getBestRatingID (const std::string &sname) const |
const Ratings::mapped_type & | getRatingList (const std::string &sname) const |
const std::pair< dword, float > | getBest (const std::string &sname) const |
bool | hasConnection (const std::string &sname) const |
float | getConnection (const std::string &sname, dword wid) const |
Public Attributes | |
Model * | m_Model |
dword | m_WinnerID |
std::string | m_StructName |
float | m_BestRating |
Ratings | m_Ratings |
BestRatings | m_BestRatings |
typedef std::map<std::string,dword> Winner::BestRatings |
typedef const std::map<std::string,dword> Winner::CBestRatings |
typedef const std::map<std::string, std::map<dword,float> > Winner::CRatings |
typedef std::map<std::string, std::map<dword,float> > Winner::Ratings |
enum Winner::ReservedID |
Enumerator | |
---|---|
WID_EMPTY | |
WID_FIRST | |
WID_LAST | |
WID_FRAME | |
WID_BLOCKED | |
WID_FIRSTFREE |
Definition at line 12 of file ExpMap.h.
void Winner::clearRatings | ( | ) |
Definition at line 288 of file ExpMap.cpp.
Referenced by ExpectationMap::ratePropVec(), and setStructName().
const std::pair< dword, float > Winner::getBest | ( | const std::string & | sname | ) | const |
Definition at line 306 of file ExpMap.cpp.
Referenced by getRatingList().
|
inline |
float Winner::getConnection | ( | const std::string & | sname, |
dword | wid | ||
) | const |
Definition at line 313 of file ExpMap.cpp.
Referenced by hasConnection(), and StructPath::print().
|
inline |
|
inline |
float Winner::rateBy | ( | const std::string & | creatorname, |
dword | creatorid, | ||
float | rating | ||
) |
Definition at line 295 of file ExpMap.cpp.
Referenced by ExpectationMap::ratePropVec(), and setStructName().
void Winner::setModel | ( | Model * | m | ) |
Definition at line 281 of file ExpMap.cpp.
References Model::getID(), Model::getName(), and WID_EMPTY.
Referenced by Winner().
|
inline |
Definition at line 22 of file ExpMap.h.
References clearRatings(), m_StructName, rateBy(), and updateBestRating().
float Winner::updateBestRating | ( | ) |
float Winner::m_BestRating |
Definition at line 39 of file ExpMap.h.
Referenced by MStructure::addExpectation(), StructPath::print(), and ExpectationMap::ratePropVec().
BestRatings Winner::m_BestRatings |
Definition at line 41 of file ExpMap.h.
Referenced by getBestRatingID().
Model* Winner::m_Model |
Definition at line 36 of file ExpMap.h.
Referenced by MStructure::addExpectation(), StructTable::draw(), StructTable::findBestConnection(), StructPath::print(), StructPath::protectWinners(), and StructPath::unprotectWinners().
Ratings Winner::m_Ratings |
Definition at line 40 of file ExpMap.h.
Referenced by StructTable::findBestConnection(), getRatingList(), and hasConnection().
std::string Winner::m_StructName |
Definition at line 38 of file ExpMap.h.
Referenced by MStructure::clear(), StructTable::findBestConnection(), MStructure::setName(), and setStructName().
dword Winner::m_WinnerID |
Definition at line 37 of file ExpMap.h.
Referenced by ExpectationMap::add(), MStructure::addExpectation(), Searcher::evolve(), StructTable::findBestConnection(), and MStructure::setName().