Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
desaxe::Getter_body< Obj_Type, Data_Type > Class Template Reference

Reads an object of type Data_Type from the object on top of the stack, then pushes this Data_Type object onto the stack. More...

#include <simple_actions.h>

Inheritance diagram for desaxe::Getter_body< Obj_Type, Data_Type >:
Inheritance graph
[legend]
Collaboration diagram for desaxe::Getter_body< Obj_Type, Data_Type >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef const Data_Type
&(Obj_Type::* 
FunType )()

Public Member Functions

 Getter_body (FunType get)
void begin (const Xml_string &, Xml_attr)
virtual Data_Type * eval (Digester *dig_, const Xml_string &tag, Xml_attr attr)

Protected Member Functions

virtual void end (const Xml_string &)
virtual void chars (const Xml_string &)

Protected Attributes

Digesterdig

Private Attributes

FunType get_

Detailed Description

template<class Obj_Type, class Data_Type>
class desaxe::Getter_body< Obj_Type, Data_Type >

Reads an object of type Data_Type from the object on top of the stack, then pushes this Data_Type object onto the stack.

Definition at line 221 of file simple_actions.h.


Member Typedef Documentation

template<class Obj_Type , class Data_Type >
typedef const Data_Type&(Obj_Type::* desaxe::Getter_body< Obj_Type, Data_Type >::FunType)()

Definition at line 224 of file simple_actions.h.


Constructor & Destructor Documentation

template<class Obj_Type , class Data_Type >
desaxe::Getter_body< Obj_Type, Data_Type >::Getter_body ( FunType  get) [inline]

Definition at line 226 of file simple_actions.h.

       : get_(get)
       {}

Member Function Documentation

template<class Obj_Type , class Data_Type >
void desaxe::Getter_body< Obj_Type, Data_Type >::begin ( const Xml_string ,
Xml_attr   
) [inline, virtual]

Reimplemented from desaxe::Action_body.

Definition at line 230 of file simple_actions.h.

       {
              Obj_Type* obj = this->dig->template top<Obj_Type>(1);
              Data_Type* data = (obj->*get_)();
              this->dig->push(data);
       }

Here is the call graph for this function:

virtual void desaxe::Action_body::chars ( const Xml_string ) [inline, protected, virtual, inherited]

Reimplemented in AppendText_body, desaxe::SetText_body< Obj_Type >, and desaxe::AddText_body< Obj_Type >.

Definition at line 36 of file actions.h.

{}

Here is the caller graph for this function:

virtual void desaxe::Generator_body< Data_Type >::end ( const Xml_string ) [inline, protected, virtual, inherited]

Reimplemented from desaxe::Action_body.

Definition at line 146 of file actions.h.

{ dig->pop(); }

Here is the call graph for this function:

virtual Data_Type * desaxe::Generator_body< Data_Type >::eval ( Digester dig_,
const Xml_string tag,
Xml_attr  attr 
) [inline, virtual, inherited]

Definition at line 136 of file actions.h.

       {
              dig = dig_;
              begin(tag, attr);
              Type* res;
              res = dig->template top<Type>();
              end(tag);
              return res;
       }

Here is the call graph for this function:


Member Data Documentation

Digester* desaxe::Action_body::dig [protected, inherited]

Definition at line 38 of file actions.h.

template<class Obj_Type , class Data_Type >
FunType desaxe::Getter_body< Obj_Type, Data_Type >::get_ [private]

Definition at line 237 of file simple_actions.h.


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