|
Flow123d
|
Class for declaration of the integral input data. More...
#include <type_base.hh>


Public Member Functions | |
| Integer (int lower_bound=std::numeric_limits< int >::min(), int upper_bound=std::numeric_limits< int >::max()) | |
| bool | match (int value) const |
| int | from_default (const string &str) const |
| virtual bool | valid_default (const string &str) const |
Implements Type::TypeBase::valid_defaults. More... | |
| virtual string | type_name () const |
| Returns an identification of the type. Useful for error messages. More... | |
Public Member Functions inherited from Input::Type::Scalar | |
| virtual string | full_type_name () const |
| Returns an identification of the type in format "type_name():parent->type_name()". More... | |
Public Member Functions inherited from Input::Type::TypeBase | |
| virtual bool | is_finished () const |
| string | desc () const |
| virtual bool | operator== (const TypeBase &other) const |
| bool | operator!= (const TypeBase &other) const |
| Comparison of types. More... | |
| virtual | ~TypeBase () |
| virtual bool | finish () |
Private Attributes | |
| int | lower_bound_ |
| int | upper_bound_ |
Friends | |
| class | OutputBase |
Additional Inherited Members | |
Static Public Member Functions inherited from Input::Type::TypeBase | |
| static void | lazy_finish () |
| Finishes all registered lazy types. More... | |
Protected Types inherited from Input::Type::TypeBase | |
| typedef string | KeyHash |
| typedef std::vector < boost::shared_ptr< TypeBase > > | LazyTypeVector |
| typedef std::set< const TypeBase * > | LazyObjectsSet |
Protected Member Functions inherited from Input::Type::TypeBase | |
| TypeBase () | |
| TypeBase (const TypeBase &other) | |
Static Protected Member Functions inherited from Input::Type::TypeBase | |
| static KeyHash | key_hash (const string &str) |
| Hash function. More... | |
| static bool | is_valid_identifier (const string &key) |
| static LazyTypeVector & | lazy_type_list () |
| static LazyObjectsSet & | lazy_object_set () |
| static bool | was_constructed (const TypeBase *ptr) |
Class for declaration of the integral input data.
The data are stored in an signed int variable. You can specify bounds for the valid input data.
Definition at line 341 of file type_base.hh.
|
inline |
Definition at line 345 of file type_base.hh.
| int Input::Type::Integer::from_default | ( | const string & | str) | const |
As before but also returns converted integer in value.
Definition at line 308 of file type_base.cc.

| bool Input::Type::Integer::match | ( | int | value) | const |
Returns true if the given integer value conforms to the Type::Integer bounds.
Definition at line 302 of file type_base.cc.

|
virtual |
Returns an identification of the type. Useful for error messages.
Reimplemented from Input::Type::TypeBase.
Definition at line 330 of file type_base.cc.

|
virtual |
Implements Type::TypeBase::valid_defaults.
Implements Input::Type::TypeBase.
Definition at line 322 of file type_base.cc.
|
friend |
Definition at line 342 of file type_base.hh.
|
private |
Definition at line 364 of file type_base.hh.
|
private |
Definition at line 364 of file type_base.hh.
1.8.4