Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
CssPropertyList Class Reference

A list of CssProperty objects. More...

#include <css.hh>

Public Member Functions

 CssPropertyList (bool ownerOfStrings=false)
 
 CssPropertyList (const CssPropertyList &p, bool deep=false)
 
 ~CssPropertyList ()
 
void set (CssPropertyName name, CssValueType type, CssPropertyValue value)
 Set property to a given name and type.
 
void apply (CssPropertyList *props)
 Merge properties into argument property list.
 
bool isSafe ()
 
void print ()
 
void ref ()
 
void unref ()
 
- Public Member Functions inherited from lout::misc::SimpleVector< CssProperty >
 SimpleVector (int initAlloc=1)
 
 SimpleVector (const SimpleVector &o)
 
 ~SimpleVector ()
 
int size () const
 Return the number of elements put into this vector.
 
bool empty () const
 
CssPropertygetArray () const
 
CssPropertydetachArray ()
 
void increase ()
 Increase the vector size by one.
 
void setSize (int newSize)
 Set the size explicitly.
 
void setSize (int newSize, CssProperty t)
 Set the size explicitly and initialize new values.
 
CssPropertygetRef (int i) const
 Return the reference of one element.
 
CssProperty get (int i) const
 Return the one element, explicitly.
 
CssPropertygetFirstRef () const
 Return the reference of the first element (convenience method).
 
CssProperty getFirst () const
 Return the first element, explicitly.
 
CssPropertygetLastRef () const
 Return the reference of the last element (convenience method).
 
CssProperty getLast () const
 Return the last element, explicitly.
 
void set (int i, CssProperty t)
 Store an object in the vector.
 
void setLast (CssProperty t)
 Store an object at the end of the vector.
 
void copyTo (SimpleVector< CssProperty > *dest, int thisStart=0, int thisLast=-1, int destStart=0)
 Copies some elements into another vector of the same type.
 

Private Attributes

int refCount
 
bool ownerOfStrings
 
bool safe
 

Detailed Description

A list of CssProperty objects.

Definition at line 331 of file css.hh.

Constructor & Destructor Documentation

◆ CssPropertyList() [1/2]

CssPropertyList::CssPropertyList ( bool  ownerOfStrings = false)
inline

Definition at line 337 of file css.hh.

References ownerOfStrings, refCount, and safe.

◆ CssPropertyList() [2/2]

◆ ~CssPropertyList()

CssPropertyList::~CssPropertyList ( )

Member Function Documentation

◆ apply()

◆ isSafe()

bool CssPropertyList::isSafe ( )
inline

Definition at line 349 of file css.hh.

References safe.

Referenced by CssRule::isSafe().

◆ print()

void CssPropertyList::print ( )

◆ ref()

void CssPropertyList::ref ( )
inline

Definition at line 351 of file css.hh.

References refCount.

Referenced by CssRule::CssRule(), and CssParser::parseRuleset().

◆ set()

◆ unref()

void CssPropertyList::unref ( )
inline

Definition at line 352 of file css.hh.

References refCount.

Referenced by CssParser::parseRuleset(), and CssRule::~CssRule().

Member Data Documentation

◆ ownerOfStrings

bool CssPropertyList::ownerOfStrings
private

Definition at line 333 of file css.hh.

Referenced by apply(), CssPropertyList(), CssPropertyList(), set(), and ~CssPropertyList().

◆ refCount

int CssPropertyList::refCount
private

Definition at line 332 of file css.hh.

Referenced by CssPropertyList(), CssPropertyList(), ref(), and unref().

◆ safe

bool CssPropertyList::safe
private

Definition at line 334 of file css.hh.

Referenced by CssPropertyList(), CssPropertyList(), isSafe(), and set().


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