HGL::Type::NonEmptyType Class Reference
[Types]

Convenience base class to add a validity check on empty types. More...

#include <nonemptytype.h>

Inheritance diagram for HGL::Type::NonEmptyType:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

virtual bool isValid () const

Detailed Description

Convenience base class to add a validity check on empty types.

This class simply extends TypeBase::isValid by checking if the type has attached types and returns false if not.

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

bool NonEmptyType::isValid (  )  const [protected, virtual]
Note:
this method returns false if the type has no attached subtypes. A type is valid

  1. if all attached types are allowed for this type, if not the type is invalid
  2. if all attached types itself are valid, if not the type is invalid
Subclasses can add more checks if neccessary.Checks if the type is valid.

Reimplemented from HGL::Type::TypeBase.

Reimplemented in HGL::Type::Ellipse, HGL::Type::Project, and HGL::Type::Text.


Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1