ETL  0.04.19
Classes | Public Types | Public Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
generic_pen< T, AT > Class Template Reference

#include <_pen.h>

Classes

struct  difference_type

Public Types

typedef T value_type
typedef AT accumulator_type
typedef value_typepointer
typedef accumulator_typeaccumulator_pointer
typedef const value_typeconst_pointer
typedef const accumulator_typeconst_accumulator_pointer
typedef value_typereference
typedef const value_typeconst_reference
typedef pointer iterator_x
typedef const_pointer const_iterator_x
typedef
generic_pen_row_iterator
< value_type
iterator_y
typedef
generic_pen_row_iterator
< const value_type
const_iterator_y

Public Member Functions

 generic_pen (value_type *data, int w, int h, int pitch)
 generic_pen (value_type *data, int w, int h)
 generic_pen ()
self_typemove (int a, int b)
self_typemove_to (int x, int y)
void set_value (const value_type &v)
void inc_x ()
void dec_x ()
void inc_y ()
void dec_y ()
void inc_x (int n)
void dec_x (int n)
void inc_y (int n)
void dec_y (int n)
void put_value (const value_type &v) const
void put_value () const
void put_value_clip (const value_type &v) const
void put_value_clip () const
const_reference get_value () const
const_reference get_value_at (int x, int y) const
const_reference get_value_clip_at (int x, int y) const
const value_type get_value_clip () const
const value_type get_pen_value () const
void put_hline (int l, const value_type &v)
void put_hline (int l)
void put_hline_clip (int l, const value_type &v)
void put_hline_clip (int l)
void put_block (int h, int w, const value_type &v)
void put_block (int h, int w)
void put_block_clip (int h, int w, const value_type &v)
void put_block_clip (int h, int w)
iterator_x operator[] (int i) const
iterator_x x ()
iterator_x begin_x ()
iterator_x end_x ()
iterator_y y ()
iterator_y begin_y ()
iterator_y end_y ()
 operator bool () const
bool operator! () const
bool operator== (const self_type &rhs) const
bool operator!= (const self_type &rhs) const
bool clipped (int x, int y) const
bool clipped () const
difference_type operator- (const self_type &rhs) const
self_type operator+ (const difference_type &rhs) const
difference_type diff_begin () const
difference_type diff_end () const
self_type get_start () const
self_type get_end () const
int get_width () const
int get_height () const
int get_w () const
int get_h () const
int get_pitch () const

Protected Attributes

int x_
int y_
int w_
int h_

Private Types

typedef generic_pen< T, AT > self_type

Private Member Functions

void addptr (int nbytes)
void subptr (int nbytes)

Private Attributes

int pitch_
value_type value_
value_typedata_

Detailed Description

template<typename T, typename AT = T>
class generic_pen< T, AT >

Definition at line 116 of file _pen.h.

Member Typedef Documentation

template<typename T , typename AT = T>
typedef T generic_pen< T, AT >::value_type

Definition at line 119 of file _pen.h.

template<typename T , typename AT = T>
typedef AT generic_pen< T, AT >::accumulator_type

Definition at line 120 of file _pen.h.

template<typename T , typename AT = T>
typedef value_type* generic_pen< T, AT >::pointer

Definition at line 121 of file _pen.h.

template<typename T , typename AT = T>
typedef accumulator_type* generic_pen< T, AT >::accumulator_pointer

Definition at line 122 of file _pen.h.

template<typename T , typename AT = T>
typedef const value_type* generic_pen< T, AT >::const_pointer

Definition at line 123 of file _pen.h.

template<typename T , typename AT = T>
typedef const accumulator_type* generic_pen< T, AT >::const_accumulator_pointer

Definition at line 124 of file _pen.h.

template<typename T , typename AT = T>
typedef value_type& generic_pen< T, AT >::reference

Definition at line 125 of file _pen.h.

template<typename T , typename AT = T>
typedef const value_type& generic_pen< T, AT >::const_reference

Definition at line 126 of file _pen.h.

template<typename T , typename AT = T>
typedef pointer generic_pen< T, AT >::iterator_x

Definition at line 128 of file _pen.h.

template<typename T , typename AT = T>
typedef const_pointer generic_pen< T, AT >::const_iterator_x

Definition at line 129 of file _pen.h.

template<typename T , typename AT = T>
typedef generic_pen_row_iterator<value_type> generic_pen< T, AT >::iterator_y

