Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
Export::CompositeFragment Class Reference
Inheritance diagram for Export::CompositeFragment:
Export::SourceFragment

Public Member Functions

 CompositeFragment (Model::Node *node, const QString &type={}, const QString &name={})
 
virtual ~CompositeFragment ()
 
TextFragmentappend (Model::Node *node, const QString &text)
 
template<typename T >
T * append (T *fragment)
 
QList< SourceFragment * > & fragments ()
 
const QString & name () const
 
CompositeFragmentoperator<< (const QList< SourceFragment * > &childFragments)
 
CompositeFragmentoperator<< (const QString &text)
 
CompositeFragmentoperator<< (Model::Text *textNode)
 
CompositeFragmentoperator<< (SourceFragment *childFragment)
 
const QString & type () const
 
- Public Member Functions inherited from Export::SourceFragment
 SourceFragment (Model::Node *node)
 
virtual ~SourceFragment ()
 
Model::Nodenode () const
 

Private Attributes

QList< SourceFragment * > fragments_
 
QString name_
 
QString type_
 Used by the layouter to determine indentation and white spacing. More...
 

Constructor & Destructor Documentation

◆ CompositeFragment()

Export::CompositeFragment::CompositeFragment ( Model::Node node,
const QString &  type = {},
const QString &  name = {} 
)

◆ ~CompositeFragment()

Export::CompositeFragment::~CompositeFragment ( )
virtual

Member Function Documentation

◆ append() [1/2]

TextFragment * Export::CompositeFragment::append ( Model::Node node,
const QString &  text 
)
inline

◆ append() [2/2]

template<typename T >
T * Export::CompositeFragment::append ( T *  fragment)
inline

◆ fragments()

QList< SourceFragment * > & Export::CompositeFragment::fragments ( )
inline

◆ name()

const QString & Export::CompositeFragment::name ( ) const
inline

◆ operator<<() [1/4]

CompositeFragment & Export::CompositeFragment::operator<< ( const QList< SourceFragment * > &  childFragments)
inline

◆ operator<<() [2/4]

CompositeFragment & Export::CompositeFragment::operator<< ( const QString &  text)
inline

◆ operator<<() [3/4]

CompositeFragment & Export::CompositeFragment::operator<< ( Model::Text textNode)

◆ operator<<() [4/4]

CompositeFragment & Export::CompositeFragment::operator<< ( SourceFragment childFragment)
inline

◆ type()

const QString & Export::CompositeFragment::type ( ) const
inline

Member Data Documentation

◆ fragments_

QList<SourceFragment*> Export::CompositeFragment::fragments_
private

◆ name_

QString Export::CompositeFragment::name_
private

◆ type_

QString Export::CompositeFragment::type_
private

Used by the layouter to determine indentation and white spacing.