diff options
Diffstat (limited to 'libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx')
| -rw-r--r-- | libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx | 54 | 
1 files changed, 54 insertions, 0 deletions
| diff --git a/libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx b/libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx new file mode 100644 index 0000000..c3269e6 --- /dev/null +++ b/libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx @@ -0,0 +1,54 @@ +// file      : xsd-frontend/semantic-graph/particle.cxx +// copyright : Copyright (c) 2006-2014 Code Synthesis Tools CC +// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <xsd-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_; +    } +  } +} | 
