wsdlpull  1.23
Classes | Public Types | Public Member Functions | List of all members
Schema::ContentModel Class Reference

#include <ContentModel.h>

Classes

union  ContentType
 

Public Types

enum  ContentDiscriminator { Particle, ParticleGroup, Container }
 
typedef std::pair< ContentType, ContentDiscriminatorContentHolder
 
typedef std::list< ContentHolderContents
 
typedef std::list< ContentHolder >::iterator ContentsIterator
 

Public Member Functions

 ContentModel (Schema::Compositor)
 
 ~ContentModel ()
 
Schema::Compositor getCompositor () const
 
ContentsIterator begin ()
 
ContentsIterator end ()
 
void addElement (const Element &e)
 
void addGroup (const Group &e, bool own=false)
 
void addContentModel (const ContentModel *c)
 
void setMin (const int &m)
 
void setMax (const int &m)
 
int getMin () const
 
int getMax () const
 
int getNumParticles () const
 
bool anyContents () const
 
void matchforwardRef (const std::string &name, Element &e)
 

Detailed Description

Definition at line 36 of file ContentModel.h.

Member Typedef Documentation

◆ ContentHolder

Definition at line 53 of file ContentModel.h.

◆ Contents

Definition at line 54 of file ContentModel.h.

◆ ContentsIterator

Definition at line 55 of file ContentModel.h.

Member Enumeration Documentation

◆ ContentDiscriminator

Enumerator
Particle 
ParticleGroup 
Container 

Definition at line 47 of file ContentModel.h.

Constructor & Destructor Documentation

◆ ContentModel()

Schema::ContentModel::ContentModel ( Schema::Compositor  c)

Definition at line 79 of file ContentModel.cpp.

◆ ~ContentModel()

Schema::ContentModel::~ContentModel ( )

Definition at line 89 of file ContentModel.cpp.

References begin(), Container, end(), Particle, and ParticleGroup.

Member Function Documentation

◆ getCompositor()

Schema::Compositor Schema::ContentModel::getCompositor ( ) const
inline

Definition at line 84 of file ContentModel.h.

◆ begin()

ContentModel::ContentsIterator Schema::ContentModel::begin ( )
inline

◆ end()

ContentModel::ContentsIterator Schema::ContentModel::end ( )
inline

◆ addElement()

void Schema::ContentModel::addElement ( const Element e)

◆ addGroup()

void Schema::ContentModel::addGroup ( const Group e,
bool  own = false 
)

◆ addContentModel()

void Schema::ContentModel::addContentModel ( const ContentModel c)

Definition at line 66 of file ContentModel.cpp.

References Schema::All, Schema::ContentModel::ContentType::c, and Container.

◆ setMin()

void Schema::ContentModel::setMin ( const int &  m)
inline

Definition at line 122 of file ContentModel.h.

◆ setMax()

void Schema::ContentModel::setMax ( const int &  m)
inline

Definition at line 130 of file ContentModel.h.

◆ getMin()

int Schema::ContentModel::getMin ( ) const
inline

Definition at line 106 of file ContentModel.h.

◆ getMax()

int Schema::ContentModel::getMax ( ) const
inline

Definition at line 114 of file ContentModel.h.

◆ getNumParticles()

int Schema::ContentModel::getNumParticles ( ) const
inline

Definition at line 138 of file ContentModel.h.

◆ anyContents()

bool Schema::ContentModel::anyContents ( ) const
inline

Definition at line 145 of file ContentModel.h.

◆ matchforwardRef()

void Schema::ContentModel::matchforwardRef ( const std::string &  name,
Element e 
)

Definition at line 103 of file ContentModel.cpp.

References begin(), end(), and Particle.

Referenced by Schema::ComplexType::matchElementRef().


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