Dillo v3.1.1-119-g140d9ebd
|
Public Member Functions | |
RuleList () | |
~RuleList () | |
void | insert (CssRule *rule) |
bool | equals (lout::object::Object *other) |
Returns, whether two objects are equal. | |
int | hashValue () |
Return a hash value for the object. | |
Public Member Functions inherited from lout::misc::SimpleVector< CssRule * > | |
SimpleVector (int initAlloc=1) | |
SimpleVector (const SimpleVector &o) | |
~SimpleVector () | |
int | size () const |
Return the number of elements put into this vector. | |
bool | empty () const |
CssRule * * | getArray () const |
CssRule * * | detachArray () |
void | increase () |
Increase the vector size by one. | |
void | setSize (int newSize) |
Set the size explicitly. | |
void | setSize (int newSize, CssRule * t) |
Set the size explicitly and initialize new values. | |
CssRule * * | getRef (int i) const |
Return the reference of one element. | |
CssRule * | get (int i) const |
Return the one element, explicitly. | |
CssRule * * | getFirstRef () const |
Return the reference of the first element (convenience method). | |
CssRule * | getFirst () const |
Return the first element, explicitly. | |
CssRule * * | getLastRef () const |
Return the reference of the last element (convenience method). | |
CssRule * | getLast () const |
Return the last element, explicitly. | |
void | set (int i, CssRule * t) |
Store an object in the vector. | |
void | setLast (CssRule * t) |
Store an object at the end of the vector. | |
void | copyTo (SimpleVector< CssRule * > *dest, int thisStart=0, int thisLast=-1, int destStart=0) |
Copies some elements into another vector of the same type. | |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
|
inline |
Definition at line 482 of file css.hh.
References lout::misc::SimpleVector< CssRule * >::get(), and lout::misc::SimpleVector< CssRule * >::size().
|
inlinevirtual |
Returns, whether two objects are equal.
The caller should ensure, that this and the object have the same class; this makes casting of "other" safe. Typically, an implementation should check this == other first, the caller can assume a fast implementation.
Reimplemented from lout::object::Object.
|
inlinevirtual |
Return a hash value for the object.
Reimplemented from lout::object::Object.
void CssStyleSheet::RuleList::insert | ( | CssRule * | rule | ) |
Definition at line 354 of file css.cc.
References lout::misc::SimpleVector< CssRule * >::get(), lout::misc::SimpleVector< CssRule * >::getRef(), lout::misc::SimpleVector< CssRule * >::increase(), lout::misc::SimpleVector< CssRule * >::size(), and CssRule::specificity().
Referenced by CssStyleSheet::addRule().