LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
item_wrapper Class Reference

This class wraps the actual item that has been input. More...

#include <item_wrapper.h>

Public Member Functions

template<class T , class = typename std::enable_if<std::is_base_of<item, T>::value>::type>
 item_wrapper (const std::shared_ptr< T > &inv)
 item_wrapper (const std::shared_ptr< item > &inv)
 item_wrapper (const item_wrapper &inv)
 item_wrapper ()
std::vector< std::stringdependencies () const
itemget ()
const itemget () const
itemoperator-> ()
const itemoperator-> () const
void add_dep (const std::string &indep)
 Adds a dependency to the wrapper.
void replace_dep (const std::string &newdep, const std::string &olddep, bool must_rep=true)
 Replaces an existing dependency with a new one.
 operator std::shared_ptr< item > ()
std::shared_ptr< itemget_shared ()
const std::shared_ptr< itemget_shared () const

Private Attributes

std::shared_ptr< itemptr
std::set< std::stringdeps

Detailed Description

This class wraps the actual item that has been input.

Definition at line 31 of file item_wrapper.h.

Constructor & Destructor Documentation

template<class T , class = typename std::enable_if<std::is_base_of<item, T>::value>::type>
item_wrapper::item_wrapper ( const std::shared_ptr< T > &  inv)
inline

Definition at line 36 of file item_wrapper.h.

item_wrapper::item_wrapper ( const std::shared_ptr< item > &  inv)

Definition at line 58 of file item_wrapper.cpp.

item_wrapper::item_wrapper ( const item_wrapper inv)

Definition at line 67 of file item_wrapper.cpp.

item_wrapper::item_wrapper ( )

Definition at line 70 of file item_wrapper.cpp.

Member Function Documentation

void item_wrapper::add_dep ( const std::string indep)

Adds a dependency to the wrapper.

Definition at line 28 of file item_wrapper.cpp.

std::vector< std::string > item_wrapper::dependencies ( ) const

Definition at line 24 of file item_wrapper.cpp.

item * item_wrapper::get ( )

Definition at line 37 of file item_wrapper.cpp.

Here is the caller graph for this function:

const item * item_wrapper::get ( ) const

Definition at line 43 of file item_wrapper.cpp.

std::shared_ptr< item > item_wrapper::get_shared ( )

Definition at line 52 of file item_wrapper.cpp.

Here is the caller graph for this function:

const std::shared_ptr< item > item_wrapper::get_shared ( ) const

Definition at line 55 of file item_wrapper.cpp.

item_wrapper::operator std::shared_ptr< item > ( )

Definition at line 49 of file item_wrapper.cpp.

item * item_wrapper::operator-> ( )

Definition at line 18 of file item_wrapper.cpp.

const item * item_wrapper::operator-> ( ) const

Definition at line 21 of file item_wrapper.cpp.

void item_wrapper::replace_dep ( const std::string newdep,
const std::string olddep,
bool  must_rep = true 
)

Replaces an existing dependency with a new one.

Definition at line 32 of file item_wrapper.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::set<std::string> item_wrapper::deps
private

Definition at line 33 of file item_wrapper.h.

std::shared_ptr<item> item_wrapper::ptr
private

Definition at line 32 of file item_wrapper.h.


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