diff options
Diffstat (limited to 'libxsd-frontend/semantic-graph/particle.cxx')
-rw-r--r-- | libxsd-frontend/semantic-graph/particle.cxx | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/libxsd-frontend/semantic-graph/particle.cxx b/libxsd-frontend/semantic-graph/particle.cxx new file mode 100644 index 0000000..484d28b --- /dev/null +++ b/libxsd-frontend/semantic-graph/particle.cxx @@ -0,0 +1,53 @@ +// file : libxsd-frontend/semantic-graph/particle.cxx +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <libcutl/compiler/type-info.hxx> + +#include <libxsd-frontend/semantic-graph/particle.hxx> + +namespace XSDFrontend +{ + namespace SemanticGraph + { + // ContainsParticle + // + ContainsParticle:: + ContainsParticle (unsigned long min, unsigned long max) + : particle_ (0), compositor_ (0), min_ (min), max_ (max) + { + } + + // Particle + // + Particle:: + Particle () + : contained_particle_ (0) + { + } + + namespace + { + using compiler::type_info; + + struct ContainsParticleInit + { + ContainsParticleInit () + { + type_info ti (typeid (ContainsParticle)); + ti.add_base (typeid (Edge)); + insert (ti); + } + } contains_particle_init_; + + struct ParticleInit + { + ParticleInit () + { + type_info ti (typeid (Particle)); + ti.add_base (typeid (Node)); + insert (ti); + } + } particle_init_; + } + } +} |