Definition at line 131 of file _pen.h.

template<typename T , typename AT = T>
typedef generic_pen_row_iterator<const value_type> generic_pen< T, AT >::const_iterator_y

Definition at line 132 of file _pen.h.

template<typename T , typename AT = T>
typedef generic_pen<T,AT> generic_pen< T, AT >::self_type
private

Definition at line 150 of file _pen.h.

Constructor & Destructor Documentation

template<typename T , typename AT = T>
generic_pen< T, AT >::generic_pen ( value_type data,
int  w,
int  h,
int  pitch 
)
inline

Definition at line 164 of file _pen.h.

template<typename T , typename AT = T>
generic_pen< T, AT >::generic_pen ( value_type data,
int  w,
int  h 
)
inline

Definition at line 174 of file _pen.h.

template<typename T , typename AT = T>
generic_pen< T, AT >::generic_pen ( )
inline

Definition at line 184 of file _pen.h.

Member Function Documentation

template<typename T , typename AT = T>
void generic_pen< T, AT >::addptr ( int  nbytes)
inlineprivate

Definition at line 152 of file _pen.h.

References generic_pen< T, AT >::data_.

Referenced by generic_pen< T, AT >::inc_y(), and generic_pen< T, AT >::move().

template<typename T , typename AT = T>
void generic_pen< T, AT >::subptr ( int  nbytes)
inlineprivate

Definition at line 157 of file _pen.h.

References generic_pen< T, AT >::data_.

Referenced by generic_pen< T, AT >::dec_y().

