STLL  0.0
Simple Text Layouting Library
STLL::AttributeIndex_c Class Reference

collection of codepointAttributes for the layouter. More...

Public Member Functions

 AttributeIndex_c (void)
 create an empty index More...
 
 AttributeIndex_c (const CodepointAttributes_c &a)
 create an index where all entries have the same attribute More...
 
void set (size_t i, CodepointAttributes_c a)
 set attributes for a single indices More...
 
void set (size_t start, size_t end, CodepointAttributes_c a)
 set attributes for a range of indices More...
 
const CodepointAttributes_cget (size_t i) const
 get the attribute for given index More...
 
bool hasAttribute (size_t i) const
 

Detailed Description

collection of codepointAttributes for the layouter.

This class behaves a bit like a vector of codepointAttributed in that you can get an attribute for an index. The index is of type size_t

Constructor & Destructor Documentation

STLL::AttributeIndex_c::AttributeIndex_c ( void  )
inline

create an empty index

Attention
you have to add at least one attribute
STLL::AttributeIndex_c::AttributeIndex_c ( const CodepointAttributes_c a)
inline

create an index where all entries have the same attribute

Parameters
athe attribute that all will share

Member Function Documentation

const CodepointAttributes_c& STLL::AttributeIndex_c::get ( size_t  i) const
inline

get the attribute for given index

Parameters
ithe index for which the attribute is requested
Returns
the requested attribute
bool STLL::AttributeIndex_c::hasAttribute ( size_t  i) const
inline
void STLL::AttributeIndex_c::set ( size_t  i,
CodepointAttributes_c  a 
)
inline

set attributes for a single indices

Parameters
iindex that will have the attribute
athe attribute
void STLL::AttributeIndex_c::set ( size_t  start,
size_t  end,
CodepointAttributes_c  a 
)
inline

set attributes for a range of indices

Parameters
startfirst index that should have the attribute
endfirst index that will no longer have the attribute
athe attribute

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