///
int getSize() const;
///
- string getText() const;
- ///
- string getText();
+ string const & getText() const;
///
char const * c_str() const;
///
}
protected:
#ifdef ENABLE_ASSERTIONS
+ ///
void testInvariant() const {
Assert(font >= MIN);
Assert(font < FONTMAX);
};
///
- void generateText();
+ void generateText() const;
///
static string bulletSize(short int);
///
or if I can use it to generate strings (0)
or have already (-1)
*/
- short user_text;
+ mutable short user_text;
//NOTE: Arranging these four shorts above to be together
// like this should ensure they are in a single cache line
or one generated internally from the font, character
and size settings.
*/
- string text;
+ mutable string text;
};
}
-inline
-string Bullet::getText() const
-{
- return text;
-}
-
-
inline
Bullet & Bullet::operator=(Bullet const & b)
{
inline
char const * Bullet::c_str() const
{
- return this->getText().c_str();
+ return getText().c_str();
}
/*-----------------End Bullet Member Functions-----------------*/
+///
extern
Bullet const ITEMIZE_DEFAULTS[];