template<typename T , typename AT = T>
self_type& generic_pen< T, AT >::move ( int  a,
int  b 
)
inline
template<typename T , typename AT = T>
self_type& generic_pen< T, AT >::move_to ( int  x,
int  y 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::set_value ( const value_type v)
inline

Definition at line 194 of file _pen.h.

References generic_pen< T, AT >::value_.

Referenced by surface< T, AT, VP >::fill().

template<typename T , typename AT = T>
void generic_pen< T, AT >::inc_x ( )
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::dec_x ( )
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::inc_y ( )
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::dec_y ( )
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::inc_x ( int  n)
inline

Definition at line 201 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::x_.

template<typename T , typename AT = T>
void generic_pen< T, AT >::dec_x ( int  n)
inline

Definition at line 202 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::x_.

template<typename T , typename AT = T>
void generic_pen< T, AT >::inc_y ( int  n)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::dec_y ( int  n)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_value ( const value_type v) const
inline

Definition at line 206 of file _pen.h.

References generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
void generic_pen< T, AT >::put_value ( ) const
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_value_clip ( const value_type v) const
inline

Definition at line 209 of file _pen.h.

References generic_pen< T, AT >::clipped(), and generic_pen< T, AT >::put_value().

template<typename T , typename AT = T>
void generic_pen< T, AT >::put_value_clip ( ) const
inline
template<typename T , typename AT = T>
const_reference generic_pen< T, AT >::get_value ( ) const
inline
template<typename T , typename AT = T>
const_reference generic_pen< T, AT >::get_value_at ( int  x,
int  y 
) const
inline
template<typename T , typename AT = T>
const_reference generic_pen< T, AT >::get_value_clip_at ( int  x,
int  y 
) const
inline
template<typename T , typename AT = T>
const value_type generic_pen< T, AT >::get_value_clip ( ) const
inline

Definition at line 219 of file _pen.h.

References generic_pen< T, AT >::clipped(), and generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
const value_type generic_pen< T, AT >::get_pen_value ( ) const
inline

Definition at line 221 of file _pen.h.

References generic_pen< T, AT >::value_.

template<typename T , typename AT = T>
void generic_pen< T, AT >::put_hline ( int  l,
const value_type v 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_hline ( int  l)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_hline_clip ( int  l,
const value_type v 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_hline_clip ( int  l)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_block ( int  h,
int  w,
const value_type v 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_block ( int  h,
int  w 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_block_clip ( int  h,
int  w,
const value_type v 
)
inline
template<typename T , typename AT = T>
void generic_pen< T, AT >::put_block_clip ( int  h,
int  w 
)
inline

Definition at line 266 of file _pen.h.

References generic_pen< T, AT >::put_block(), and generic_pen< T, AT >::value_.

template<typename T , typename AT = T>
iterator_x generic_pen< T, AT >::operator[] ( int  i) const
inline

Definition at line 269 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::pitch_.

template<typename T , typename AT = T>
iterator_x generic_pen< T, AT >::x ( )
inline
template<typename T , typename AT = T>
iterator_x generic_pen< T, AT >::begin_x ( )
inline

Definition at line 272 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::x_.

template<typename T , typename AT = T>
iterator_x generic_pen< T, AT >::end_x ( )
inline
template<typename T , typename AT = T>
iterator_y generic_pen< T, AT >::y ( )
inline

Definition at line 275 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::pitch_.

template<typename T , typename AT = T>
iterator_y generic_pen< T, AT >::begin_y ( )
inline
template<typename T , typename AT = T>
iterator_y generic_pen< T, AT >::end_y ( )
inline
template<typename T , typename AT = T>
generic_pen< T, AT >::operator bool ( ) const
inline

Definition at line 279 of file _pen.h.

References generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
bool generic_pen< T, AT >::operator! ( ) const
inline

Definition at line 280 of file _pen.h.

References generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
bool generic_pen< T, AT >::operator== ( const self_type rhs) const
inline

Definition at line 281 of file _pen.h.

References generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
bool generic_pen< T, AT >::operator!= ( const self_type rhs) const
inline

Definition at line 282 of file _pen.h.

References generic_pen< T, AT >::data_.

template<typename T , typename AT = T>
bool generic_pen< T, AT >::clipped ( int  x,
int  y 
) const
inline
template<typename T , typename AT = T>
bool generic_pen< T, AT >::clipped ( ) const
inline
template<typename T , typename AT = T>
difference_type generic_pen< T, AT >::operator- ( const self_type rhs) const
inline

Definition at line 286 of file _pen.h.

References generic_pen< T, AT >::data_, and generic_pen< T, AT >::pitch_.

template<typename T , typename AT = T>
self_type generic_pen< T, AT >::operator+ ( const difference_type rhs) const
inline
template<typename T , typename AT = T>
difference_type generic_pen< T, AT >::diff_begin ( ) const
inline

Definition at line 302 of file _pen.h.

References generic_pen< T, AT >::x_, and generic_pen< T, AT >::y_.

Referenced by generic_pen< T, AT >::get_start().

template<typename T , typename AT = T>
difference_type generic_pen< T, AT >::diff_end ( ) const
inline
template<typename T , typename AT = T>
self_type generic_pen< T, AT >::get_start ( ) const
inline

Definition at line 305 of file _pen.h.

References generic_pen< T, AT >::diff_begin().

template<typename T , typename AT = T>
self_type generic_pen< T, AT >::get_end ( ) const
inline

Definition at line 306 of file _pen.h.

References generic_pen< T, AT >::diff_end().

template<typename T , typename AT = T>
int generic_pen< T, AT >::get_width ( ) const
inline

Definition at line 308 of file _pen.h.

References generic_pen< T, AT >::w_.

template<typename T , typename AT = T>
int generic_pen< T, AT >::get_height ( ) const
inline

Definition at line 309 of file _pen.h.

References generic_pen< T, AT >::h_.

template<typename T , typename AT = T>
int generic_pen< T, AT >::get_w ( ) const
inline

Definition at line 311 of file _pen.h.

References generic_pen< T, AT >::w_.

template<typename T , typename AT = T>
int generic_pen< T, AT >::get_h ( ) const
inline

Definition at line 312 of file _pen.h.

References generic_pen< T, AT >::h_.

template<typename T , typename AT = T>
int generic_pen< T, AT >::get_pitch ( ) const
inline

Definition at line 313 of file _pen.h.

References generic_pen< T, AT >::pitch_.

Member Data Documentation

template<typename T , typename AT = T>
int generic_pen< T, AT >::x_
protected
template<typename T , typename AT = T>
int generic_pen< T, AT >::y_
protected
template<typename T , typename AT = T>
int generic_pen< T, AT >::w_
protected
template<typename T , typename AT = T>
int generic_pen< T, AT >::h_
protected
template<typename T , typename AT = T>
int generic_pen< T, AT >::pitch_
private
template<typename T , typename AT = T>
value_type generic_pen< T, AT >::value_
private
template<typename T , typename AT = T>
value_type* generic_pen< T, AT >::data_
private

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