Flow123d  3.9.1-787489b
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Input::StorageArray Class Reference

#include <storage.hh>

Inheritance diagram for Input::StorageArray:
Inheritance graph
[legend]
Collaboration diagram for Input::StorageArray:
Collaboration graph
[legend]

Public Member Functions

 StorageArray (unsigned int size)
 
 StorageArray (const StorageArray &)
 
void new_item (unsigned int index, StorageBase *item)
 
virtual void set_item (unsigned int index, StorageBase *item)
 
virtual StorageBaseget_item (const unsigned int index) const
 
virtual unsigned int get_array_size () const
 
virtual bool is_null () const
 
virtual StorageBasedeep_copy () const
 
virtual void print (std::ostream &stream, int pad=0) const
 
virtual ~StorageArray ()
 
- Public Member Functions inherited from Input::StorageBase
virtual std::int64_t 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_
 

Detailed Description

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 90 of file storage.hh.

Constructor & Destructor Documentation

◆ StorageArray() [1/3]

Input::StorageArray::StorageArray ( unsigned int  size)

Definition at line 91 of file storage.cc.

◆ StorageArray() [2/3]

Input::StorageArray::StorageArray ( const StorageArray )

◆ ~StorageArray()

Input::StorageArray::~StorageArray ( )
virtual

Definition at line 149 of file storage.cc.

◆ StorageArray() [3/3]

Input::StorageArray::StorageArray ( )
private

Forbids default constructor to have array set to NULL.

Here is the caller graph for this function:

Member Function Documentation

◆ deep_copy()

StorageBase * Input::StorageArray::deep_copy ( ) const
virtual

Implements Input::StorageBase.

Definition at line 98 of file storage.cc.

◆ get_array_size()

unsigned int Input::StorageArray::get_array_size ( ) const
virtual

Reimplemented from Input::StorageBase.

Definition at line 131 of file storage.cc.

Here is the caller graph for this function:

◆ get_item()

StorageBase * Input::StorageArray::get_item ( const unsigned int  index) const
virtual

Reimplemented from Input::StorageBase.

Definition at line 123 of file storage.cc.

Here is the caller graph for this function:

◆ is_null()

bool Input::StorageArray::is_null ( ) const
virtual

Implements Input::StorageBase.

Definition at line 137 of file storage.cc.

◆ new_item()

void Input::StorageArray::new_item ( unsigned int  index,
StorageBase item 
)

Definition at line 107 of file storage.cc.

Here is the caller graph for this function:

◆ print()

void Input::StorageArray::print ( std::ostream &  stream,
int  pad = 0 
) const
virtual

Implements Input::StorageBase.

Definition at line 142 of file storage.cc.

◆ set_item()

void Input::StorageArray::set_item ( unsigned int  index,
StorageBase item 
)
virtual

Reimplemented from Input::StorageBase.

Definition at line 114 of file storage.cc.

Member Data Documentation

◆ array_

std::vector<StorageBase *> Input::StorageArray::array_
private

Definition at line 105 of file storage.hh.


The documentation for this class was generated from the following files: