Flow123d
jenkins-Flow123d-linux-release-multijob-198
|
#include <storage.hh>
Public Member Functions | |
StorageArray (unsigned int size) | |
StorageArray (const StorageArray &) | |
void | new_item (unsigned int index, StorageBase *item) |
void | set_item (unsigned int index, StorageBase *item) |
virtual const StorageBase * | get_item (const unsigned int index) const |
virtual unsigned int | get_array_size () const |
virtual bool | is_null () const |
virtual StorageBase * | deep_copy () const |
virtual void | print (std::ostream &stream, int pad=0) const |
virtual | ~StorageArray () |
Public Member Functions inherited from Input::StorageBase | |
virtual int | get_int () const |
virtual double | get_double () const |
virtual bool | get_bool () const |
virtual const std::string & | get_string () const |
virtual | ~StorageBase () |
Private Member Functions | |
StorageArray () | |
Forbids default constructor to have array set to NULL. More... | |
Private Attributes | |
std::vector< StorageBase * > | array_ |
Simple array of heterogeneous values. The values are inserted as pointers (no copies) that is possibly dangerous, but don't care as the Storage is meant for internal usage only.
Definition at line 78 of file storage.hh.
Input::StorageArray::StorageArray | ( | unsigned int | size | ) |
Definition at line 75 of file storage.cc.
Input::StorageArray::StorageArray | ( | const StorageArray & | ) |
|
virtual |
Definition at line 137 of file storage.cc.
|
private |
Forbids default constructor to have array set to NULL.
|
virtual |
Implements Input::StorageBase.
Definition at line 82 of file storage.cc.
|
virtual |
Reimplemented from Input::StorageBase.
Definition at line 119 of file storage.cc.
|
virtual |
Reimplemented from Input::StorageBase.
Definition at line 110 of file storage.cc.
|
virtual |
Implements Input::StorageBase.
Definition at line 125 of file storage.cc.
void Input::StorageArray::new_item | ( | unsigned int | index, |
StorageBase * | item | ||
) |
|
virtual |
Implements Input::StorageBase.
Definition at line 130 of file storage.cc.
void Input::StorageArray::set_item | ( | unsigned int | index, |
StorageBase * | item | ||
) |
|
private |
Definition at line 93 of file storage.hh.